解决方案:
- 步骤1:使用Maven Shade插件
- 第二步:如果您在cxf中使用spring,请确保在@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
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)