The following method did not exist: org.springframework.plugin.core.PluginRegistry.getPluginFor(Ljava/lang/Object;)Ljava/util/Optional;
时间: 2023-12-03 11:46:11 浏览: 50
这个错误通常是由于缺少Spring Plugin Core库引起的。你需要将以下依赖项添加到你的pom.xml文件中:
```
<dependency>
<groupId>org.springframework.plugin</groupId>
<artifactId>spring-plugin-core</artifactId>
<version>2.0.0.RELEASE</version>
</dependency>
```
如果你使用的是Gradle,你可以在build.gradle文件中添加以下代码:
```
dependencies {
implementation 'org.springframework.plugin:spring-plugin-core:2.0.0.RELEASE'
}
```
添加这个依赖后,重新运行你的应用程序应该就不会再出现这个错误了。
相关问题
Description: An attempt was made to call a method that does not exist. The attempt was made from the following location: org.springframework.boot.autoconfigure.web.embedded.TomcatWebServerFactoryCustomizer.lambda$customizeRejectIllegalHeader$24(TomcatWebServerFactoryCustomizer.java:209) The following method did not exist: org.apache.coyote.http11.AbstractHttp11Protocol.setRejectIllegalHeader(Z)V
这个错误的意思是尝试调用一个不存在的方法。看起来是在Spring Boot应用程序中使用了一个TomcatWebServerFactoryCustomizer中的方法,但是该方法依赖于一个不存在的方法org.apache.coyote.http11.AbstractHttp11Protocol.setRejectIllegalHeader(Z)V。这可能是由于版本不匹配或依赖关系问题引起的。您可以尝试更新相关依赖项,以确保它们与您的Spring Boot版本兼容。
解决 Description: An attempt was made to call a method that does not exist. The attempt was made from the following location: io.seata.spring.boot.autoconfigure.SeataAutoConfiguration.seataAutoDataSourceProxyCreator(SeataAutoConfiguration.java:74) The following method did not exist: io.seata.spring.annotation.datasource.SeataAutoDataSourceProxyCreator.<init>(Z[Ljava/lang/String;)V The method's class, io.seata.spring.annotation.datasource.SeataAutoDataSourceProxyCreator, is available from the following locations:用中文解决
这个错误提示是说尝试调用一个不存在的方法,具体是在 io.seata.spring.boot.autoconfigure.SeataAutoConfiguration 的第74行,该方法是 seataAutoDataSourceProxyCreator。而且提示说 io.seata.spring.annotation.datasource.SeataAutoDataSourceProxyCreator 这个类的构造方法也不存在,但是它可以从某些位置得到。解决这个问题需要检查代码中是否存在拼写错误或者版本不匹配的问题,可以尝试更新相关库的版本或者查看文档以获得正确的方法调用方式。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.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)