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

*************************** APPLICATION FAILED TO START *************************** Description: Field sysUserRoleServ

***************************
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

发布者:admin,转转请注明出处:http://www.yc00.com/web/1738333415a4038406.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信