admin管理员组文章数量:1186284
***************************
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
本文标签: 错误BeandefiningTypeConfiguration
版权声明:本文标题:错误记录:Consider defining a bean of type ‘com.xxx.service.SysUserRoleService‘ in your configuration. 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1738333416a2076463.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论