">

cxf之Exception in thread "main" java.lang.NoSuchMethodError: org.apache.cxf.jaxrs.provider.ProviderFactory.

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.cxfgroupId>
      <artifactId>cxf-rt-frontend-jaxrsartifactId>
      <version>${cxf.version}version>
    dependency>
    
    
    <dependency>
      <groupId>org.apache.cxfgroupId>
      <artifactId>cxf-rt-rs-clientartifactId>
      <version>${cxf.version}version>
    dependency>
    
    <dependency>
      <groupId>com.fasterxml.jackson.jaxrsgroupId>
      <artifactId>jackson-jaxrs-json-providerartifactId>
      <version>${jackson.version}version>
    dependency>

 

你可能感兴趣的:(cxf之Exception in thread "main" java.lang.NoSuchMethodError: org.apache.cxf.jaxrs.provider.ProviderFactory.)