java: cannot access org.springframework.boot.SpringApplication solution
The error message is as follows :
java: cannot access org.springframework.boot.SpringApplication
wrong class file: /C:/Users/11848/.m2/repository/org/springframework/boot/spring-boot/3.0.0/spring-boot -3.0.0.jar!/org/springframework/boot/SpringApplication.class
class file has wrong version 61.0, should be 52.0 Please
delete the file or make sure it is in the correct classpath subdirectory.
Solution:
The reason for this error is that the default spring-boot-starter-parent
version of idea is 3.0
, 2.7.6
just change it to a lower version or