개발
[Java] 롬복 소개 및 설치
lewns2
2021. 3. 11. 13:22
1. 롬복(Lombok)
- Java 기반에서 기계적 작업(VO, DTO, Entity 관련)을 보다 쉽게 해주는 자바 라이브러리(거의 필수)
- Getter, Setter, 기본 생성자, toString, hashCode 메소드 작업 관련 Class 코드를 어노테이션(@)으로 자동 생성
- 참고 URL : jnb.ociweb.com/jnb/jnbJan2010.html
SETT January 20 -
Reducing Boilerplate Code with Project Lombok by Michael Kimberlin, Senior Software Engineer Object Computing, Inc. (OCI) Contents Introduction "Boilerplate" is a term used to describe code that is repeated in many parts of an application with little alter
jnb.ociweb.com
2. 설치(라이브러리 / 플러그인)
2.1. 라이브러리 내려 받기(build.gradle 내 의존성 등록)
2.2. 롬복 플러그인 설치
Action 창(Ctrl + Shift + A)에서 plugins 검색 → Marketplace 내 "Lombok" 검색 후 설치
3. 설정
File → Settings → Build, Execution,Deployment → Compiler → Annotation Processors →
Enable annotation processing 체크(V)
728x90
반응형