如果你使用的是 JDK 8,推荐使用 Spring Boot 2.x:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.4</version>
</parent>
如果你使用的是 JDK 17,推荐使用 Spring Boot 3.x:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.0</version>
</parent>
确保你的项目使用的 JDK 版本与引入的 Spring Boot 版本兼容。