Springboot整合mybatisPlus 启动报错:java.lang.annotation.AnnotationFormatError
启动项目后报错信息如图所示:
解决方法:在原有的pom文件下添加两个依赖
<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.0.1</version> </dependency> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-autoconfigure</artifactId> <version>1.3.2</version> </dependency>