2017-07-27 37 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