SpringREST文档-生成的文档的url
我正在使用SpringREST文档,我可以看到我的.adoc文件是按照我在其中指定的路径正确生成的SpringREST文档-生成的文档的url,spring,rest,spring-boot,spring-restdocs,Spring,Rest,Spring Boot,Spring Restdocs,我正在使用SpringREST文档,我可以看到我的.adoc文件是按照我在其中指定的路径正确生成的 public JUnitRestDocumentation restDocumentation = new JUnitRestDocumentation("target/generated-snippets"); 现在我希望在启动服务器时看到它的运行 我的MVC看起来像这样 this.mockMvc = MockMvcBuilders.standaloneSetup(testCo
public JUnitRestDocumentation restDocumentation =
new JUnitRestDocumentation("target/generated-snippets");
现在我希望在启动服务器时看到它的运行
我的MVC看起来像这样
this.mockMvc = MockMvcBuilders.standaloneSetup(testController)
.apply(documentationConfiguration(this.restDocumentation))
.alwaysDo(document("{method-name}/{step}/"))
.build();
我正在尝试获取localhost:8080/target/generated snippet或localhost:8080/retrievedocumentation等文档的路径,但我看不到它。
我在第行找到的文档没有指定它。有人知道如何检索吗
谢谢假设您已经按照《用户指南》的说明进行了操作:那么您将找到这些文档以及其他静态web资源:
http://localhost:8080/docs/index.html