spring boot 引入JPA 后project无法启动
报错信息如下:
是由找不到 CoreMessageLogger.debugf 方法引起的,CoreMessageLogger类继承了BasicLogger, 而BasicLogger 出现在了2个jar包中,删除jboss-logging-3.1.1.GA.jar 即可.
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-08-14 17:25:39.810 ERROR 10728 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:94)
The following method did not exist:
org.hibernate.internal.CoreMessageLogger.debugf(Ljava/lang/String;II)V
The method's class, org.hibernate.internal.CoreMessageLogger, is available from the following locations:
jar:file:/D:/repository/org/hibernate/hibernate-core/5.3.10.Final/hibernate-core-5.3.10.Final.jar!/org/hibernate/internal/CoreMessageLogger.class
It was loaded from the following location:
file:/D:/repository/org/hibernate/hibernate-core/5.3.10.Final/hibernate-core-5.3.10.Final.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.hibernate.internal.CoreMessageLogger
Process finished with exit code 0

参考 http://blog.sina.com.cn/s/blog_54132b790102vww3.html
一花一叶总关情

浙公网安备 33010602011771号