eclipse和sts安装lombok
说明
sts 是 eclipse集成springboot的开发环境
所以 sts 和 eclipse 安装 lombok 步骤基本一样
参考网址:
https://blog.csdn.net/qq_39826207/article/details/119007580?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522167089731416800180630113%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=167089731416800180630113&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduend~default-1-119007580-null-null.142v68control,201v4add_ask,213v2t3_esquery_v2&utm_term=eclipse%E5%AE%89%E8%A3%85lombok&spm=1018.2226.3001.4187
https://blog.csdn.net/u014698745/article/details/99706673?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522167082475516782427411336%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=167082475516782427411336&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduend~default-1-99706673-null-null.142v68control,201v4add_ask,213v2t3_esquery_v2&utm_term=sts%E5%AE%89%E8%A3%85lombok%E6%8F%92%E4%BB%B6&spm=1018.2226.3001.4187
下载 lombo.jar
下载网址:
https://projectlombok.org/download
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-GY2AM9Sb-1671760910552)(D:\my-note\typora-picture\image-20221213101557519.png)]
安装lombok
lombok.jar 复制到 sts 或者 eclipse 安装目录
在安装目录 , 启动 java -jar lombok.jar
重点说明
安装完 lombok 一定要重启
一定要重启!!!
一定要重启!!!
一定要重启!!!
测试
在 maven 中引入 lombok 依赖
查看
加上 @Data 注解 (lombok的注解)
自动生成 set/get/toString 方法