Springboot集成jpa出现Test compiled by a more recent version of the Java Runtime (class file version 55.0),this version Java Runtimerecognizesclass file versions up to 52.0问题
出现原因:jpa的starter版本过高,默认使用了java11编译
解决方法:降低jpa-starter的版本
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>2.0.8</version>
</dependency>