不负自心 2020-07-28 16:28 采纳率: 0%
浏览 1936
已采纳

springcloud集成swagger2 swagger-bootstrap-ui使用增强模式添加@EnableSwaggerBootstrapUI报错

具体报错

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

com.github.xiaoymin.swaggerbootstrapui.service.SwaggerResourcesExtProvider.<init>(SwaggerResourcesExtProvider.java:52)

The following method did not exist:

springfox.documentation.schema.ClassSupport.classByName(Ljava/lang/String;)Lcom/google/common/base/Optional;

The method's class, springfox.documentation.schema.ClassSupport, is available from the following locations:

jar:file:/D:/mvnRepository/io/springfox/springfox-core/3.0.0/springfox-core-3.0.0.jar!/springfox/documentation/schema/ClassSupport.class

The class hierarchy was loaded from the following locations:

springfox.documentation.schema.ClassSupport: file:/D:/mvnRepository/io/springfox/springfox-core/3.0.0/springfox-core-3.0.0.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of springfox.documentation.schema.ClassSupport

使用jar包版本

  • 写回答

2条回答 默认 最新

  • threenewbee 2020-07-28 16:39
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 关于#嵌入式硬件#的问题:树莓派第一天重装配置python和opencv后第二天打开就成这样,瞎捣鼓搞出来文件夹还是没把原来的界面调回来
  • ¥20 Arduino 循迹小车程序电路出错故障求解
  • ¥20 Arduino 循迹小车程序电路出错故障求解
  • ¥100 AT89C52单片机C语言调试之后再回答
  • ¥15 AT89C52单片机C语言串口助手发送数据包返回值
  • ¥15 C++数组中找第二小的数字程序纠错
  • ¥15 wannier复现图像时berry曲率极值点与高对称点严重偏移
  • ¥15 利用决策森林为什么会出现这样·的问题(关键词-情感分析)
  • ¥15 DispatcherServlet.noHandlerFound No mapping found for HTTP request with URI[/untitled30_war_e
  • ¥15 使用deepspeed训练,发现想要训练的参数没有梯度