lombok

官方解释:

Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java.
Never write another getter or equals method again, with one annotation your class has a fully featured builder, Automate your logging variables, and much more.

只需一个注解@Data  不用再写get set 方法了   alt+7 效果如下

 

posted @ 2017-05-03 21:41  酸奶加绿茶  阅读(171)  评论(0编辑  收藏  举报