在SpringBoot集成Redis时候遇到报错:
org/springframework/nativex/NativeListener 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
具体如图
产生原因:
1.jdk版本没有一致
解决方案:
一、在pom文件中将版本改成8,如下图:
- spring-native.version版本太高
3.最后一个步骤:如图
修改后运行就没报错了:如下图



