lombok 可帮你在编译时自动生成getter、setter等方法,所以我们无需再编写占据很大篇幅的getter/setter方法,请看下图效果,你就明白了: 地址:http://www.projectlombok.org/download.html