Upgrade to Spring REST Docs 1.2.0.RC1

Closes gh-8716
This commit is contained in:
Andy Wilkinson
2017-03-24 21:11:04 +00:00
parent 5e0acc60bb
commit 2fd51dd8a1
5 changed files with 19 additions and 16 deletions

View File

@@ -5770,7 +5770,7 @@ remove the need for Spring REST Docs' JUnit rule.
@RunWith(SpringRunner.class)
@WebMvcTest(UserController.class)
@AutoConfigureRestDocs("target/generated-snippets")
@AutoConfigureRestDocs
public class UserDocumentationTests {
@Autowired
@@ -5786,10 +5786,11 @@ remove the need for Spring REST Docs' JUnit rule.
}
----
In addition to configuring the output directory, `@AutoConfigureRestDocs` can also
configure the host, scheme, and port that will appear in any documented URIs. If you
require more control over Spring REST Docs' configuration a
`RestDocsMockMvcConfigurationCustomizer` bean can be used:
`@AutoConfigureRestDocs` can be used to override the default output directory
(`target/generated-snippets` if you are using Maven or `build/generated-snippets` if you
are using Gradle). It can also be used to configure the host, scheme, and port that will
appear in any documented URIs. If you require more control over Spring REST Docs'
configuration a `RestDocsMockMvcConfigurationCustomizer` bean can be used:
[source,java,indent=0]
----