STS, Intellij command line to long 오류

BM1201·2023년 9월 12일
0

IDE

목록 보기
4/7
post-thumbnail

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/

profile
개발자의 기록하는 습관

0개의 댓글

관련 채용 정보