gpt4 book ai didi

java - 无法解析 http ://schemas. xmlsoap.org/wsdl/soap/的绑定(bind)

转载 作者:行者123 更新时间:2023-11-29 05:17:05 24 4
gpt4 key购买 nike

我正在使用 apache cxf + spring,这些东西在 eclipse 中运行,但不在命令行中运行。继续获取错误无法解析绑定(bind)

最佳答案

解决方案:

  1. 第一步:使用maven shade插件
  2. 第 2 步:如果您将 spring 与 cxf 一起使用,请确保将以下内容添加到您的@Configuration 类

    @ImportResource( { "classpath:META-INF/cxf/cxf.xml", "classpath:META-INF/cxf/cxf-extension http.xml", "classpath:META-INF/cxf/cxf-extension -soap.xml"} )

<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />

感谢

http://www.java-allandsundry.com/2011/01/orgapachecxfservicefactoryserviceconstr.html

关于java - 无法解析 http ://schemas. xmlsoap.org/wsdl/soap/的绑定(bind),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26159206/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com