Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Example web.xml configuration

blockmar edited this page Dec 14, 2011 · 2 revisions

Example servlet config in web.xml. Replace param-value with the name of your configuration class.

<servlet>
  <servlet-name>letitrest</servlet-name>
  <servlet-class>com.blockmar.letitrest.servlet.DispatcherServlet</servlet-class>  
  <init-param>
    <param-name>servletConfig</param-name>
    <param-value>com.domain.myapp.MyDispatcherServletConfig</param-value>
  </init-param>
  <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
  <servlet-name>letitrest</servlet-name>
  <url-pattern>/*</url-pattern>
</servlet-mapping>

Clone this wiki locally