Swagger2 Unable to infer base url. This is common

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

弹出:

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

重启再次访问如下

扫描二维码关注公众号,回复: 11327546 查看本文章

猜你喜欢

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