@Accessors

@Accessors

作用:存取器,用于配置getter和setter方法的生成结果

三个属性:fluent、chain、prefix

1、fluent:流畅的,设置为true,getter和setter方法的方法名都是基础属性名,且setter方法返回当前对象

            

2、chain:链式的,设置为true,则setter方法返回当前对象

            

3、prefix:前缀,用于生成getter和setter方法的字段名会忽视指定前缀(遵守驼峰命名)

           

 

 转自:  https://blog.csdn.net/weixin_38229356/article/details/82937420

参考文档: https://projectlombok.org/features/experimental/Accessors

 

posted @ 2019-05-22 11:00  琥珀呀  阅读(1606)  评论(0编辑  收藏  举报