build.gradle添加依赖
/*lombok https://projectlombok.org/features/all*/
compileOnly 'org.projectlombok:lombok:1.18.16'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
testCompileOnly 'org.projectlombok:lombok:1.18.16'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.16'
idea 安装 plugin

使用
https://projectlombok.org/features/all
https://projectlombok.org/features/experimental/all
网友评论