프로젝트 분리를 진행한 뒤,
1. settings.gradle에 분리된 모듈을 모두 포함시켰고
2. 분리시킨 프로젝트의 build.gradle에 import project(':{분리된 프로젝트}')를 추가했는데도 불구하고 클래스를 찾을 수 없다는 오류 발생 시
분리된 프로젝트의 build.gradle에 아래와 같은 코드를 추가하면 해결됩니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bootJar { enabled = false } | |
jar { enabled = true } |
[간단한 예시]




반응형
'[DEV] 기록' 카테고리의 다른 글
git 리포지토리에 활성 변경 내용이 너무 많습니다. 메시지가 뜰 경우 (0) | 2020.04.10 |
---|---|
npm/yarn 명령어를 통해 create-react-app 설치 시 오류가 날 경우 (0) | 2020.04.08 |
Springboot) Intellij IDEA 에서 Lombok이 적용되지 않을 경우 (0) | 2020.03.29 |
공부해야하는 내용 (2) | 2020.02.28 |
KT SW 개발 합격! (8) | 2019.12.24 |