Cannot access class file for org.springframework.boot.SpringApplication error - Stack Overflow

Project scenario:

Tip: Here is a brief background on the project:

java: 无法访问org.springframework.boot.SpringApplication 错误的类文件: /D:/Environment/maven-3.8.1/myRepository/org/springframework/boot/spring-boot/3.0.2/spring-boot-3.0.2.jar!/org/springframework/boot/SpringApplication.class 类文件具有错误的版本 6

Problem Description

Tip: Here is a description of the problems encountered in the project: Analysis of the reasons for
the daily error reports when springboot connects to redis

insert image description here
:
The default spring-boot-starter-parent version of idea is 3.0
insert image description here
and changed to the following, 2.6.6 or other adapted versions
insert image description here

Guess you like

Origin blog.csdn.net/mlynb/article/details/131822710