Spring_SpringBoot/Error

java version 불일치

한번은하자 2024. 6. 19. 20:07

The project was not built due to "release 22 is not found in the system". Fix the problem, then try refreshing this project and building it since it may be inconsistent 에러가 떴다...

 

난 17버전 쓰는데  그냥 최근게 가장 좋겠지하고 무의식적으로 사용했다.

 

고쳐보자

 

1) pom.xml 들어가기

java 17

 

java 버전 22였던 것을 17로 바뀌었다. 

 

17버전으로 바꾸면 Project 자체에서는 에러가 나지 않지만 실행할 경우 에러가 난다.