SpingBoot项目使用@Data注解
1.在idea中配置lombok插件
在idea中依次点击File->settings ->Plugins
2.在pom.xml中导入lombok坐标
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency>
在idea中依次点击File->settings ->Plugins
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency>