Adding encoding to @GetMapping

848 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 answers

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