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 07:41:51 浏览: 215
这个错误通常表示你的项目中存在多个版本的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,避免类冲突和其他问题。
相关问题
An attempt was made to call a method that does not exist. The attempt was made from the following location
在解决"An attempt was made to call a method that does not exist"这个错误时,根据提供的引用内容,可以尝试以下几种方法:
1. 删除提示的jar包:根据引用,可以尝试删除相关的jar包。这样做可能会解决该错误。
2. 在当前项目的库中删除提示的jar包:根据引用,可以在当前项目的库中删除提示的jar包,这样只会调用指定路径下的jar包。再次尝试启动项目时,可能会正常运行。
3. 在项目依赖中移除对应版本的jar包:根据引用,可以在项目依赖中移除对应版本的jar包,然后重新运行项目。这一步也可以直接移除对应版本的jar包,从而解决该错误。
你可以根据具体的情况选择其中一种或多种方法来解决这个错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [An attempt was made to call a method that does not exist. The attempt was made from the following](https://blog.csdn.net/qq_50954361/article/details/127945517)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [解决An attempt was made to call a method that does not exit问题](https://blog.csdn.net/Egolalal/article/details/121350898)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
使用config出现An attempt was made to call a method that does not exist. The attempt was made from the following location:
使用config出现"An attempt was made to call a method that does not exist"的错误是由于尝试调用一个不存在的方法造成的。具体的错误发生位置可以在引用中看到。根据引用中的信息可以得知,该错误发生在GatewayAutoConfiguration.java文件的第612行,具体是在gatewayHttpClient方法内部发生的。这个错误可能是由于在调用该方法时使用了一个不存在的方法或者错误的参数引起的。我们需要对该方法的调用进行检查,确保方法名和参数的正确性。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Gateway启动失败:An attempt was made to call a method that does not exist.](https://blog.csdn.net/qq_40788718/article/details/107841385)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)