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:/D:/apache-maven-3.8.4/Warehouse/org/mybatis/mybatis/3.5.4/mybatis-3.5.4.jar!/org/apache/ibatis/annotations/Select.class The class hierarchy was loaded from the following locations: org.apache.ibatis.annotations.Select: file:/D:/apache-maven-3.8.4/Warehouse/org/mybatis/mybatis/3.5.4/mybatis-3.5.4.jar Action: Correct the classpath of your application so that it contains a single, compatible version of org.apache.ibatis.annotations.Select 2023-06-09 16:58:31.842 [Thread-2] WARN com.alibaba.nacos.common.http.HttpClientBeanHolder - [HttpClientBeanHolder] Start destroying common HttpClient 2023-06-09 16:58:31.843 [Thread-2] WARN com.alibaba.nacos.common.http.HttpClientBeanHolder - [HttpClientBeanHolder] Destruction of the end
时间: 2024-03-21 17:41:51 浏览: 376
CRASH问题:java.lang.NullPointerException
5星 · 资源好评率100%
这个错误通常表示你的项目中存在多个版本的Mybatis或者Mybatis Plus,导致类冲突。建议你检查一下项目中的依赖,将其精简到一个版本,或者使用dependency tree命令查看依赖关系树,找出冲突的依赖,并将其排除掉。例如,使用以下命令查看依赖关系树:
```
mvn dependency:tree -Dverbose
```
然后找出与Mybatis或Mybatis Plus相关的依赖,将其排除掉,例如:
```xml
<dependency>
<groupId>com.example</groupId>
<artifactId>example</artifactId>
<version>1.0.0</version>
<exclusions>
<exclusion>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
</exclusion>
</exclusions>
</dependency>
```
这样就可以排除掉与Mybatis相关的依赖,避免类冲突。另外,建议使用Mybatis Plus官方推荐的方式来集成Mybatis Plus,避免类冲突和其他问题。
阅读全文