Skip to content

Instantly share code, notes, and snippets.

@AntonioDiaz
Created November 30, 2016 07:09
Show Gist options
  • Save AntonioDiaz/1388389782b1a483bbb51ffbf013a5a7 to your computer and use it in GitHub Desktop.
Save AntonioDiaz/1388389782b1a483bbb51ffbf013a5a7 to your computer and use it in GitHub Desktop.
config for Spring MVC project.
<servlet>
<servlet-name>spring-web</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>spring-web</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment