springMVC傳參中會出現中文亂碼問題。學習中提供了兩種解決方案: web
第一種是在tomcat中加參數 spring
第二種是在配置中加filter參數 tomcat
經過本身的測試發現光有第一種方法不必定有效果,可是用了第二種方法確定是OK的。 學習
tomcat中參數以下 測試
server.xml server
web.xml的filter配置以下 xml