Skip to content

Commit fcdc638

Browse files
committed
Mention what to do when use-hal-as-default-json-media-type is false
Closes gh-26814
1 parent 8778884 commit fcdc638

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/spring-hateoas.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ Note that doing so disables the `ObjectMapper` customization described earlier.
99

1010
WARNING: `spring-boot-starter-hateoas` is specific to Spring MVC and should not be combined with Spring WebFlux.
1111
In order to use Spring HATEOAS with Spring WebFlux, you can add a direct dependency on `org.springframework.hateoas:spring-hateoas` along with `spring-boot-starter-webflux`.
12+
13+
By default, requests that accept `application/json` will receive an `application/hal+json` response.
14+
To disable this behavior set configprop:spring.hateoas.use-hal-as-default-json-media-type[] to `false` and define a `HypermediaMappingInformation` or `HalConfiguration` to configure Spring HATEOAS to meet the needs of your application and its clients.

0 commit comments

Comments
 (0)