Springboot启动报错:Unable to infer base url. This is common when using dynamic servlet...


Springboot项目启动,IDE的控制台报错信息:

  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;

可能是启动类缺少注解@EnableSwagger2


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM