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

How to solve the error when integrating MybatisPlus in SpringBoot

王林
Release: 2023-05-13 18:55:06
forward
2866 people have browsed it

Problem

The following error is always reported when starting:

java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class
Copy after login

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>
Copy after login

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!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template