原因:SpringBoot使用了3.0或者3.0以上,因为Spring官方发布从Spring6以及SprinBoot3.0开始最低支持JDK17; 解决办法:将SpringBoot版本降低为3.0以下(如:2.7.5),刷新Maven重启即可。