用Swagger出現Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway解決方案


用Swagger出現這個問題

 

 

解決方案如圖:在Springboot的啟動類上加@EnableSwagger2注解

 

 成功:

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM