2017-07-27 112 views
1

文檔的URL我使用彈簧安置文件,我可以看到我的.adoc文件在我裏面有彈簧安置文件 - 產生

public JUnitRestDocumentation restDocumentation = 
     new JUnitRestDocumentation("target/generated-snippets"); 

指定的路徑正確生成,現在我想看看它在我啓動服務器時處於行動狀態。

我MockMvc這個樣子

this.mockMvc = MockMvcBuilders.standaloneSetup(testController) 
      .apply(documentationConfiguration(this.restDocumentation)) 
      .alwaysDo(document("{method-name}/{step}/")) 
      .build(); 

我想獲得像本地主機的文件路徑:8080 /目標/生成 - 摘錄或本地主機:8080/retrivedocumentation但我無法看到它。 我在線上找到的文檔沒有指定它。有誰知道如何回收它?

謝謝

回答

1

假設你已經按照用戶手冊的說明:packaging the documentation那麼你會發現該文檔與其他靜態網頁資源一起:

http://localhost:8080/docs/index.html