Notice
Recent Posts
Recent Comments
Link
Cronex
spring-boot Intellij에서 실행 시 Execution failed for task ':.main()'. 오류 본문
spring-boot/errors
spring-boot Intellij에서 실행 시 Execution failed for task ':.main()'. 오류
crone 2023. 4. 18. 13:27Intellij 에서 프로젝트 실행 후 stop 을 눌러 종료할 때 console에

이런 오류가 발생할 때가 있는데, gradle build 할 때 gradle을 사용해서 발생하는 오류이다.
settings에서 gradle을 검색해보면 Build Tools -> Gradle이 보이는데 여기서 Build and Run 값에 Gradle을 Intellij IDEA 로 변경해주면 된다.

이제 다시 main을 실행한 후에 종료해보면 오류가 사라진 것을 확인할 수 있다.

'spring-boot > errors' 카테고리의 다른 글
spring-boot + vue 405 해결법(2) - 디버깅 (0) | 2023.04.30 |
---|---|
spring-boot + vue 405 해결법(1) (0) | 2023.04.28 |
spring boot + vue project router문제와 404 해결 (0) | 2023.04.25 |
spring boot vue 프로젝트 설정 시 webpack-dev-server 오류 (0) | 2023.04.18 |