Swagger2 Unable to infer base url. This is common

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

弹出:

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

重启再次访问如下

猜你喜欢

转载自www.cnblogs.com/vipsoft/p/13170760.html