Spring No qualifying bean of type错误

No qualifying bean of type [xx.xxx.xxx.xxDao] dound for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency
没找到bean,我的原因是web.xml里没有引入mybatis的xml配置文件:

<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath:spring-mybatis.xml</param-value>
</context-param>
阅读更多
个人分类: java
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭