Swagger Springfox配置问题当与SOAP混合使用时

时间:2016-12-12 18:02:40

标签: rest spring-boot swagger swagger-2.0 springfox

我有一个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

如何让他们两个休息和肥皂?

0 个答案:

没有答案