【JavaWeb】静态包含.html文件时出现乱码

   在web.xml文件里加入下列代码即可

<jsp-config>
<jsp-property-group>
<url-pattern>*.html</url-pattern>
<page-encoding>UTF-8</page-encoding>
</jsp-property-group>
</jsp-config>

原文地址:https://www.cnblogs.com/netyts/p/13962204.html