【问题标题】:Problem while creating a new spring boot projectProblem while creating a new spring boot project
【发布时间】:2022-12-31 15:02:04
【问题描述】:

In the help.md file it's telling me that JVM was changed from 11 to 17 this is what the help.md file looks like

The following was discovered as part of building this project:

* The JVM level was changed from '11' to '17', review the [JDK Version Range](https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Versions#jdk-version-range) on the wiki for more details.

and here is an example of later problems

And even if i change the project structure manually to java 11 sdk i have issues with versions next .

  • Spring Boot requires Java 17 not 11. So ofcourse you have issues when using Java 11 (that is also what the error is telling you).
  • Specifically Spring Boot 3.0.0. Older Spring Boot versions of course support Java 11 as well.
  • But spring boot supports other versions of java and this is the first time such a problem appear even though i made other projects with java 11 and 8
  • Spring 6/Spring Boot 3 requires Java 17. For older versions you need to stay at Spring 5.5 / Spring Boot 2

标签: java spring spring-boot intellij-idea


【解决方案1】:

This problem is occuring in the newer verison of spring boot. So when creating project using spring initializr or spring starter project select the older version of spring boot (like 3.0.1 or 2.7.7). This will solve the problem. spring starter image

    猜你喜欢
    • 2021-02-13
    • 1970-01-01
    • 2022-12-01
    • 2019-07-13
    • 1970-01-01
    • 2022-12-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多