Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SpringREST文档-生成的文档的url_Spring_Rest_Spring Boot_Spring Restdocs - Fatal编程技术网

SpringREST文档-生成的文档的url

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

我正在使用SpringREST文档,我可以看到我的.adoc文件是按照我在其中指定的路径正确生成的

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