Order internal RepositoryRestConfigurer

This commit provides an order of zero for the RepositoryRestConfigurer
that is used internally to configure the `RepositoryRestConfiguration`. In
practice, an unordered `RepositoryRestConfigurer` will run after ours.

Closes gh-7981
This commit is contained in:
Stephane Nicoll
2017-01-16 10:41:44 +01:00
parent ddf1408679
commit 3e05329fd7
3 changed files with 41 additions and 2 deletions

View File

@@ -1952,6 +1952,10 @@ If you need to provide additional customization, you should use a
{spring-data-rest-javadoc}/webmvc/config/RepositoryRestConfigurer.{dc-ext}[`RepositoryRestConfigurer`]
bean.
NOTE: If you don't specify any order on your custom `RepositoryRestConfigurer` it will run
after the one Spring Boot uses internally. If you need to specify an order, make sure it
is higher than 0.
[[howto-configure-a-component-that-is-used-by-JPA]]