maven-jetty-plugin插件的配置

Xml代码  收藏代码

  1. <build>  

  2.     <finalName>rop-sample</finalName>  

  3.     <plugins>  

  4.         <!-- jetty插件 -->  

  5.         <plugin>  

  6.             <groupId>org.mortbay.jetty</groupId>  

  7.             <artifactId>maven-jetty-plugin</artifactId>  

  8.             <version>6.1.5</version>  

  9.             <configuration>  

  10.                 <webAppSourceDirectory>src/main/webapp</webAppSourceDirectory>  

  11.                 <scanIntervalSeconds>3</scanIntervalSeconds>  

  12.                 <contextPath>/</contextPath>  

  13.                 <connectors>  

  14.                     <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">  

  15.                         <port>8088</port>  

  16.                     </connector>  

  17.                 </connectors>  

  18.             </configuration>  

  19.         </plugin>  

  20.     </plugins>  

  21. </build>  


如果只是象上面的配置,jetty会锁定WEB项目下的文件,不让人更改。这给开发带来很大麻烦,因为我们在测试时,发现问题希望马上能够更改,然后刷新页面生效。 

这时可以添加一个配置解决: 

Xml代码  收藏代码

  1. <build>  

  2.     <finalName>rop-sample</finalName>  

  3.     <plugins>  

  4.         <!-- jetty插件 -->  

  5.         <plugin>  

  6.             <groupId>org.mortbay.jetty</groupId>  

  7.             <artifactId>maven-jetty-plugin</artifactId>  

  8.             <version>6.1.5</version>  

  9.             <configuration>  

  10.                <!-- 添加这行 -->

  11.               <webDefaultXml>src/main/resources/jetty/webdefault.xml</webDefaultXml>  

  12.                 <webAppSourceDirectory>src/main/webapp</webAppSourceDirectory>  

  13.                 <scanIntervalSeconds>3</scanIntervalSeconds>  

  14.                 <contextPath>/</contextPath>  

  15.                 <connectors>  

  16.                     <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">  

  17.                         <port>8088</port>  

  18.                     </connector>  

  19.                 </connectors>  

  20.             </configuration>  

  21.         </plugin>  

  22.     </plugins>  

  23. </build>  



webdefault.xml文件内容如下: 

Xml代码  收藏代码

  1. <?xml version="1.0" encoding="ISO-8859-1"?>  

  2.   

  3. <!-- ===================================================================== -->  

  4. <!-- This file contains the default descriptor for web applications.       -->  

  5. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->  

  6. <!-- The intent of this descriptor is to include jetty specific or common  -->  

  7. <!-- configuration for all webapps.   If a context has a webdefault.xml    -->  

  8. <!-- descriptor, it is applied before the contexts own web.xml file        -->  

  9. <!--                                                                       -->  

  10. <!-- A context may be assigned a default descriptor by:                    -->  

  11. <!--  + Calling WebApplicationContext.setDefaultsDescriptor                -->  

  12. <!--  + Passed an arg to addWebApplications                                -->  

  13. <!--                                                                       -->  

  14. <!-- This file is used both as the resource within the jetty.jar (which is -->  

  15. <!-- used as the default if no explicit defaults descriptor is set) and it -->  

  16. <!-- is copied to the etc directory of the Jetty distro and explicitly     -->  

  17. <!-- by the jetty.xml file.                                                -->  

  18. <!--                                                                       -->  

  19. <!-- ===================================================================== -->  

  20. <web-app   

  21.    xmlns="http://java.sun.com/xml/ns/javaee"   

  22.    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  

  23.    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"   

  24.    metadata-complete="true"  

  25.    version="2.5">   

  26.   

  27.   <description>  

  28.     Default web.xml file.    

  29.     This file is applied to a Web application before it's own WEB_INF/web.xml file  

  30.   </description>  

  31.   

  32.   

  33.   <!-- ==================================================================== -->  

  34.   <!-- Context params to control Session Cookies                            -->  

  35.   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->  

  36.   <!-- UNCOMMENT TO ACTIVATE  

  37.   <context-param>  

  38.     <param-name>org.mortbay.jetty.servlet.SessionDomain</param-name>  

  39.     <param-value>127.0.0.1</param-value>  

  40.   </context-param>  

  41.   

  42.   <context-param>  

  43.     <param-name>org.mortbay.jetty.servlet.SessionPath</param-name>  

  44.     <param-value>/</param-value>  

  45.   </context-param>  

  46.   

  47.   <context-param>  

  48.     <param-name>org.mortbay.jetty.servlet.MaxAge</param-name>  

  49.     <param-value>-1</param-value>  

  50.   </context-param>  

  51.   -->  

  52.   

  53.   <context-param>  

  54.     <param-name>org.mortbay.jetty.webapp.NoTLDJarPattern</param-name>  

  55.     <param-value>start.jar|ant-.*\.jar|dojo-.*\.jar|jetty-.*\.jar|jsp-api-.*\.jar|junit-.*\.jar|servlet-api-.*\.jar|dnsns\.jar|rt\.jar|jsse\.jar|tools\.jar|sunpkcs11\.jar|sunjce_provider\.jar|xerces.*\.jar</param-value>  

  56.   </context-param>  

  57.               

  58.   

  59.   

  60.   <!-- ==================================================================== -->  

  61.   <!-- The default servlet.                                                 -->  

  62.   <!-- This servlet, normally mapped to /, provides the handling for static -->  

  63.   <!-- content, OPTIONS and TRACE methods for the context.                  -->  

  64.   <!-- The following initParameters are supported:                          -->  

  65.   <!--                                                                      -->  

  66.   <!--   acceptRanges     If true, range requests and responses are         -->  

  67.   <!--                    supported                                         -->  

  68.   <!--                                                                      -->  

  69.   <!--   dirAllowed       If true, directory listings are returned if no    -->  

  70.   <!--                    welcome file is found. Else 403 Forbidden.        -->  

  71.   <!--                                                                      -->  

  72.   <!--   redirectWelcome  If true, redirect welcome file requests           -->  

  73.   <!--                    else use request dispatcher forwards              -->  

  74.   <!--                                                                      -->  

  75.   <!--   gzip             If set to true, then static content will be served-->   

  76.   <!--                    as gzip content encoded if a matching resource is -->  

  77.   <!--                    found ending with ".gz"                           -->  

  78.   <!--                                                                      -->  

  79.   <!--   resoureBase      Can be set to replace the context resource base   -->  

  80.   <!--                                                                      -->  

  81.   <!--   relativeResourceBase                                               -->  

  82.   <!--                    Set with a pathname relative to the base of the   -->  

  83.   <!--                    servlet context root. Useful for only serving     -->  

  84.   <!--                    static content from only specific subdirectories. -->  

  85.   <!--                                                                      -->  

  86.   <!--   useFileMappedBuffer                                                -->  

  87.   <!--                    If set to true (the default), a  memory mapped    -->  

  88.   <!--                    file buffer will be used to serve static content  -->  

  89.   <!--                    when using an NIO connector. Setting this value   -->  

  90.   <!--                    to false means that a direct buffer will be used  -->  

  91.   <!--                    instead. If you are having trouble with Windows   -->  

  92.   <!--                    file locking, set this to false.                  -->  

  93.   <!--                                                                      -->  

  94.   <!--  cacheControl      If set, all static content will have this value   -->  

  95.   <!--                    set as the cache-control header.                  -->  

  96.   <!--                                                                      -->  

  97.   <!--  maxCacheSize      Maximum size of the static resource cache         -->  

  98.   <!--                                                                      -->  

  99.   <!--  maxCachedFileSize Maximum size of any single file in the cache      -->  

  100.   <!--                                                                      -->  

  101.   <!--  maxCachedFiles    Maximum number of files in the cache              -->  

  102.   <!--                                                                      -->  

  103.   <!--  cacheType         "nio", "bio" or "both" to determine the type(s)   -->  

  104.   <!--                    of resource cache. A bio cached buffer may be used-->  

  105.   <!--                    by nio but is not as efficient as a nio buffer.   -->  

  106.   <!--                    An nio cached buffer may not be used by bio.      -->  

  107.   <!--                                                                      -->  

  108.   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->  

  109.   <servlet>  

  110.     <servlet-name>default</servlet-name>  

  111.     <servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-class>  

  112.     <init-param>  

  113.       <param-name>acceptRanges</param-name>  

  114.       <param-value>true</param-value>  

  115.     </init-param>  

  116.     <init-param>  

  117.       <param-name>dirAllowed</param-name>  

  118.       <param-value>true</param-value>  

  119.     </init-param>  

  120.     <init-param>  

  121.       <param-name>redirectWelcome</param-name>  

  122.       <param-value>false</param-value>  

  123.     </init-param>  

  124.     <init-param>  

  125.       <param-name>maxCacheSize</param-name>  

  126.       <param-value>4000000</param-value>  

  127.     </init-param>  

  128.     <init-param>  

  129.       <param-name>maxCachedFileSize</param-name>  

  130.       <param-value>254000</param-value>  

  131.     </init-param>  

  132.     <init-param>  

  133.       <param-name>maxCachedFiles</param-name>  

  134.       <param-value>1000</param-value>  

  135.     </init-param>  

  136.     <init-param>  

  137.       <param-name>cacheType</param-name>  

  138.       <param-value>both</param-value>  

  139.     </init-param>  

  140.     <init-param>  

  141.       <param-name>gzip</param-name>  

  142.       <param-value>true</param-value>  

  143.     </init-param>  

  144.     <init-param>  

  145.       <param-name>useFileMappedBuffer</param-name>  

  146.       <param-value>false</param-value>        <!--?true??false??????????????,?????????????????? update by chenmk 2013.6.24-->  

  147.     </init-param>    

  148.     <!--  

  149.     <init-param>  

  150.       <param-name>cacheControl</param-name>  

  151.       <param-value>max-age=3600,public</param-value>  

  152.     </init-param>  

  153.     -->  

  154.     <load-on-startup>0</load-on-startup>  

  155.   </servlet>   

  156.   

  157.   <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>  

  158.     

  159.   

  160.   <!-- ==================================================================== -->  

  161.   <!-- JSP Servlet                                                          -->  

  162.   <!-- This is the jasper JSP servlet from the jakarta project              -->  

  163.   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->  

  164.   <!-- The JSP page compiler and execution servlet, which is the mechanism  -->  

  165.   <!-- used by Glassfish to support JSP pages.  Traditionally, this servlet -->  

  166.   <!-- is mapped to URL patterh "*.jsp".  This servlet supports the         -->  

  167.   <!-- following initialization parameters (default values are in square    -->  

  168.   <!-- brackets):                                                           -->  

  169.   <!--                                                                      -->  

  170.   <!--   checkInterval       If development is false and reloading is true, -->  

  171.   <!--                       background compiles are enabled. checkInterval -->  

  172.   <!--                       is the time in seconds between checks to see   -->  

  173.   <!--                       if a JSP page needs to be recompiled. [300]    -->  

  174.   <!--                                                                      -->  

  175.   <!--   compiler            Which compiler Ant should use to compile JSP   -->  

  176.   <!--                       pages.  See the Ant documenation for more      -->  

  177.   <!--                       information. [javac]                           -->  

  178.   <!--                                                                      -->  

  179.   <!--   classdebuginfo      Should the class file be compiled with         -->  

  180.   <!--                       debugging information?  [true]                 -->  

  181.   <!--                                                                      -->  

  182.   <!--   classpath           What class path should I use while compiling   -->  

  183.   <!--                       generated servlets?  [Created dynamically      -->  

  184.   <!--                       based on the current web application]          -->  

  185.   <!--                       Set to ? to make the container explicitly set  -->  

  186.   <!--                       this parameter.                                -->  

  187.   <!--                                                                      -->  

  188.   <!--   development         Is Jasper used in development mode (will check -->  

  189.   <!--                       for JSP modification on every access)?  [true] -->  

  190.   <!--                                                                      -->  

  191.   <!--   enablePooling       Determines whether tag handler pooling is      -->  

  192.   <!--                       enabled  [true]                                -->  

  193.   <!--                                                                      -->  

  194.   <!--   fork                Tell Ant to fork compiles of JSP pages so that -->  

  195.   <!--                       a separate JVM is used for JSP page compiles   -->  

  196.   <!--                       from the one Tomcat is running in. [true]      -->  

  197.   <!--                                                                      -->  

  198.   <!--   ieClassId           The class-id value to be sent to Internet      -->  

  199.   <!--                       Explorer when using <jsp:plugin> tags.         -->  

  200.   <!--                       [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93]   -->  

  201.   <!--                                                                      -->  

  202.   <!--   javaEncoding        Java file encoding to use for generating java  -->  

  203.   <!--                       source files. [UTF-8]                          -->  

  204.   <!--                                                                      -->  

  205.   <!--   keepgenerated       Should we keep the generated Java source code  -->  

  206.   <!--                       for each page instead of deleting it? [true]   -->  

  207.   <!--                                                                      -->  

  208.   <!--   logVerbosityLevel   The level of detailed messages to be produced  -->  

  209.   <!--                       by this servlet.  Increasing levels cause the  -->  

  210.   <!--                       generation of more messages.  Valid values are -->  

  211.   <!--                       FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->  

  212.   <!--                       [WARNING]                                      -->  

  213.   <!--                                                                      -->  

  214.   <!--   mappedfile          Should we generate static content with one     -->  

  215.   <!--                       print statement per input line, to ease        -->  

  216.   <!--                       debugging?  [false]                            -->  

  217.   <!--                                                                      -->  

  218.   <!--                                                                      -->  

  219.   <!--   reloading           Should Jasper check for modified JSPs?  [true] -->  

  220.   <!--                                                                      -->  

  221.   <!--   suppressSmap        Should the generation of SMAP info for JSR45   -->  

  222.   <!--                       debugging be suppressed?  [false]              -->  

  223.   <!--                                                                      -->  

  224.   <!--   dumpSmap            Should the SMAP info for JSR45 debugging be    -->  

  225.   <!--                       dumped to a file? [false]                      -->  

  226.   <!--                       False if suppressSmap is true                  -->  

  227.   <!--                                                                      -->  

  228.   <!--   scratchdir          What scratch directory should we use when      -->  

  229.   <!--                       compiling JSP pages?  [default work directory  -->  

  230.   <!--                       for the current web application]               -->  

  231.   <!--                                                                      -->  

  232.   <!--   tagpoolMaxSize      The maximum tag handler pool size  [5]         -->  

  233.   <!--                                                                      -->  

  234.   <!--   xpoweredBy          Determines whether X-Powered-By response       -->  

  235.   <!--                       header is added by generated servlet  [false]  -->  

  236.   <!--                                                                      -->  

  237.   <!-- If you wish to use Jikes to compile JSP pages:                       -->  

  238.   <!--   Set the init parameter "compiler" to "jikes".  Define              -->  

  239.   <!--   the property "-Dbuild.compiler.emacs=true" when starting Jetty     -->  

  240.   <!--   to cause Jikes to emit error messages in a format compatible with  -->  

  241.   <!--   Jasper.                                                            -->  

  242.   <!--   If you get an error reporting that jikes can't use UTF-8 encoding, -->  

  243.   <!--   try setting the init parameter "javaEncoding" to "ISO-8859-1".     -->  

  244.   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->  

  245.   <servlet id="jsp">  

  246.     <servlet-name>jsp</servlet-name>  

  247.     <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>  

  248.     <init-param>  

  249.         <param-name>logVerbosityLevel</param-name>  

  250.         <param-value>DEBUG</param-value>  

  251.     </init-param>  

  252.     <init-param>  

  253.         <param-name>fork</param-name>  

  254.         <param-value>false</param-value>  

  255.     </init-param>  

  256.     <init-param>  

  257.         <param-name>xpoweredBy</param-name>  

  258.         <param-value>false</param-value>  

  259.     </init-param>  

  260.     <!--    

  261.     <init-param>  

  262.         <param-name>classpath</param-name>  

  263.         <param-value>?</param-value>  

  264.     </init-param>  

  265.     -->  

  266.     <load-on-startup>0</load-on-startup>  

  267.   </servlet>  

  268.   

  269.   <servlet-mapping>   

  270.     <servlet-name>jsp</servlet-name>   

  271.     <url-pattern>*.jsp</url-pattern>   

  272.     <url-pattern>*.jspf</url-pattern>  

  273.     <url-pattern>*.jspx</url-pattern>  

  274.     <url-pattern>*.xsp</url-pattern>  

  275.     <url-pattern>*.JSP</url-pattern>   

  276.     <url-pattern>*.JSPF</url-pattern>  

  277.     <url-pattern>*.JSPX</url-pattern>  

  278.     <url-pattern>*.XSP</url-pattern>  

  279.   </servlet-mapping>  

  280.     

  281.   <!-- ==================================================================== -->  

  282.   <!-- Dynamic Servlet Invoker.                                             -->  

  283.   <!-- This servlet invokes anonymous servlets that have not been defined   -->  

  284.   <!-- in the web.xml or by other means. The first element of the pathInfo  -->  

  285.   <!-- of a request passed to the envoker is treated as a servlet name for  -->  

  286.   <!-- an existing servlet, or as a class name of a new servlet.            -->  

  287.   <!-- This servlet is normally mapped to /servlet/*                        -->  

  288.   <!-- This servlet support the following initParams:                       -->  

  289.   <!--                                                                      -->  

  290.   <!--  nonContextServlets       If false, the invoker can only load        -->  

  291.   <!--                           servlets from the contexts classloader.    -->  

  292.   <!--                           This is false by default and setting this  -->  

  293.   <!--                           to true may have security implications.    -->  

  294.   <!--                                                                      -->  

  295.   <!--  verbose                  If true, log dynamic loads                 -->  

  296.   <!--                                                                      -->  

  297.   <!--  *                        All other parameters are copied to the     -->  

  298.   <!--                           each dynamic servlet as init parameters    -->  

  299.   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->  

  300.   <!-- Uncomment for dynamic invocation  

  301.   <servlet>  

  302.     <servlet-name>invoker</servlet-name>  

  303.     <servlet-class>org.mortbay.jetty.servlet.Invoker</servlet-class>  

  304.     <init-param>  

  305.       <param-name>verbose</param-name>  

  306.       <param-value>false</param-value>  

  307.     </init-param>  

  308.     <init-param>  

  309.       <param-name>nonContextServlets</param-name>  

  310.       <param-value>false</param-value>  

  311.     </init-param>  

  312.     <init-param>  

  313.       <param-name>dynamicParam</param-name>  

  314.       <param-value>anyValue</param-value>  

  315.     </init-param>  

  316.     <load-on-startup>0</load-on-startup>  

  317.   </servlet>  

  318.   

  319.   <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping>  

  320.   -->  

  321.   

  322.   

  323.   

  324.   <!-- ==================================================================== -->  

  325.   <session-config>  

  326.     <session-timeout>30</session-timeout>  

  327.   </session-config>  

  328.   

  329.   <!-- ==================================================================== -->  

  330.   <!-- Default MIME mappings                                                -->  

  331.   <!-- The default MIME mappings are provided by the mime.properties        -->  

  332.   <!-- resource in the org.mortbay.jetty.jar file.  Additional or modified  -->  

  333.   <!-- mappings may be specified here                                       -->  

  334.   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->  

  335.   <!-- UNCOMMENT TO ACTIVATE  

  336.   <mime-mapping>  

  337.     <extension>mysuffix</extension>  

  338.     <mime-type>mymime/type</mime-type>  

  339.   </mime-mapping>  

  340.   -->  

  341.   

  342.   <!-- ==================================================================== -->  

  343.   <welcome-file-list>  

  344.     <welcome-file>index.html</welcome-file>  

  345.     <welcome-file>index.htm</welcome-file>  

  346.     <welcome-file>index.jsp</welcome-file>  

  347.   </welcome-file-list>  

  348.   

  349.   <!-- ==================================================================== -->  

  350.   <locale-encoding-mapping-list>  

  351.     <locale-encoding-mapping><locale>ar</locale><encoding>ISO-8859-6</encoding></locale-encoding-mapping>  

  352.     <locale-encoding-mapping><locale>be</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>  

  353.     <locale-encoding-mapping><locale>bg</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>  

  354.     <locale-encoding-mapping><locale>ca</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>  

  355.     <locale-encoding-mapping><locale>cs</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>  

  356.     <locale-encoding-mapping><locale>da</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>  

  357.     <locale-encoding-mapping><locale>de</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>  

  358.     <locale-encoding-mapping><locale>el</locale><encoding>ISO-8859-7</encoding></locale-encoding-mapping>  

  359.     <locale-encoding-mapping><locale>en</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>  

  360.     <locale-encoding-mapping><locale>es</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>  

  361.     <locale-encoding-mapping><locale>et</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>  

  362.     <locale-encoding-mapping><locale>fi</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>  

  363.     <locale-encoding-mapping><locale>fr</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>  

  364.     <locale-encoding-mapping><locale>hr</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>  

  365.     <locale-encoding-mapping><locale>hu</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>  

  366.     <locale-encoding-mapping><locale>is</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>  

  367.     <locale-encoding-mapping><locale>it</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>  

  368.     <locale-encoding-mapping><locale>iw</locale><encoding>ISO-8859-8</encoding></locale-encoding-mapping>  

  369.     <locale-encoding-mapping><locale>ja</locale><encoding>Shift_JIS</encoding></locale-encoding-mapping>  

  370.     <locale-encoding-mapping><locale>ko</locale><encoding>EUC-KR</encoding></locale-encoding-mapping>       

  371.     <locale-encoding-mapping><locale>lt</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>  

  372.     <locale-encoding-mapping><locale>lv</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>  

  373.     <locale-encoding-mapping><locale>mk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>  

  374.     <locale-encoding-mapping><locale>nl</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>  

  375.     <locale-encoding-mapping><locale>no</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>  

  376.     <locale-encoding-mapping><locale>pl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>  

  377.     <locale-encoding-mapping><locale>pt</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>  

  378.     <locale-encoding-mapping><locale>ro</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>  

  379.     <locale-encoding-mapping><locale>ru</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>  

  380.     <locale-encoding-mapping><locale>sh</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>  

  381.     <locale-encoding-mapping><locale>sk</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>  

  382.     <locale-encoding-mapping><locale>sl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>  

  383.     <locale-encoding-mapping><locale>sq</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>  

  384.     <locale-encoding-mapping><locale>sr</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>  

  385.     <locale-encoding-mapping><locale>sv</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>  

  386.     <locale-encoding-mapping><locale>tr</locale><encoding>ISO-8859-9</encoding></locale-encoding-mapping>  

  387.     <locale-encoding-mapping><locale>uk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>  

  388.     <locale-encoding-mapping><locale>zh</locale><encoding>GB2312</encoding></locale-encoding-mapping>  

  389.     <locale-encoding-mapping><locale>zh_TW</locale><encoding>Big5</encoding></locale-encoding-mapping>     

  390.   </locale-encoding-mapping-list>  

  391.     

  392.   <security-constraint>  

  393.     <web-resource-collection>  

  394.       <web-resource-name>Disable TRACE</web-resource-name>  

  395.       <url-pattern>/</url-pattern>  

  396.       <http-method>TRACE</http-method>  

  397.     </web-resource-collection>  

  398.     <auth-constraint/>  

  399.   </security-constraint>  

  400.     

  401. </web-app>  



转载于:https://my.oschina.net/stamen/blog/495479

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值