最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

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

业界 admin 3浏览 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

***************************
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. 暂无评论