java: 无法访问org.springframework.web.bind.annotation.GetMapping 类文件具有错误的版本 61.0, 应为 52.0请删除该文件或确保该文件位于正

问题

启动时发现IDEA 发生错误

原因

pom中 spring-boot 的版本太高了,一般高于等于 3.0 均会错误

解决方式

降低 pom 中的spring-boot 版本,降低到3.0 以下版本
java: 无法访问org.springframework.web.bind.annotation.GetMapping 类文件具有错误的版本 61.0, 应为 52.0请删除该文件或确保该文件位于正_第1张图片

你可能感兴趣的:(奇怪Bug及不常见问题总结,intellij-idea)