⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 web.xml

📁 这是一个完整的web应用程序
💻 XML
📖 第 1 页 / 共 4 页
字号:
        </init-param>        <load-on-startup>4</load-on-startup>    </servlet>-->  <!-- Common Gateway Includes (CGI) processing servlet, which supports     -->  <!-- execution of external applications that conform to the CGI spec      -->  <!-- requirements.  Typically, this servlet is mapped to the URL pattern  -->  <!-- "/cgi-bin/*", which means that any CGI applications that are         -->  <!-- executed must be present within the web application.  This servlet   -->  <!-- supports the following initialization parameters (default values     -->  <!-- are in square brackets):                                             -->  <!--                                                                      -->  <!--   cgiPathPrefix        The CGI search path will start at             -->  <!--                        webAppRootDir + File.separator + this prefix. -->  <!--                        [WEB-INF/cgi]                                 -->  <!--                                                                      -->  <!--   debug                Debugging detail level for messages logged    -->  <!--                        by this servlet.  [0]                         -->  <!--                                                                      -->  <!--   executable           Name of the exectuable used to run the        -->  <!--                        script. [perl]                                -->  <!--                                                                      -->  <!--   parameterEncoding    Name of parameter encoding to be used with    -->  <!--                        CGI servlet.                                  -->  <!--                        [System.getProperty("file.encoding","UTF-8")] -->  <!--                                                                      -->  <!--   passShellEnvironment Should the shell environment variables (if    -->  <!--                        any) be passed to the CGI script? [false]     -->  <!--                                                                      -->  <!-- IMPORTANT: To use the CGI servlet, you also need to rename the       -->  <!--            $CATALINA_HOME/server/lib/servlets-cgi.renametojar file   -->  <!--            to $CATALINA_HOME/server/lib/servlets-cgi.jar             --><!--    <servlet>        <servlet-name>cgi</servlet-name>        <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>        <init-param>          <param-name>debug</param-name>          <param-value>0</param-value>        </init-param>        <init-param>          <param-name>cgiPathPrefix</param-name>          <param-value>WEB-INF/cgi</param-value>        </init-param>         <load-on-startup>5</load-on-startup>    </servlet>-->  <!-- ================ Built In Servlet Mappings ========================= -->  <!-- The servlet mappings for the built in servlets defined above.  Note  -->  <!-- that, by default, the CGI and SSI servlets are *not* mapped.  You    -->  <!-- must uncomment these mappings (or add them to your application's own -->  <!-- web.xml deployment descriptor) to enable these services              -->    <!-- The mapping for the default servlet -->    <servlet-mapping>        <servlet-name>default</servlet-name>        <url-pattern>/</url-pattern>    </servlet-mapping>    <!-- The mapping for the invoker servlet --><!--    <servlet-mapping>        <servlet-name>invoker</servlet-name>        <url-pattern>/servlet/*</url-pattern>    </servlet-mapping>-->    <!-- The mapping for the JSP servlet -->    <servlet-mapping>        <servlet-name>jsp</servlet-name>        <url-pattern>*.jsp</url-pattern>    </servlet-mapping>    <servlet-mapping>        <servlet-name>jsp</servlet-name>        <url-pattern>*.jspx</url-pattern>    </servlet-mapping>    <!-- The mapping for the SSI servlet --><!--    <servlet-mapping>        <servlet-name>ssi</servlet-name>        <url-pattern>*.shtml</url-pattern>    </servlet-mapping>-->    <!-- The mapping for the CGI Gateway servlet --><!--    <servlet-mapping>        <servlet-name>cgi</servlet-name>        <url-pattern>/cgi-bin/*</url-pattern>    </servlet-mapping>-->  <!-- ================== Built In Filter Definitions ===================== -->  <!-- NOTE: An SSI Servlet is also available as an alternative SSI         -->  <!-- implementation. Use either the Servlet or the Filter but NOT both.   -->  <!--                                                                      -->  <!-- Server Side Includes processing filter, which processes SSI          -->  <!-- directives in HTML pages consistent with similar support in web      -->  <!-- servers like Apache.  Traditionally, this filter is mapped to the    -->  <!-- URL pattern "*.shtml", though it can be mapped to "*" as it will     -->  <!-- selectively enable/disable SSI processing based on mime types. For   -->  <!-- this to work you will need to uncomment the .shtml mime type         -->  <!-- definition towards the bottom of this file.                          -->  <!-- The contentType init param allows you to apply SSI processing to JSP -->  <!-- pages, javascript, or any other content you wish.  This filter       -->  <!-- supports the following initialization parameters (default values are -->  <!-- in square brackets):                                                 -->  <!--                                                                      -->  <!--   contentType         A regex pattern that must be matched before    -->  <!--                       SSI processing is applied.                     -->  <!--                       [text/x-server-parsed-html(;.*)?]              -->  <!--                                                                      -->  <!--   debug               Debugging detail level for messages logged     -->  <!--                       by this servlet.  [0]                          -->  <!--                                                                      -->  <!--   expires             The number of seconds before a page with SSI   -->  <!--                       directives will expire.  [No default]          -->  <!--                                                                      -->  <!--   isVirtualWebappRelative                                            -->  <!--                       Should "virtual" paths be interpreted as       -->  <!--                       relative to the context root, instead of       -->  <!--                       the server root?  (0=false, 1=true) [0]        -->  <!--                                                                      -->  <!--                                                                      -->  <!-- IMPORTANT: To use the SSI filter, you also need to rename the        -->  <!--            $CATALINA_HOME/server/lib/servlets-ssi.renametojar file   -->  <!--            to $CATALINA_HOME/server/lib/servlets-ssi.jar             --><!--    <filter>        <filter-name>ssi</filter-name>        <filter-class>          org.apache.catalina.ssi.SSIFilter        </filter-class>        <init-param>          <param-name>contentType</param-name>          <param-value>text/x-server-parsed-html(;.*)?</param-value>        </init-param>        <init-param>          <param-name>debug</param-name>          <param-value>0</param-value>        </init-param>        <init-param>          <param-name>expires</param-name>          <param-value>666</param-value>        </init-param>        <init-param>          <param-name>isVirtualWebappRelative</param-name>          <param-value>0</param-value>        </init-param>    </filter>-->  <!-- ==================== Built In Filter Mappings ====================== -->  <!-- The mapping for the SSI Filter --><!--    <filter-mapping>        <filter-name>ssi</filter-name>        <url-pattern>*.shtml</url-pattern>    </filter-mapping>-->  <!-- ==================== Default Session Configuration ================= -->  <!-- You can set the default session timeout (in minutes) for all newly   -->  <!-- created sessions by modifying the value below.                       -->    <session-config>        <session-timeout>30</session-timeout>    </session-config>  <!-- ===================== Default MIME Type Mappings =================== -->  <!-- When serving static resources, Tomcat will automatically generate    -->  <!-- a "Content-Type" header based on the resource's filename extension,  -->  <!-- based on these mappings.  Additional mappings can be added here (to  -->  <!-- apply to all web applications), or in your own application's web.xml -->  <!-- deployment descriptor.                                               -->    <mime-mapping>        <extension>abs</extension>        <mime-type>audio/x-mpeg</mime-type>    </mime-mapping>    <mime-mapping>        <extension>ai</extension>        <mime-type>application/postscript</mime-type>    </mime-mapping>    <mime-mapping>        <extension>aif</extension>        <mime-type>audio/x-aiff</mime-type>    </mime-mapping>    <mime-mapping>        <extension>aifc</extension>        <mime-type>audio/x-aiff</mime-type>    </mime-mapping>    <mime-mapping>        <extension>aiff</extension>        <mime-type>audio/x-aiff</mime-type>    </mime-mapping>    <mime-mapping>        <extension>aim</extension>        <mime-type>application/x-aim</mime-type>    </mime-mapping>    <mime-mapping>        <extension>art</extension>        <mime-type>image/x-jg</mime-type>    </mime-mapping>    <mime-mapping>        <extension>asf</extension>        <mime-type>video/x-ms-asf</mime-type>    </mime-mapping>    <mime-mapping>        <extension>asx</extension>        <mime-type>video/x-ms-asf</mime-type>    </mime-mapping>    <mime-mapping>        <extension>au</extension>        <mime-type>audio/basic</mime-type>    </mime-mapping>    <mime-mapping>        <extension>avi</extension>        <mime-type>video/x-msvideo</mime-type>    </mime-mapping>    <mime-mapping>        <extension>avx</extension>        <mime-type>video/x-rad-screenplay</mime-type>    </mime-mapping>    <mime-mapping>        <extension>bcpio</extension>        <mime-type>application/x-bcpio</mime-type>    </mime-mapping>    <mime-mapping>        <extension>bin</extension>        <mime-type>application/octet-stream</mime-type>    </mime-mapping>    <mime-mapping>        <extension>bmp</extension>        <mime-type>image/bmp</mime-type>    </mime-mapping>    <mime-mapping>        <extension>body</extension>        <mime-type>text/html</mime-type>    </mime-mapping>    <mime-mapping>        <extension>cdf</extension>        <mime-type>application/x-netcdf</mime-type>    </mime-mapping>    <mime-mapping>        <extension>cer</extension>        <mime-type>application/x-x509-ca-cert</mime-type>    </mime-mapping>    <mime-mapping>        <extension>class</extension>        <mime-type>application/java</mime-type>    </mime-mapping>    <mime-mapping>        <extension>cpio</extension>        <mime-type>application/x-cpio</mime-type>    </mime-mapping>    <mime-mapping>        <extension>csh</extension>        <mime-type>application/x-csh</mime-type>    </mime-mapping>    <mime-mapping>        <extension>css</extension>        <mime-type>text/css</mime-type>    </mime-mapping>    <mime-mapping>        <extension>dib</extension>        <mime-type>image/bmp</mime-type>    </mime-mapping>    <mime-mapping>        <extension>doc</extension>        <mime-type>application/msword</mime-type>    </mime-mapping>    <mime-mapping>        <extension>dtd</extension>        <mime-type>application/xml-dtd</mime-type>    </mime-mapping>    <mime-mapping>        <extension>dv</extension>        <mime-type>video/x-dv</mime-type>    </mime-mapping>    <mime-mapping>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -