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