1.tomcat编码server:tomcat:uri-encoding: UTF-8
2.http编码
spring:http:encoding:force: truecharset: utf-8enabled: true
3.response返回类型
response.setContentType("text/html;charset=utf-8");
1.tomcat编码server:tomcat:uri-encoding: UTF-8
2.http编码
spring:http:encoding:force: truecharset: utf-8enabled: true
3.response返回类型
response.setContentType("text/html;charset=utf-8");