Skip to content

Instantly share code, notes, and snippets.

@zeroows
Created January 8, 2015 10:12
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 zeroows/2a03ea1e80d92ad94b66 to your computer and use it in GitHub Desktop.
Save zeroows/2a03ea1e80d92ad94b66 to your computer and use it in GitHub Desktop.
adding a Servlet to spring boot
@Bean
public ServletRegistrationBean webservices() {
final ServletRegistrationBean servletRegistrationBean = new ServletRegistrationBean(new CXFServlet(),"/service/*");
servletRegistrationBean.setLoadOnStartup(1);
return servletRegistrationBean;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment