最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

错误记录:Consider defining a bean of type ‘com.xxx.service.SysUserRoleService‘ in your configuration.

运维笔记admin5浏览0评论

***************************
APPLICATION FAILED TO START
***************************

Description:

Field sysUserRoleService in com.xxx.service.impl.SysUserServiceImpl required a bean of type 'com.xxx.service.SysUserRoleService' that could not be found.

The injection point has the following annotations:
    - @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean of type 'com.xxx.service.SysUserRoleService' in your configuration.

问题:找不到bean

@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements IService<SysUserRole> {

}

解决方法:检查service的实现类,实现的接口对不对,可能会因为接口位置变了,实现这里也会变,把IService<SysUserRole>改为SysUserRoleService

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论