Skip to content

Instantly share code, notes, and snippets.

@ceharris
Created October 16, 2014 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ceharris/801444e94811b91886d3 to your computer and use it in GitHub Desktop.
Save ceharris/801444e94811b91886d3 to your computer and use it in GitHub Desktop.
JAX-RS Application Servlet Mapping
<!-- This gist simply provides the web.xml configuration needed to support JAX-RS endpoints -->
<servlet>
<servlet-name>javax.ws.rs.core.Application</servlet-name>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>javax.ws.rs.core.Application</servlet-name>
<url-pattern>/api/*</url-pattern>
</servlet-mapping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment