tomcat html 文件乱码

web.xml 制定文件类型和编码

<mime-mapping>
		<extension>htm</extension>
		<mime-type>text/html;charset=utf-8</mime-type>
	</mime-mapping>
	<mime-mapping>
		<extension>html</extension>
		<mime-type>text/html;charset=utf-8</mime-type>
	</mime-mapping>
posted @ 2021-01-25 15:24  1456710017  阅读(129)  评论(0编辑  收藏  举报