问题和背景
打开浏览器打开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
分析和处理
这个后台服务前面有gateway,需要配置资源访问的白名单。
白名单中漏了两个资源配置。
/**/swagger-ui/**
/**/swagger-resources/**