是不是因为这个报错进来的
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:
那么你是不是在整合Swagger 的时候整合了Spring Security
先说解决方法吧
需要在Spring Security允许访问的路径里加上
"/swagger-resources/"
“/v2/"
"/swagger-ui/”**
http.authorizeRequests(