用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注解

 成功:

猜你喜欢

转载自www.cnblogs.com/wzlbigdata/p/12748930.html