jinziweiwang
易大师不易
2019-04-03 14:28

Springboot2.2.0.M1 +swagger2 报错

  • spring
  • java
  • maven

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

springfox.documentation.spring.web.plugins.DocumentationPluginsManager.createContextBuilder(DocumentationPluginsManager.java:152)

The following method did not exist:

org.springframework.plugin.core.PluginRegistry.getPluginFor(Ljava/lang/Object;Lorg/springframework/plugin/core/Plugin;)Lorg/springframework/plugin/core/Plugin;

The method's class, org.springframework.plugin.core.PluginRegistry, is available from the following locations:

jar:file:/E:/apache-maven-3.6.0/repository_all/org/springframework/plugin/spring-plugin-core/2.0.0.M1/spring-plugin-core-2.0.0.M1.jar!/org/springframework/plugin/core/PluginRegistry.class

It was loaded from the following location:

file:/E:/apache-maven-3.6.0/repository_all/org/springframework/plugin/spring-plugin-core/2.0.0.M1/spring-plugin-core-2.0.0.M1.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of org.springframework.plugin.core.PluginRegistry


io.springfox
springfox-swagger2
2.9.2


io.springfox
springfox-swagger-ui
2.9.2

看情况是jar包冲突没有找到:

这个包是springfox-swagger2.jar依赖引入的,但是找不出是那里冲突了,为什么找不到类

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答