Spring REST Docs 结合单元测试的使用
简介通过将手写文档与 Spring MVC Test 生成的自动生成的片段结合起来,记录 RESTful 服务。 详细说就是,通过编写单元测试利用 asciidoctor 生成 adoc 文档,然后将这些 adoc 片段输出 HTML。 代码示例pom.xml1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162<spring-restdocs.version>2.0.4.RELEASE</spring-restdocs.version><!-- restdoc --><dependency> <groupId>org.springframework.restdocs</groupId> <artifactId>spring-restdocs-mockmvc</artifactId> <scope>t...
