目前是通过在每个RequestMapping注解中加入produces = {"application/json;charset=UTF-8"}来解决.但是我希望通过配置一劳永逸,在网上搜索了一下,
类似这种配置有很多,但是都不起作用.
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
web.xmltomcat的
server.xml中加URIEncoding属性我是用楼主的配置起作用了。