Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
com.baomidou.mybatisplus.core.MybatisMapperAnnotationBuilder$AnnotationWrapper.<init>(MybatisMapperAnnotationBuilder.java:686)
The following method did not exist:
org.apache.ibatis.annotations.Select.databaseId()Ljava/lang/String;
The method’s class, org.apache.ibatis.annotations.Select, is available from the following locations:
jar:file:/F:/BaiduNetdiskDownload/respository_new/org/mybatis/mybatis/3.5.1/mybatis-3.5.1.jar!/org/apache/ibatis/annotations/Select.class
The class hierarchy was loaded from the following locations:
org.apache.ibatis.annotations.Select: file:/F:/BaiduNetdiskDownload/respository_new/org/mybatis/mybatis/3.5.1/mybatis-3.5.1.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.apache.ibatis.annotations.Select
好像是一个依赖冲突的问题,真尼玛烦人
尝试方法:
在heima-leadnews-model的pom文件中注释mybatis的依赖或在mybatis-plus-boot-starter中去除mybatis依赖
问题:直接注释mybatis依赖会产生找不到mybatis包的情况,采用exclusions的方法不知道是否层级太多,无法去除