新版的idea在创建SpringBoot项目时最低的JDK都需要选择 jdk17,可是我的本地只有jdk8,
通过创建maven工程,然后在pom中手动填写相关依赖等信息来创建项目,pom文件内容(官网copy的)
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.18</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
标签:SpringBoot2.7,项目,新建,spring,boot,springframework,maven,pom,org
From: https://www.cnblogs.com/lybaobei/p/17919809.html