首页 > 编程语言 > 详细

spring boot 引入JPA 后project无法启动

时间:2019-08-15 13:41:47      阅读:127      评论:0      收藏:0      [点我收藏+]

 报错信息如下:

是由找不到 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

spring boot 引入JPA 后project无法启动

原文:https://www.cnblogs.com/wahaha603/p/11357370.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!