美文网首页
记录一次老项目启动报错-annotations

记录一次老项目启动报错-annotations

作者: Jewei | 来源:发表于2022-11-28 22:06 被阅读0次

一个老项目,突然要改,发现怎么都起不来了

609a5596000e1396c830ecc5084e442e.png

Caused by: java.lang.UnsupportedClassVersionError: org/hibernate/annotations/common/reflection/java/JavaReflectionManager has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

原因:
依赖冲突,hibernate-commons-annotations的版本过高,导致jdk8不支持

解决办法:
指定版本
<dependency>
<groupId>org.hibernate.common</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>5.0.1.Final</version>
</dependency>

相关文章

网友评论

      本文标题:记录一次老项目启动报错-annotations

      本文链接:https://www.haomeiwen.com/subject/vuurfdtx.html