Lombok
安装
在idea插件市场找到lombok插件进行安装:Lombok
新版idea会默认安装
在idea的设置中启用 enable annotation processing
Build, Execution, Deployment > Compuler > Annoation Processors
导入LomBok依赖
1234567<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok --><dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.30</version> <scope>provided</scope></dependency>
构造器相关
@AllArgsConstruc ...