Problem
The following error is always reported when starting:
java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class
Solution
You need a mybatis-spring-boot-starter package. After adding it to the pom file, it is perfectly solved.
<dependency> <groupid>org.mybatis.spring.boot</groupid> <artifactid>mybatis-spring-boot-starter</artifactid> <version>2.0.1</version></dependency>
The above is the detailed content of How to solve the error when integrating MybatisPlus in SpringBoot. For more information, please follow other related articles on the PHP Chinese website!