Swagger2 Unable to infer base url. This is common

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

弹出:

 

 

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

 

 

重启再次访问如下

 

posted @ 2020-06-20 22:50  VipSoft  阅读(4435)  评论(0编辑  收藏  举报