idea插件 lombok
程序员文章站
2022-06-13 16:34:08
...
1.导入maven 依赖
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.4</version>
<scope>provided</scope>
</dependency>
2. 下载lombok 插件
3.demo
import lombok.Data;
@Data
public class User {
private String userId;
private String username;
private String password;
private String phoneNum;
}