DevEnjoy

One Step Closer

Lombok

IntelliJ Lombok cannot find symbol 컴파일 에러

2015년 9월 1일 by YongPwi 1 Comment

작업 중 코드상에서는 에러가 없는데,,,

컴파일 시에 Lombak 적용이 되지 않아서 꽤 삽질했는데,,,

역시나 구글링을 해보니,,,

내가 멍청해서 놓쳤던 부분이 있었다,,,

다음 삽질을 방지하기 위하여 정리!!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
@Data
@Entity
public class User {
    @Id
    @Column(nullable = false)
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Integer userId;

    @Column(length = 80, nullable = false, unique = true)
    private String userEmail;

    @Column(length = 255, nullable = false)
    private String userPass;
}

상위 처럼 되어 있는데도 컴파일 시에 에러가 난다,,,

스크린샷 2015-09-01 오전 11.08.42

IntelliJ에 “Enable annotation processing”을 활성화 해주면 해결된다.

경로 (IntelliJ Preferences => Build, Excution, Deployment => Compiler => Annotation Processors)

스크린샷 2015-09-01 오전 11.10.51

Posted in: Java, Programing Tagged: IntelliJ, JAVA, Lombok

Calendar

6월 2025
일 월 화 수 목 금 토
« 4월    
1234567
891011121314
15161718192021
22232425262728
2930  

Recent Posts

  • ubuntu bastion 설정
  • Spring Boot properties 암호화
  • Git Repository Bitbucket과 Issue Tracker Redmine 연동 설정
  • Spring Security 동일 session 제어
  • Spring @Mock, @Mockbean, @InjectMock

Recent Comments

  • pzotov (Ubuntu 14.04에서 Sonarqube 6.7.1 service 등록)
  • cours de theatre paris (AWS ELB와 Auto Scaling 연동, nginx)
  • bayern munich (IntelliJ EAP Font rendering)
  • camiseta del chelsea (OS X에서 APP 아이콘 변경)
  • cheap football shirts replica (jQuery Ajax에서 json Array 직렬화)

Copyright © [the-year] [site-link].

Powered by [wp-link] and [theme-link].