码迷,mamicode.com
首页 > 编程语言 > 详细

cxf之Exception in thread "main" java.lang.NoSuchMethodError: org.apache.cxf.jaxrs.provider.ProviderFactory.<init>(Lorg/apache/cxf/Bus;)V

时间:2018-01-09 16:46:30      阅读:599      评论:0      收藏:0      [点我收藏+]

标签:cli   更正   pac   fast   end   blog   tor   冲突   version   

pom.xml中关于cxf的配置jar包冲突???

1.http://blog.csdn.net/yzl_8877/article/details/53216923

2.https://www.cnblogs.com/bukudekong/p/3819726.html

以下是cxf集成spring后的pom文件配置(更正后的),不报错了.

<dependency>
      <groupId>org.apache.cxf</groupId>
      <artifactId>cxf-rt-frontend-jaxrs</artifactId>
      <version>${cxf.version}</version>
    </dependency>
    <!--<dependency>
      <groupId>org.apache.cxf</groupId>
      <artifactId>cxf-rt-transports-http-jetty</artifactId>
      <version>${cxf.version}</version>
    </dependency>-->
    <!--cxf client-->
    <dependency>
      <groupId>org.apache.cxf</groupId>
      <artifactId>cxf-rt-rs-client</artifactId>
      <version>${cxf.version}</version>
    </dependency>
    <!--json provider-->
    <dependency>
      <groupId>com.fasterxml.jackson.jaxrs</groupId>
      <artifactId>jackson-jaxrs-json-provider</artifactId>
      <version>${jackson.version}</version>
    </dependency>

 

cxf之Exception in thread "main" java.lang.NoSuchMethodError: org.apache.cxf.jaxrs.provider.ProviderFactory.<init>(Lorg/apache/cxf/Bus;)V

标签:cli   更正   pac   fast   end   blog   tor   冲突   version   

原文地址:https://www.cnblogs.com/yadongliang/p/8251392.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!