解决办法:设置web.xml
添加:
<jsp-config> <jsp-property-group> <description>html encoding</description> <display-name>JSPConfiguration</display-name> <url-pattern>*.html</url-pattern> <el-ignored>true</el-ignored> <page-encoding>UTF-8</page-encoding> <scripting-invalid>false</scripting-invalid> <include-prelude></include-prelude> <include-coda></include-coda> </jsp-property-group> </jsp-config>
来源:http://blog.csdn.net/gnail_oug/article/details/51707061
更新:上面为tomcat7;当改用tomcat8时,加上上面的配置,找html会出现500错误,不过tomcat不会出现乱码