인텔리제이에서 다음과 같은 에러 출력
Execution failed for task ':JiwonSpringApplication.main()'.
> Process 'command 'C:\Program Files\Java\jdk-17\bin\java.exe'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
- 상단바에서 [File] - [Settings] 메뉴 클릭
- 왼쪽 리스트에서 [Build, Execution, Deployment] - [Build Tools] - [Gradle] 탭 클릭
- Build and run using과 Run tests using을 IntelliJ IDEA로 변경
- Gradle JVM을 설치 경로로 지정
- 설정 저장 후 스프링 프로젝트 재실행
위 에러는 대부분 인텔리제이에서 스프링 프로젝트 첫 실행 시에만 나타나는 에러로, 한번 설정해주면 다음에 다시 에러가 발생할 가능성 거의 없음
'냅다 하기 > 우당탕탕 개발일지' 카테고리의 다른 글
in the working copy of LF will be replaced by CRLF the next time Git touches it (0) | 2023.10.11 |
---|