spring boot 集成swagger 弹窗问题

Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at http://example.org/api/v2/api-docs then the base url is http://example.org/api/. Please enter the location manually: 

如图:

spring boot 集成swagger 弹窗问题

这个问题是因为你系统有shiro鉴权导致,解决方案:

1.放开对该页面的鉴权

2.去掉shiro的启动注解

转载于:https://my.oschina.net/xwzj/blog/1837911