Spring Rest Doc - url 生成的文档
Spring Rest Doc - url of the documentation generated
我正在使用 Spring Rest Doc,我可以看到我的 .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();
我正在尝试获取 localhost:8080/target/generated-snippet 或 localhost:8080/retrivedocumentation 等文档的路径,但我看不到它。
我在网上找到的文档没有具体说明。有谁知道如何恢复它?
谢谢
假设您已按照用户指南中的说明进行操作:packaging the documentation 然后您将找到文档以及其他静态 Web 资源:
http://localhost:8080/docs/index.html
我正在使用 Spring Rest Doc,我可以看到我的 .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();
我正在尝试获取 localhost:8080/target/generated-snippet 或 localhost:8080/retrivedocumentation 等文档的路径,但我看不到它。 我在网上找到的文档没有具体说明。有谁知道如何恢复它?
谢谢
假设您已按照用户指南中的说明进行操作:packaging the documentation 然后您将找到文档以及其他静态 Web 资源:
http://localhost:8080/docs/index.html