Lombok配置
Lombok安装方式有三部,IDEA安装,POM引用,接口使用。详见 @ (15条消息) idea中怎么使用lombok依赖_idea依赖树只有lombok_南商的博客-CSDN博客
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.28</version> <scope>provided</scope> </dependency>
一般使用
@Data @AllArgsConstructor @NoArgsConstructor
完整列表是:
A plugin that adds first-class support for Project Lombok Features @Getter and @Setter @FieldNameConstants @ToString @EqualsAndHashCode @AllArgsConstructor, @RequiredArgsConstructor and @NoArgsConstructor @Log, @Log4j, @Log4j2, @Slf4j, @XSlf4j, @CommonsLog, @JBossLog, @Flogger, @CustomLog @Data @Builder @SuperBuilder @Singular @Delegate @Value @Accessors @Wither @With @SneakyThrows @StandardException @val @var experimental @var @UtilityClass Lombok config system Code inspections Refactoring actions (lombok and delombok)
标签:AllArgsConstructor,NoArgsConstructor,SSM,var,Mybatis,Lombok,lombok From: https://www.cnblogs.com/zjfun/p/17546074.html