Skip to content

Instantly share code, notes, and snippets.

@jdmr
Created February 18, 2013 21:05
Show Gist options
  • Save jdmr/4980742 to your computer and use it in GitHub Desktop.
Save jdmr/4980742 to your computer and use it in GitHub Desktop.
Spring 3.2 web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app
version="3.0"
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_3_0.xsd">
<display-name>Demo</display-name>
<context-param>
<param-name>spring.profiles.active</param-name>
<param-value>production</param-value>
</context-param>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>/404.html</location>
</error-page>
<error-page>
<error-code>405</error-code>
<location>/405.html</location>
</error-page>
</web-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment