lombok是一个能自动生成get/set 和toString()等方法的插件,在idea 中使用如下: File——>settings——>Plugins——>输入lombok ,然后选择install ,然后重启idea即可,具体如下图: 相关文章: