스프링 부트를 사용할 때, 서버를 켰다가 정지 시켰을 때 가끔 이런 오류가 나타날 때가 있다.
원인은 환경문제이다.
Gradle로 실행했을 경우 나오는 문제이고 해결법은 IntelliJ로 실행하도록 바꿔주면 된다.
File - Settings - Build,Execution,Deployment - Build Tools - Gradle로 이동하여
기본값인 Gradle(default)에서
IntelliJ IDEA로 변경해주면 된다.
변경 후에 IDE를 껐다 다시 켜줘야 적용된다.
'오류 해결' 카테고리의 다른 글
[Spring Boot] Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 에러 (0) | 2022.12.20 |
---|---|
깃 오류 (0) | 2022.11.01 |
인터셉터 등록 후 부트스트랩 적용이 안 되는 문제 (0) | 2022.08.10 |
[JPA] No default constructor for entity (0) | 2022.07.18 |
Cannot resolve symbol 'springframework' 문제해결 - Intellij (0) | 2022.05.20 |