後臺經過@RequestParam參數獲取前臺的中文時,產生亂碼:tomcat
解決方法是修改tomcat的配置文件server.xmlserver
將<Connector port="8080" protocal="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />xml
修改成<Connector port="8080" protocal="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" />io