我試圖整合與駱駝項目如何在我的應用招搖的UI集成
招搖下面這個例子https://github.com/apache/camel/tree/master/examples/camel-example-servlet-rest-tomcat
我如何使用這個例子項目訪問招搖的用戶界面?
我在tomcat中刪除了war文件。
和訪問http://localhost:8080/camel-example-servlet-rest-tomcat/api-docs我得到這個...
{ 「apiVersion」: 「1.2.3」, 「swaggerVersion」: 「1.2」, 「蜜蜂」:[{ 「路徑」: 「/用戶」 ,「description」:「用戶休息服務」}],「info」:{「title」:「用戶服務」,「描述」:「駱駝休息示例與提供用戶REST服務的Swagger」}}
但我的問題是 - 我如何訪問swagger-ui/index.html?
訪問swagger-UI的確切URL是什麼?
我複製了dist的內容,但仍然無法訪問UI ... URL應該是什麼? http:// localhost:8080/social /也不是http:// localhost:8080/social/index.html正在爲我工作(我的資源上下文是「社交」)。 –
@ hick209,父母建議將文件添加到'webapp/WEB-INF'中,但我猜會讓他們無法訪問,是不是?你有沒有試圖直接將它們添加到'webapp'? – arcuri82