Last active
August 29, 2015 14:19
-
-
Save zavierrodriguez/e7bf14d3db0096a50b78 to your computer and use it in GitHub Desktop.
This file contains 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 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" | |
version="3.0"> | |
<!-- The servlet mapping appears to be needed | |
in order to handle REST call URL mapping --> | |
<!-- | |
Both the url patterns below work just fine but only one at a time. | |
--> | |
<servlet-mapping> | |
<servlet-name>dispatcher</servlet-name> | |
<!--<url-pattern>/simple/*</url-pattern>--> | |
<url-pattern>/v1/*</url-pattern> | |
</servlet-mapping> | |
<!-- This servlet element defines the element name above --> | |
<servlet> | |
<servlet-name>dispatcher</servlet-name> | |
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> | |
<load-on-startup>1</load-on-startup> | |
</servlet> | |
<context-param> | |
<param-name>contextConfigLocation</param-name> | |
<param-value>/WEB-INF/dispatcher-servlet.xml</param-value> | |
</context-param> | |
<listener> | |
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | |
</listener> | |
</web-app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment