在web.xml文件里加入下列代码即可
<jsp-config> <jsp-property-group> <url-pattern>*.html</url-pattern> <page-encoding>UTF-8</page-encoding> </jsp-property-group> </jsp-config>