Home  >  Article  >  Java  >  How to solve the error when integrating MybatisPlus in SpringBoot

How to solve the error when integrating MybatisPlus in SpringBoot

王林
王林forward
2023-05-13 18:55:062828browse

Problem

The following error is always reported when starting:

java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class

How to solve the error when integrating MybatisPlus in SpringBoot

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!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete