SpringBoot中集成MybatisPlus时出现报错怎么解决(mybatisplus,springboot,编程语言)

时间:2024-05-05 13:55:52 作者 : 石家庄SEO 分类 : 编程语言
  • TAG :

问题

启动的时候总是报如下错误:

java.lang.annotation.AnnotationFormatError:Invaliddefault:publicabstractjava.lang.Class

SpringBoot中集成MybatisPlus时出现报错怎么解决

解决方案

需要一个mybatis-spring-boot-starter的包,在pom文件加上之后,完美解决。

<dependency><groupId>org.mybatis.spring.boot</groupId><artifactId>mybatis-spring-boot-starter</artifactId><version>2.0.1</version></dependency>
 </div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:SpringBoot中集成MybatisPlus时出现报错怎么解决的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:Springboot中要怎么自定义校验下一篇:

5 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18