spring.data.rest.defaultMediaType=application/json does not work

Viewed 577

I'm trying to set the spring data rest response to be only json and not HATEOS.

I tried placing this rule in application.properties but did not work. The manual only displays

defaultMediaType - change default media type to use when none is specified

Every other configuration from application.properties is being loaded only this one is not being followed.

spring.data.rest.defaultMediaType=application/json
1 Answers
Related