【问题标题】:Would @WebService annotation interfere with @Endpoint in Spring Web Services?@WebService 注解会干扰 Spring Web Services 中的 @Endpoint 吗?
【发布时间】:2018-09-28 14:04:59
【问题描述】:

我正在编写一个 Spring Boot Web 服务应用程序,因此我使用了 @Endpoint@PayloadRoot 注释。

出于文档目的,我使用Enunciate,在撰写本文时它不支持 Spring-WS 注释。

如果我将javax.jws.WebService 也添加到已经有@Endpoint 注释的类中会不会有任何危害?我应该只使用其中一种吗?

【问题讨论】:

    标签: spring web-services spring-ws enunciate


    【解决方案1】:

    只要您的类路径中没有像 CXF 这样的 JAX-WS 实现并配置了 WebService 注释,就不会考虑。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-12-23
      • 1970-01-01
      • 1970-01-01
      • 2014-10-19
      • 1970-01-01
      • 2012-08-08
      • 1970-01-01
      • 2017-09-19
      相关资源
      最近更新 更多