spring-plugin异常的解决办法
236 字
1 分钟
spring-plugin异常的解决办法
在学习ES的过程中,本着有最新就用最新的想法,使用了springboot2.3.x的版本,在实操过程中遇到了配置和方法过时的情况,于是将springboot版本降级为2.1.13,诡异的事情发生了,原本能正常启动的项目起不来了,报错如下:
*************************** APPLICATION FAILED TO START*************************** Description: An attempt was made to call a methodthat does not exist. The attempt was made from the following location:springfox.documentation.schema.plugins.SchemaPluginsManager.viewProvider(SchemaPluginsManager.java:95)The following method did not exist:org.springframework.plugin.core.PluginRegistry.getPluginFor(Ljava/lang/Object;)Ljava/util/Optional;The method's class, org.springframework.plugin.core.PluginRegistry, is availablefrom the following locations:jar:file:/D:/repository/org/springframework/plugin/spring-plugin-core/1.2.0.RELEASE/spring-plugin-core-1.2.0.RELEASE.jar!/org/springframework/plugin/core/PluginRegistry.classIt was loaded from the following location:file:/D:/repository/org/springframework/plugin/spring-plugin-core/1.2.0.RELEASE/spring-plugin-core-1.2.0.RELEASE.jarAction: Correct the classpath of your application so that it contains a single,compatible version of org.springframework.plugin.core.PluginRegistry百度了一下问题,遇到了类似问题的帖子,就试了试
一开始使用了1.2.0的版本,但是问题依旧存在,又把帖子往下划拉了划拉,试了试2.0.0版本的,嘿,还真好使了
问题原因:版本冲突
<dependency> <groupId>org.springframework.plugin</groupId> <artifactId>spring-plugin-core</artifactId> <version>2.0.0.RELEASE</version></dependency><dependency> <groupId>org.springframework.plugin</groupId> <artifactId>spring-plugin-metadata</artifactId> <version>2.0.0.RELEASE</version></dependency>文章分享
如果这篇文章对你有帮助,欢迎分享给更多人!
spring-plugin异常的解决办法
https://tianch.com.cn/posts/tutorials/spring-plugin-yi-chang-de-jie-jue-ban-fa/相关文章智能推荐
1
您尚未安装任何 GPG 公钥出现rpm --import public.gpg.key,解决办法
其他2026-01-05
2
无效的目标发行版 11 的问题解决办法
其他安装了JDK11之后,将原本基于java8的项目换成了java11,然而在maven打包的时候报错:无效的目标发行版 11。
3
vim编辑文件关闭后,文件内容仍显示在窗口的解决办法
其他是因为linux环境变量TERM设置类型不对,TERM环境变量是用来设置输出终端类型的,Xshell如果设置成Linux就会出现类似这种情况,如果设置成xterm就可以避免这种情况。
4
无法加载文件 xxx 因为在此系统上禁止运行脚本
其他2026-01-05
5
事务的传播行为
其他事务传播行为用来描述由某一个事务传播行为修饰的方法被嵌套进另一个方法的时事务如何传播。
随机文章随机推荐


