Spring boot 프로젝트를 실행시 Gradle build는 잘 되었는데 아래와 같은 오류가 발생
spring boot cannot find main class
xxx.yyyy.bbb.Application 찾거나 로드할 수 없습니다.
Command line is too long. Shorten command line for {프로젝트명} or also for Spring Boot default configuration?
해결방법
1. workspace.xml 파일 변경
1.1 /.idea/workspace.xml 파일 오픈
1.2 PropertiesComponent
1.3 PropertiesComponent 태그 안에 아래 코드 추가
<property name=”dynamic.classpath” value=”true” />
2. Run Configuration에서 Shorten command line 변경
위의 방법은 Run Configuration에서 설정을 찾을 수가 없어서 Intellij 버전이 올라가면서 해당 설정부분이 없애진게 아닌가 추측해봄
Reference
https://sehwan93.github.io/java/2021-07-08-commandLineIsTooLong/