SpringBoot项目无法打包问题
问题:
Java Runtime (class file version 62.0), this version of the Java Runtime only recognizes class file versions up to 52.0
原因:
原因是maven在编译打包过程中没有指定spring-boot-maven-plugin的版本,默认会从仓库中拉取最新的打包插件版本,而最新的3.0.0版本不被jdk8支持,无法执行编译。
解决:需要用户在pom.xml文件中手动指定spring-boot-maven-plugin该插件的打包版本。
![在这里插入图片描述](https://img-blog.csdnimg.cn/a7ae3c9d41e84ab2906f32de3078ab1c.png)