Adding encoding to @GetMapping

867 Views Asked by At

I want to add encoding to the response for the mapping controller. But for some reason a compilation error. Only requires an array of values

enter image description here

How do I add encoding to the response?

1

There are 1 best solutions below

0
On BEST ANSWER
@GetMapping("/cards", produces = ["application/json;charset=UTF-8"])