我正在使用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个端点。有可能吗?