Invalid default: public abstract java.lang.Class org.mybatis.spring.annotation.MapperScan.factoryBean()
at java.lang.reflect.Method.getDefaultValue(Method.java:612) ~[na:1.8.0_201]
很明显是引入mybatis的问题,我的引入是下面这样,引入的是mybatis-plus,引用了SpringMVC的引用方式,如果你创建的是Springboot工程,这样引用是错误的。
正确引用方式如下:
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.4.0</version>
</dependency>
问题即可解决!