Lombok: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
} | } | ||
} | } | ||
</source> | |||
==Maven Dependency== | |||
<source lang="xml"> | |||
<dependency> | |||
<groupId>org.projectlombok</groupId> | |||
<artifactId>lombok</artifactId> | |||
<version>1.18.10</version> | |||
<scope>provided</scope> | |||
</dependency> | |||
</source> | </source> | ||
Revision as of 08:33, 23 September 2021
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MyPojo {
@Getter(AccessLevel.NONE)
private Boolean xxx;
public Boolean isXxx() {
return xxx;
}
}
Maven Dependency
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.10</version>
<scope>provided</scope>
</dependency>