jersey+hibernate5+spring4整合报错

Hibernate 5 java.lang.NoSuchMethodError org.jboss.logging.Logger.debugf

 

解决方案:java

 <dependency>
         <groupId>org.glassfish.jersey.ext</groupId>
         <artifactId>jersey-spring3</artifactId>
         <exclusions>
          <exclusion>
              <groupId>org.springframework</groupId>
              <artifactId>spring-core</artifactId>
          </exclusion>            
          <exclusion>
              <groupId>org.springframework</groupId>
              <artifactId>spring-web</artifactId>
          </exclusion>
          <exclusion>
              <groupId>org.springframework</groupId>
              <artifactId>spring-beans</artifactId>
          </exclusion>
          <exclusion>
                 <artifactId>jersey-bean-validation</artifactId>
                 <groupId>org.glassfish.jersey.ext</groupId>
             </exclusion>
             <exclusion>
                 <artifactId>bean-validator</artifactId>
                 <groupId>org.glassfish.hk2.external</groupId>
             </exclusion>
      </exclusions> 
        </dependency>

依赖jersey-spring3时排除jersey-bean-validation,bean-validator 这两个依赖web

相关文章
相关标签/搜索