![](/img/trans.png)
[英]spring boot application run, but I get error 404 in the web browser
[英]I just started to run spring boot application and the browser is showing this error
請向我解釋這里出了什么問題,為什么我會收到此類錯誤? 錯誤消息是:無法推斷 base url。這在使用動態 servlet 注冊或 API 在 API 網關后面時很常見。 基礎 url 是提供所有 swagger 資源的根。 例如,如果 api 在http://example.org/api/v2/api-docs可用,那么基礎 url 是http://example.org/api/ 。 請手動輸入位置:
我不熟悉在堆棧溢出中提問,請建議我如何正確構建這個問題 [1]: https://i.stack.imgur.com/wXxnS.png
您忘記添加此注釋,請將此添加到主 class。
@EnableSwagger2
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.