I am trying to set the spring response to write data as json, not HATEOS.
I tried to place this rule in application.properties, but did not work. The manual only displays
defaultMediaType - change the default media type to use if none is specified
Any other configuration is loaded from the application.properties application, but this is not done.
spring.data.rest.defaultMediaType=application/json
source
share