SpringMVC @RequestParam 中文乱码问题解决
终极解决之道: 修改tomcat默认编码(ISO-8859-1)方法,修改tomcat根目录的conf下的server.xml,Connector元素添加URIEncoding="UTF-8"属性:
代码语言:javascript复制<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1"
redirectPort="8443" URIEncoding="UTF-8" />
完美解决。。
参考博客: https://blog.51cto.com/wenshengzhu/1727718