블로그 이미지
플로거
Android/J2EE/Web/통신/IBS/CRM/CS ..

calendar

          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

Notice

'2016/04'에 해당되는 글 1

  1. 2016.04.01 Project Lombok
2016.04.01 11:16 Programming/SPRING + X


https://projectlombok.org/


http://jnb.ociweb.com/jnb/jnbJan2010.html



Installation


java -jar lombok.jar

Screenshot of the Lombok Installer





<dependencies>
    <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>0.9.2</version>
    </dependency>
</dependencies>
<repositories>
    <repository>
        <id>projectlombok.org</id>
        <url>http://projectlombok.org/mavenrepo</url>
    </repository>
</repositories>


Maven > Update Project..




@Data

The @Data annotation is likely the most frequently used annotation in the Project Lombok toolset. 
It combines the functionality of @ToString, @EqualsAndHashCode, @Getter and@Setter
Essentially, using @Data on a class is the same as annotating the class with a default @ToString and @EqualsAndHashCode as well as annotating each field with both @Getterand @Setter. Annotation a class with @Data also triggers Lombok's constructor generation. This adds a public constructor that takes any @NonNull or final fields as parameters. This provides everything needed for a Plain Old Java Object (POJO).



저작자 표시 비영리 변경 금지
신고

'Programming > SPRING + X' 카테고리의 다른 글

Project Lombok  (0) 2016.04.01
posted by 훈즈 플로거
prev 1 next

티스토리 툴바