记录一次老项目启动报错-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不支持

解决办法:
指定版本

org.hibernate.common
hibernate-commons-annotations
5.0.1.Final

你可能感兴趣的:(记录一次老项目启动报错-annotations)