@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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM