官方网址:GitHub - spring-projects/spring-boot: Spring Boot
springboot版本:
报错截图:
报错代码:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/7.6/userguide/gradle_daemon.html
Process command line: D:\devUtils\jdk_location\bin\java.exe --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx2g -Dfile.encoding=UTF-8+ -Duser.country=CN -Duser.language=zh -Duser.variant -cp D:\.gradle\wrapper\dists\gradle-7.6-bin\9l9tetv7ltxvx3i8an4pb86ye\gradle-7.6\lib\gradle-launcher-7.6.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.6
Please read the following process output to find out more:
-----------------------
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unrecognized option: --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED-----------------------
Check the JVM arguments defined for the gradle process in:
- gradle.properties in project root directory
官方表明:
JDK需要17:
IDEA直接勾选最新版本JDK:
等待编译即可:
完结。