-
execution failed for task ':bootjar.> main class name has not been configured and it could not be...Backend/SPRING 2022. 5. 21. 20:10
main class를 gradle에서 인식하지 못해서 발생한 이슈입니다.
기본 클래스를 찾거나 로드할 수 없습니다.라는 메세지가 나올때 에도 저는 아래 방법들 중 하나에서 해결되었습니다.
1. settings.gralde과 build.gradle의 위치가 제대로 자리하고 있는지 확인하기
2. settings.gradle에서 rootProject의 이름 설정이 제대로 되어있는지 확인하기
3. multi project structure 을 구성하려고 여러 폴더를 만든 경우, settings.gralde에서 include가 제대로 되어있는지 확인하기
4.IntelliJ 의 우측 상단의 Run/Debug Configurations에서 , 자신의 Spring boot Application에서, configuration 탭에서, Use classth path of moudle 항목에서 class path가 제대로 지정되어있는지 확인하기
intelliJ 여기까지 해보셨는데도 해결이 안되셨다면, Proejct Clean 후에 Project Rebuild 해보시는것을 추천드립니다.
'Backend > SPRING' 카테고리의 다른 글