匿名街 2020-03-26 11:03 采纳率: 0%
浏览 227
已结题

Autowired注入bean失败-springboot框架

报错提示:

APPLICATION FAILED TO START

Description:

Field sysShiroHandleMgr in yui.comn.shiro.mgr.UserDetailMgrImpl required a bean of type 'yui.comn.api.mgr.SysShiroHandleMgr' that could not be found.

Action:

Consider defining a bean of type 'yui.comn.api.mgr.SysShiroHandleMgr' in your configuration.
部分代码截图:
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import yui.comn.api.mgr.SysShiroHandleMgr;
import yui.comn.utils.UserInfo;

/**

@author hj

*/
@Service(UserDetailMgr.USER_DETAIL_MGR)
public class UserDetailMgrImpl implements UserDetailMgr {

@Autowired
private SysShiroHandleMgr sysShiroHandleMgr;
这个该如何解决?

  • 写回答

1条回答 默认 最新

  • EasternUnbeaten 2020-03-26 12:23
    关注

    SysShiroHandleMgr 注册bean的地方的呢,看不到没有办法给你看错误,你这个地方的截图,只是SysShiroHandleMgr引用他的地方,声明SysShiroHandleMgr的地方呢

    评论

报告相同问题?

悬赏问题

  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥30 用arduino开发esp32控制ps2手柄一直报错
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿