Swagger2 Unable to infer base url. This is common

Posted vipsoft

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Swagger2 Unable to infer base url. This is common相关的知识,希望对你有一定的参考价值。

http://localhost:8080/swagger-ui.html

弹出:

技术图片

 

 

解决方法:除了SwaggerConfig 上要加@EnableSwagger2 ,启动类上也要加

技术图片

 

 

重启再次访问如下

技术图片

 

以上是关于Swagger2 Unable to infer base url. This is common的主要内容,如果未能解决你的问题,请参考以下文章

Unable to infer base url. This is common when using dynamic servlet registration or when the API is

Unable to infer base url. This is common when using dynamic servlet registration or when the API is(

spark读取parquet文件报错:Unable to infer schema when loading Parquet file

springboot 中访问swagger提示Unable to infer base url.This is common when using dynamic

转:springboot 与swagger整合出现Unable to infer base url.This is common when using dynamic的解决办法

What makes an inferred latch? how To avoid creating inferred latches? when do you know you need lat