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