不同URL上的多个Spring WS端点

时间:2019-03-13 23:07:04

标签: spring spring-ws

我正在使用Spring Boot,就像示例https://spring.io/guides/gs/producing-web-service/中一样 WS端点通过 MessageDispatcher 在/ ws / *上公开:

@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
    MessageDispatcherServlet servlet = new MessageDispatcherServlet();
    servlet.setApplicationContext(applicationContext);
    servlet.setTransformWsdlLocations(true);
    return new ServletRegistrationBean(servlet, "/ws/*");
} 

我想在不同的URL上有2个端点。有可能吗?

0 个答案:

没有答案