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