I need to set content-type for a rest call as "application/json;charset=UTF-8" . I can do it with code by adding below to @RequestMapping
produces = "application/json;charset=UTF-8"
But I want to know if this can be achieved without any code change, just by adding any property in application.properties. Tried by adding below properties, but didn't worked:
server.servlet.encoding.charset=UTF-8
server.servlet.encoding.force-response=true