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

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

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>

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容