我正在使用apache cxf spring,这些东西在Eclipse中运行,但不在命令行中运行.不断获取错误无法解决绑定
解决方法:
解决方案:
>步骤1:使用Maven Shade插件
> step2:如果您将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