Lombok
作者:互联网
Lombok
springboot2.4.2
mvn依赖
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.12</version> <scope>provided</scope> </dependency>
pojo例子
package com.xjsun.bookmanager.pojo; import io.swagger.annotations.ApiModel; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class Author { private int id; private String name; }
标签:NoArgsConstructor,private,AllArgsConstructor,import,Lombok,lombok 来源: https://www.cnblogs.com/xjsun/p/14542735.html