springboot 整合mybatis-爱代码爱编程
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.xph.boot05_mybatis_plus.Boot05MybatisPlusApplicationTests': Unsatisfied dependency expressed through field 'bookDao': No qualifying bean of type 'com.xph.boot05_mybatis_plus.dao.BookDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.xph.boot05_mybatis_plus.dao.BookDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
问题解决:
将pom.xml中的版本3.*的换成2.多 (系统自己带的就好)的可以解决