整合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

上一篇:标准C++中的String类的使用


下一篇:MySQL--常见ALTER TABLE 操作