Spring/Spring 오류해결
SpringBoot 실행 오류 해결 ] Execution failed for task ':Application.main()'.> Process 'command 'C:/Program Files/Java/jdk-11.0.17/bin/java.exe'' finished with non-zero exit value 1
디깅
2023. 2. 23. 16:35
728x90
IntelliJ에서 SpringBoot 프로젝트 실행시 아래와 같은 오류가 발생하였다.
Execution failed for task ':Application.main()'.
> Process 'command 'C:/Program Files/Java/jdk-11.0.17/bin/java.exe'' finished with non-zero exit value 1
해결방법
File > Settings 에 들어간다.
Build,Execution,Deployment > Build Tools > Gradle 을 누른다.
Build and run using 과 Run tests using 이 Gradle로 되어있다!
Build and run using 과 Run tests using 을 Intellij IDEA로 변경해준다.
설정하고 다시 실행하면 정상적으로 실행된다!
반응형