Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为映射控制器的响应添加编码。但由于某种原因编译错误。只需要一个值数组
如何在响应中添加编码?
@GetMapping("/cards", produces = ["application/json;charset=UTF-8"])