-
[Spring] Intellij 실행시 finished with non-zero exit value 1 오류Spring 2023. 6. 28. 10:21
초기에 스프링 부트를 실행하면 발생하는 오류라고 한다..
1. [File] > [Settings]
2. [Build, Excution, Deployment > Build Tools > Gradle]
3. Gradle (Default) -> IntelliJ IDEA 변경
수정하고 다시 실행해주면
성공! 인줄 알았지만
Web application could not be started as there was no org.springframework.boot.web.servlet.server.ServletWebServerFactory bean defined in the context. 오류 발생
확인해보니 내가 main클래스 작성을 잘못했다. ㅎ
package me.kimyerin.springbootdeveloper; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SpringBootDeveloperApplication { public static void main(String[] args) { SpringApplication.run(SpringBootDeveloperApplication.class, args); } }
수정하고 다시 실행해보면
진짜 성공 ~
'Spring' 카테고리의 다른 글
[Spring] Spring + Slack 연동해서 알림받기(1) (0) 2023.09.05 [Spring] MySQL,Cannot drop table 오류 해결하기 (0) 2023.09.03 [Spring] Http 요청 - 응답 이해하기 (0) 2023.06.29 [Spring] Spring 개념 정리 (0) 2023.06.29 [Spring] 프로젝트 생성하기 (0) 2023.06.28