整合spring+mybatis遇到的问题01

报错如下:No matching bean of type [com.mybaties.test.service.UserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)

。。。。

解决方案:

  将mybatis-spring-1.0.0.jar替换成mybatis-spring-1.1.1.jar

posted @ 2016-03-15 19:02  tianSky  阅读(124)  评论(0编辑  收藏  举报