gpt4 book ai didi

spring - 将编码添加到@GetMapping

转载 作者:行者123 更新时间:2023-12-02 13:15:29 42 4
gpt4 key购买 nike

我想将编码添加到映射 Controller 的响应中。但是由于某种原因出现了编译错误。只需要一个值数组
enter image description here
如何在响应中添加编码?

最佳答案

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

关于spring - 将编码添加到@GetMapping,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64460953/

42 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com