Created
January 8, 2015 10:12
-
-
Save zeroows/2a03ea1e80d92ad94b66 to your computer and use it in GitHub Desktop.
adding a Servlet to spring boot
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
@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