项目中经常使用bean,entity等类
1.安装lombok插件:
具体流程如图:
2.添加lombok的maven的pom.xml依赖:
3. 示例代码:
import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter;
@Setter @Getter @NoArgsConstructor public class TUserDto {
private String userName;
private String password;
private String phone;
}