Created
May 1, 2013 01:16
-
-
Save rvazquezglez/5493149 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<web-app id="struts_blank" version="2.4" | |
xmlns="http://java.sun.com/xml/ns/j2ee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> | |
<display-name>Struts Blank</display-name> | |
<listener> | |
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | |
</listener> | |
<context-param> | |
<param-name>db.url</param-name> | |
<param-value>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1\;runscript from 'classpath:sql/h2schema.sql'</param-value> | |
</context-param> | |
<context-param> | |
<param-name>db.user</param-name> | |
<param-value>sa</param-value> | |
</context-param> | |
<context-param> | |
<param-name>db.password</param-name> | |
<param-value>sa</param-value> | |
</context-param> | |
<context-param> | |
<param-name>db.tcpServer</param-name> | |
<param-value>-tcpAllowOthers</param-value> | |
</context-param> | |
<context-param> | |
<param-name>contextConfigLocation</param-name> | |
<param-value> | |
classpath:applicationContext.xml | |
</param-value> | |
</context-param> | |
<listener> | |
<listener-class>org.h2.server.web.DbStarter</listener-class> | |
</listener> | |
<servlet> | |
<servlet-name>H2Console</servlet-name> | |
<servlet-class>org.h2.server.web.WebServlet</servlet-class> | |
<init-param> | |
<param-name>webAllowOthers</param-name> | |
<param-value></param-value> | |
</init-param> | |
<init-param> | |
<param-name>trace</param-name> | |
<param-value></param-value> | |
</init-param> | |
<load-on-startup>1</load-on-startup> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>H2Console</servlet-name> | |
<url-pattern>/dbconsole/*</url-pattern> | |
</servlet-mapping> | |
<filter> | |
<filter-name>struts2</filter-name> | |
<filter-class> | |
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter | |
</filter-class> | |
</filter> | |
<filter-mapping> | |
<filter-name>struts2</filter-name> | |
<url-pattern>/*</url-pattern> | |
</filter-mapping> | |
<welcome-file-list> | |
<welcome-file>index.html</welcome-file> | |
</welcome-file-list> | |
</web-app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment