我有一个spring boot应用程序,在添加soap web服务之前有rest和soap服务每个东西都运行正常,我可以访问swagger-ui.html页面 添加下面的代码行后,swagger停止工作
@Bean
public ServletRegistrationBean dispatcherServlet() {
CXFServlet cxfServlet = new CXFServlet();
ServletRegistrationBean servletRegistrationBean = new ServletRegistrationBean(cxfServlet, SERVLET_MAPPING_URL_PATH + "/*");
// Add custom Title to CXF´s ServiceList
Map<String, String> initParameters = servletRegistrationBean.getInitParameters();
initParameters.put("service-list-title", SERVICE_LIST_TITLE);
return servletRegistrationBean;
}
下面是github上的应用程序代码
Boot application with rest and soap
如何让他们两个休息和肥皂?