整合spring+mybatis遇到的问题01

时间:2023-12-15 08:12:50

报错如下: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