web.xml trim-directive

This commit is contained in:
FangfangZhao 2019-01-15 12:03:00 +08:00
parent beaf3c49e9
commit bc6016b32c
2 changed files with 20 additions and 11 deletions

View file

@ -72,7 +72,7 @@
<dependency>
<groupId>com.github.devezhao</groupId>
<artifactId>persist4j</artifactId>
<version>2c71f4bea4</version>
<version>master-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>junit</groupId>

View file

@ -1,18 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<display-name>Rebuild</display-name>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
<display-name>REBUILD</display-name>
<description>Building your system freely</description>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:application-ctx.xml</param-value>
</context-param>
<listener>
<listener-class>com.rebuild.server.ServerListener</listener-class>
</listener>
<listener>
<listener-class>com.rebuild.web.OnlineSessionStore</listener-class>
</listener>
<filter>
<filter-name>encodingFilter</filter-name>
@ -102,11 +107,15 @@
<location>/error40x.jsp</location>
</error-page>
<listener>
<listener-class>com.rebuild.web.OnlineSessionStore</listener-class>
</listener>
<session-config>
<session-timeout>120</session-timeout>
</session-config>
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<trim-directive-whitespaces>true</trim-directive-whitespaces>
</jsp-property-group>
</jsp-config>
</web-app>