用Swagger出现Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway解决方案

用Swagger出现这个问题

 

 

解决方案如图:在Springboot的启动类上加@EnableSwagger2注解

 

 成功:

 

posted @ 2020-04-21 23:41  王振龙  阅读(2493)  评论(0编辑  收藏  举报
Live2D