本文主要是介绍param-nameencoding/param-name param-valueUTF-8/param-value,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
<?xml version="1.0" encoding="UTF-8"?><web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<filter>
<filter-name>SetCharacterEncodingFilter</filter-name>
<filter-class>com.itheima.filter.SetCharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>SetCharacterEncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>InitLog4JServlet</servlet-name>
<servlet-class>com.itheima.web.servlet.InitLog4JServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>ManagerServlet</servlet-name>
<servlet-class>com.itheima.web.servlet.ManagerServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>ClientServlet</servlet-name>
<servlet-class>com.itheima.web.servlet.ClientServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>InitLog4JServlet</servlet-name>
<url-pattern>/servlet/InitLog4JServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ManagerServlet</servlet-name>
<url-pattern>/servlet/ManagerServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ClientServlet</servlet-name>
<url-pattern>/servlet/ClientServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>
这篇关于param-nameencoding/param-name param-valueUTF-8/param-value的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!