springboot 拦截器返回json中文乱码 作者:马育民 • 2022-03-01 13:20 • 阅读:10112 # 修改 application.yml ``` server: tomcat: uri-encoding: UTF-8 spring: http: encoding: charset: utf-8 enabled: true force: true ``` # 修改 application.properties ``` spring.http.encoding.force=true spring.http.encoding.charset=UTF-8 spring.http.encoding.enabled=true server.tomcat.uri-encoding=UTF-8 ``` 原文出处:http://malaoshi.top/show_1IX2rlf1Z5LA.html