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;
    这个该如何解决?

SysShiroHandleMgr 是否 添加@Service 或者 @Resource @Component 这种注解提交给Spring容器管理?