[IntelliJ] lombok 인식 안 됨 해결 방법

2023. 8. 18. 08:23·IDE/IntelliJ

문제 상황

롬복을 사용하여 어노테이션(@Getter)으로 Getter를 만들고자 했는데,

막상 Getter가 만들어지지 않았습니다.

 

롬복을 사용한 다른 것에서도 똑같은 일이 발생하여 롭목

해결 방법

세 가지 해결 방법을 알려드리겠습니다.

build.gradle

dependencies {
	...
    compileOnly 'org.projectlombok:lombok'
    annotationProcessor 'org.projectlombok:lombok'
    testAnnotationProcessor 'org.projectlombok:lombok'
    ...
}

build.gradle 파일에 위 코드를 추가해주세요

 

플러그인 설치

Plugins에서 Lombok이 설치되었는지 확인해주세요

설정 변경

File - Setting -  Build, Execution, Deployment > Compiler > Annotation Processors 에서

Enable annotation processing 에 체크 해주세요

 

 


저는 마지막 방법으로 해결했습니다!

 

'IDE > IntelliJ' 카테고리의 다른 글

[IntelliJ][Spring] UnsatisfiedDependencyException 해결하기  (0) 2024.02.02
[JetbrainIDE] ES Lint Editor config 설정 비활성화 방법  (1) 2024.01.03
[IntelliJ][Gradle] 빌드할 때 warning mode all 추가하기, You can use '--warning-mode all' ...  (0) 2023.08.19
[IntelliJ] 인텔리제이에서 MySQL 연동하는 방법  (0) 2023.08.17
'IDE/IntelliJ' 카테고리의 다른 글
  • [IntelliJ][Spring] UnsatisfiedDependencyException 해결하기
  • [JetbrainIDE] ES Lint Editor config 설정 비활성화 방법
  • [IntelliJ][Gradle] 빌드할 때 warning mode all 추가하기, You can use '--warning-mode all' ...
  • [IntelliJ] 인텔리제이에서 MySQL 연동하는 방법
hurlud
hurlud
나와 같은 궁금증을 가진 사람들을 위해 오늘도! 🐥
  • hurlud
    주독야독
    hurlud
  • 전체
    오늘
    어제
  • 최근 글

    • ALL (106)
      • CS (13)
      • Linux (2)
      • Deploy (7)
        • AWS (6)
        • Docker (1)
      • IDE (13)
        • IntelliJ (5)
        • Android Studio (8)
      • DB (10)
        • MySQL (6)
        • MongoDB (4)
      • Programming Language (20)
        • JavaScript (10)
        • Java (8)
        • Python (2)
      • Framework (32)
        • Node.js (6)
        • SpringBoot (17)
        • React (6)
        • NestJS (2)
      • Git | Github (4)
      • ETC (5)
      • Akka (0)
  • 링크

    • 깃허브
  • hELLO· Designed By정상우.v4.10.0
hurlud
[IntelliJ] lombok 인식 안 됨 해결 방법
상단으로

티스토리툴바