2

【笔记】SpringBoot项目整合Lombok

 1 year ago
source link: https://feiju12138.github.io/2022/10/20/SpringBoot%E9%A1%B9%E7%9B%AE%E6%95%B4%E5%90%88Lombok/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

SpringBoot项目整合Lombok学习笔记

pom.xml

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>

创建实体类

package com.pojo;

import lombok.Data;

@Data
public class User {

private int id;
private String name;

}

哔哩哔哩——黑马程序员


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK