spring boot 引入JPA 后project无法启动
报错信息如下:
是由找不到 CoreMessageLogger.debugf 方法引起的,CoreMessageLogger类继承了BasicLogger, 而BasicLogger 出现在了2个jar包中,删除jboss-logging-3.1.1.GA.jar 即可.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 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
标签:
Spring boot
, CoreMessageLogger
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· 什么是nginx的强缓存和协商缓存
· 一文读懂知识蒸馏
· Manus爆火,是硬核还是营销?