Lombok

一、install plugin

 

 

restart

二、usage

1、dependency

<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.18.12</version>
    <scope>provided</scope>
</dependency>

2、use

1 @AllArgsConstructor
2 @NoArgsConstructor
3 @Getter
4 @Setter
5 @ToString(of = {"organizationId","organizationName","description"},exclude = {"parent","children","users"})
6 @EqualsAndHashCode

 

 

posted @ 2020-11-11 06:59  遥~  阅读(121)  评论(0编辑  收藏  举报