tomcat:浏览器中文代码乱码web.xml,tomcat乱码问题

web.xml:

<!--解决中文乱码问题-->
  <servlet>
        <servlet-name>default</servlet-name>
        <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
        <init-param>
            <param-name>debug</param-name>
            <param-value>0</param-value>
        </init-param>
        //关键一个中文设置
		 <init-param>
            <param-name>fileEncoding</param-name>
            <param-value>UTF-8</param-value>
        </init-param>
        <init-param>
            <param-name>listings</param-name>
            <param-value>false</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

你可能感兴趣的:(前端web,服务器问题,tomcat,前端,xml)