[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"site-config":3,"primary-menu":20,"tags-cloud":109,"tagposts-lombok-1":293},{"config":4,"socialLinks":19},{"title":5,"subtitle":6,"logoUrl":7,"faviconUrl":8,"footerText":9,"beianIcp":10,"beianPublicSecurity":9,"seoDescription":11,"seoKeywords":12,"homepageTitle":13,"homepageSubtitle":14,"analyticsHeadCode":15,"planetQrcodeUrl":16,"planetIntroHtml":9,"planetCtaText":17,"updatedAt":18},"编码世界","用编码改变世界","https:\u002F\u002Fcdn.mashangan.com\u002Fupload\u002F2026\u002F09\u002F2f277021172f43f6bb34e1c115760b7f.png","https:\u002F\u002Fcdn.mashangan.com\u002Fupload\u002F2026\u002F09\u002Fdcbad022e68c4a729a5dc4997a9bba8a.png","","苏ICP备2026073884号","编码世界（mashangan.com）是面向 Java 后端与 Go 语言的系统化编程教程站：提供\nMyBatis Plus、Lombok、Java 8、IDEA、Docker 等原创图文教程，以及 JVM、并发、\nSpring、MySQL、Redis、消息队列、计算机网络等大厂面试八股题库，另有可落地的\n项目实战系列，帮你从入门到精通。","编码世界,Java教程,Go语言教程,Docker教程,MyBatis Plus教程,Lombok教程, Java 8新特性,IDEA教程,Java面试题,八股文,JVM面试题,Java并发面试题, MySQL面试题,Redis面试题,Spring面试题,消息队列面试题,高并发,分库分表, Netty面试题,计算机网络面试题,AI Agent,RAG,程序员学习路线","Java全栈系统化编程教程","覆盖 MyBatis Plus、Lombok、Java 8、IDEA、Go、Docker 等原创图文教程，配套大厂面试八股题库，从入门到精通，持续更新","\u003Cscript>\nvar _hmt = _hmt || [];\n(function() {\n  var hm = document.createElement(\"script\");\n  hm.src = \"https:\u002F\u002Fhm.baidu.com\u002Fhm.js?f00af7e56d956c02e11efed4131379b0\";\n  var s = document.getElementsByTagName(\"script\")[0]; \n  s.parentNode.insertBefore(hm, s);\n})();\n\u003C\u002Fscript>\n","https:\u002F\u002Fcdn.mashangan.com\u002Fupload\u002F2026\u002F09\u002Fc1a8f5de46584d3eb0bc762c180a5db9.png","扫码加入知识星球","2026-10-05T13:09:51.904487Z",[],{"metadata":21,"spec":24,"menuItems":35},{"name":22,"creationTimestamp":23},"primary","2026-09-12T06:13:55.024154Z",{"displayName":25,"menuItems":26},"主菜单",[27,28,29,30,31,32,33,34],"88c3f10b-321c-4092-86a8-70db00251b74","menu-item-izrtmxer","c4c814d1-0c2c-456b-8c96-4864965fee94","menu-item-tags","menu-item-column","menu-item-tools","menu-item-zsxq","menu-item-ocrxlczu",[36,45,55,64,73,82,91,100],{"displayName":37,"metadata":38,"spec":40,"status":43,"children":44},"首页",{"name":27,"creationTimestamp":39},"2026-09-12T06:13:54.422830Z",{"displayName":37,"href":41,"priority":42,"menuName":22},"\u002F",0,{"displayName":37,"href":41},[],{"displayName":46,"metadata":47,"spec":49,"status":53,"children":54},"Java面试八股",{"name":28,"creationTimestamp":48},"2026-09-13T09:42:02.854891Z",{"displayName":46,"href":50,"target":51,"priority":52,"menuName":22},"\u002Fjava-interview","_self",1,{"displayName":46,"href":50},[],{"displayName":56,"metadata":57,"spec":59,"status":62,"children":63},"文章",{"name":29,"creationTimestamp":58},"2026-09-12T06:13:54.457307Z",{"displayName":56,"href":60,"priority":61,"menuName":22},"\u002Farchives",2,{"displayName":56,"href":60},[],{"displayName":65,"metadata":66,"spec":68,"status":71,"children":72},"标签",{"name":30,"creationTimestamp":67},"2026-10-07T00:42:42.754151Z",{"displayName":65,"href":69,"priority":70,"menuName":22},"\u002Ftags",3,{"displayName":65,"href":69},[],{"displayName":74,"metadata":75,"spec":77,"status":80,"children":81},"项目实战",{"name":31,"creationTimestamp":76},"2026-09-14T00:35:08.138170Z",{"displayName":74,"href":78,"target":51,"priority":79,"menuName":22},"\u002Fcolumn",4,{"displayName":74,"href":78},[],{"displayName":83,"metadata":84,"spec":86,"status":89,"children":90},"在线工具",{"name":32,"creationTimestamp":85},"2026-09-14T00:35:08.171474Z",{"displayName":83,"href":87,"target":51,"priority":88,"menuName":22},"\u002Ftools",5,{"displayName":83,"href":87},[],{"displayName":92,"metadata":93,"spec":95,"status":98,"children":99},"知识星球",{"name":33,"creationTimestamp":94},"2026-09-14T00:35:08.199145Z",{"displayName":92,"href":96,"target":51,"priority":97,"menuName":22},"\u002Fzsxq",6,{"displayName":92,"href":96},[],{"displayName":101,"metadata":102,"spec":104,"status":107,"children":108},"特价云服务",{"name":34,"creationTimestamp":103},"2026-09-25T15:30:59.201614Z",{"displayName":101,"href":105,"target":51,"priority":106,"menuName":22},"\u002Fserver",7,{"displayName":101,"href":105},[],[110,117,124,131,138,145,152,159,166,172,178,184,191,197,203,209,215,221,227,233,239,245,251,257,263,269,275,281,287],{"metadata":111,"spec":113,"postCount":116},{"name":112},"tag-04980744",{"displayName":114,"slug":115},"面试题","interview",118,{"metadata":118,"spec":120,"postCount":123},{"name":119},"tag-93f725a0",{"displayName":121,"slug":122},"Java","java",68,{"metadata":125,"spec":127,"postCount":130},{"name":126},"tag-05b6053c",{"displayName":128,"slug":129},"Docker","docker",43,{"metadata":132,"spec":134,"postCount":137},{"name":133},"tag-1cba77c3",{"displayName":135,"slug":136},"IDEA","idea",32,{"metadata":139,"spec":141,"postCount":144},{"name":140},"tag-116a0109",{"displayName":142,"slug":143},"数字孪生","digital-twin",19,{"metadata":146,"spec":148,"postCount":151},{"name":147},"tag-a2fb95ac",{"displayName":149,"slug":150},"MyBatis Plus","mybatis-plus",18,{"metadata":153,"spec":155,"postCount":158},{"name":154},"tag-cc6220f9",{"displayName":156,"slug":157},"Lombok","lombok",15,{"metadata":160,"spec":162,"postCount":165},{"name":161},"tag-2a2d595e",{"displayName":163,"slug":164},"Spring","spring",10,{"metadata":167,"spec":169,"postCount":165},{"name":168},"tag-1d8a4975",{"displayName":170,"slug":171},"消息队列","mq",{"metadata":173,"spec":175,"postCount":165},{"name":174},"tag-17245299",{"displayName":176,"slug":177},"并发","concurrency",{"metadata":179,"spec":181,"postCount":165},{"name":180},"tag-4921c0e2",{"displayName":182,"slug":183},"AI","ai",{"metadata":185,"spec":187,"postCount":190},{"name":186},"tag-53bb7900",{"displayName":188,"slug":189},"卫星仿真","satellite",9,{"metadata":192,"spec":194,"postCount":88},{"name":193},"tag-62377bcf",{"displayName":195,"slug":196},"Spring Cloud","spring-cloud",{"metadata":198,"spec":200,"postCount":88},{"name":199},"tag-81c3b080",{"displayName":201,"slug":202},"MySQL","mysql",{"metadata":204,"spec":206,"postCount":88},{"name":205},"tag-86a1b907",{"displayName":207,"slug":208},"Redis","redis",{"metadata":210,"spec":212,"postCount":88},{"name":211},"tag-18897dcf",{"displayName":213,"slug":214},"Elasticsearch","elasticsearch",{"metadata":216,"spec":218,"postCount":88},{"name":217},"tag-6ce80d8e",{"displayName":219,"slug":220},"JVM","jvm",{"metadata":222,"spec":224,"postCount":88},{"name":223},"tag-aa4e1b8c",{"displayName":225,"slug":226},"Dubbo","dubbo",{"metadata":228,"spec":230,"postCount":88},{"name":229},"tag-9e30c249",{"displayName":231,"slug":232},"Netty","netty",{"metadata":234,"spec":236,"postCount":88},{"name":235},"tag-2199ace5",{"displayName":237,"slug":238},"ZooKeeper","zookeeper",{"metadata":240,"spec":242,"postCount":88},{"name":241},"tag-7c298a76",{"displayName":243,"slug":244},"设计模式","design-pattern",{"metadata":246,"spec":248,"postCount":88},{"name":247},"tag-6cf6cea9",{"displayName":249,"slug":250},"高可用","high-availability",{"metadata":252,"spec":254,"postCount":88},{"name":253},"tag-918786ab",{"displayName":255,"slug":256},"分库分表","sharding",{"metadata":258,"spec":260,"postCount":88},{"name":259},"tag-91e02cd2",{"displayName":261,"slug":262},"计算机网络","network",{"metadata":264,"spec":266,"postCount":88},{"name":265},"tag-dd302f94",{"displayName":267,"slug":268},"操作系统","os",{"metadata":270,"spec":272,"postCount":88},{"name":271},"tag-1b359d87",{"displayName":273,"slug":274},"Tomcat","tomcat",{"metadata":276,"spec":278,"postCount":79},{"name":277},"tag-f0d71b77",{"displayName":279,"slug":280},"MyBatis","mybatis",{"metadata":282,"spec":284,"postCount":52},{"name":283},"tag-a118a308",{"displayName":285,"slug":286},"时序数据库","tsdb",{"metadata":288,"spec":290,"postCount":42},{"name":289},"tag-34d1f91f",{"displayName":291,"slug":292},"Go","go",{"page":52,"size":294,"total":158,"items":295,"first":311,"last":311,"hasNext":306,"hasPrevious":306,"totalPages":52},20,[296,335,364,392,419,446,473,500,527,555,583,611,638,667,696],{"metadata":297,"spec":300,"status":312,"categories":316,"tags":328},{"name":298,"creationTimestamp":299},"post-what-is-lombok-eacf45e9","2026-09-12T08:29:54.692339Z",{"title":301,"slug":302,"cover":303,"excerpt":304,"publishTime":307,"categories":308,"tags":309,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"Lombok 主要作用是什么？它是干嘛的？","what-is-lombok","https:\u002F\u002Fcdn.mashangan.com\u002Fupload\u002F2026\u002F09\u002F922b2acb7905478591abdef83076dd88.png",{"raw":305,"autoGenerate":306},"Lombok 是一个超酷的 Java 库，它能让你的 Java 代码变得简洁、高效，还能帮你省去很多繁琐的工作，堪称偷懒神器，企业级开发必备。",false,"2026-09-12T08:29:54.750221Z",[157],[154,119],"PUBLIC",true,{"permalink":313,"excerpt":305,"lastModifyTime":314,"phase":315},"\u002Farchives\u002Fwhat-is-lombok","2026-09-30T03:52:57.675213Z","PUBLISHED",[317],{"metadata":318,"spec":322,"status":326,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":320},"2026-09-12T08:22:44.622640Z",{"tutorial.halo.run\u002Fstatus":321},"updating",{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},"Lombok 使用教程","https:\u002F\u002Fcdn.mashangan.com\u002Fupload\u002Ftutorial-cover-lombok.png","Lombok 使用教程：常用注解与底层原理、IDEA 配置、序列化坑与团队使用规范。",{"permalink":327,"postCount":158,"visiblePostCount":158},"\u002Fcategories\u002Flombok",[329,332],{"metadata":330,"spec":331},{"name":154},{"displayName":156,"slug":157},{"metadata":333,"spec":334},{"name":119},{"displayName":121,"slug":122},{"metadata":336,"spec":339,"status":348,"categories":351,"tags":357},{"name":337,"creationTimestamp":338},"post-sneaky-throws-c1701b9c","2026-09-12T08:29:53.976459Z",{"title":340,"slug":341,"cover":342,"excerpt":343,"publishTime":345,"categories":346,"tags":347,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"Lombok @SneakyThrows 注解：简化异常操作","sneaky-throws","https:\u002F\u002Fcdn.mashangan.com\u002Fupload\u002F2026\u002F09\u002Fce216b9ce35f4b398296cc2db4400aab.png",{"raw":344,"autoGenerate":306},"@SneakyThrows 用来偷偷地抛出检查型异常（checked exception），而无需显式地在方法签名中声明 throws 或者使用 try-catch。对于需要捕获或声明的异常，@SneakyThrows 注解可以让方法绕过这一步。","2026-09-12T08:29:54.036824Z",[157],[119,154],{"permalink":349,"excerpt":344,"lastModifyTime":350,"phase":315},"\u002Farchives\u002Fsneaky-throws","2026-09-30T04:24:17.142234Z",[352],{"metadata":353,"spec":355,"status":356,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":354},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},{"permalink":327,"postCount":158,"visiblePostCount":158},[358,361],{"metadata":359,"spec":360},{"name":119},{"displayName":121,"slug":122},{"metadata":362,"spec":363},{"name":154},{"displayName":156,"slug":157},{"metadata":365,"spec":368,"status":376,"categories":379,"tags":385},{"name":366,"creationTimestamp":367},"post-lombok-value-e86c89a7","2026-09-12T08:29:53.354870Z",{"title":369,"slug":370,"cover":9,"excerpt":371,"publishTime":373,"categories":374,"tags":375,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"Lombok @Value 注解：创建不可变类","lombok-value",{"raw":372,"autoGenerate":306},"Lombok 的 @Value 注解用于简化不可变对象的创建。不可变对象（Immutable Object）在创建后，其内部状态无法改变，具备线程安全的特性，适合并发环境中共享数据的场景。","2026-09-12T08:29:53.417301Z",[157],[154,119],{"permalink":377,"excerpt":372,"lastModifyTime":378,"phase":315},"\u002Farchives\u002Flombok-value","2026-09-30T21:46:10.902063Z",[380],{"metadata":381,"spec":383,"status":384,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":382},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},{"permalink":327,"postCount":158,"visiblePostCount":158},[386,389],{"metadata":387,"spec":388},{"name":154},{"displayName":156,"slug":157},{"metadata":390,"spec":391},{"name":119},{"displayName":121,"slug":122},{"metadata":393,"spec":396,"status":404,"categories":406,"tags":412},{"name":394,"creationTimestamp":395},"post-lombok-to-string-c4811b47","2026-09-12T08:29:52.773514Z",{"title":397,"slug":398,"cover":9,"excerpt":399,"publishTime":401,"categories":402,"tags":403,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"Lombok @ToString 注解：快速打印对象内容","lombok-to-string",{"raw":400,"autoGenerate":306},"Lombok 的 @ToString 注解用于自动生成 toString() 方法，帮助快速打印对象的内容，以便调试或日志记录。默认情况下，`@ToString` 会将类中所有非静态字段包含在 toString() 方法中，并按字段声明的顺序显示字段值。","2026-09-12T08:29:52.835200Z",[157],[154,119],{"permalink":405,"excerpt":400,"lastModifyTime":378,"phase":315},"\u002Farchives\u002Flombok-to-string",[407],{"metadata":408,"spec":410,"status":411,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":409},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},{"permalink":327,"postCount":158,"visiblePostCount":158},[413,416],{"metadata":414,"spec":415},{"name":154},{"displayName":156,"slug":157},{"metadata":417,"spec":418},{"name":119},{"displayName":121,"slug":122},{"metadata":420,"spec":423,"status":431,"categories":433,"tags":439},{"name":421,"creationTimestamp":422},"post-lombok-principle-d40a8209","2026-09-12T08:29:52.089871Z",{"title":424,"slug":425,"cover":9,"excerpt":426,"publishTime":428,"categories":429,"tags":430,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"Lombok 实现原理是什么？","lombok-principle",{"raw":427,"autoGenerate":306},"Lombok 的核心是利用 Java 注解处理器 和 AST（抽象语法树）修改 技术，在编译阶段动态插入代码。","2026-09-12T08:29:52.164133Z",[157],[119,154],{"permalink":432,"excerpt":427,"lastModifyTime":378,"phase":315},"\u002Farchives\u002Flombok-principle",[434],{"metadata":435,"spec":437,"status":438,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":436},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},{"permalink":327,"postCount":158,"visiblePostCount":158},[440,443],{"metadata":441,"spec":442},{"name":119},{"displayName":121,"slug":122},{"metadata":444,"spec":445},{"name":154},{"displayName":156,"slug":157},{"metadata":447,"spec":450,"status":458,"categories":460,"tags":466},{"name":448,"creationTimestamp":449},"post-lombok-log-7cf20461","2026-09-12T08:29:51.501796Z",{"title":451,"slug":452,"cover":9,"excerpt":453,"publishTime":455,"categories":456,"tags":457,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"Lombok @Log 系列注解: 简化日志记录","lombok-log",{"raw":454,"autoGenerate":306},"Lombok 提供了一系列 @Log 注解，用于自动生成日志记录器实例，简化 Java 类中日志的定义和使用。这些注解支持常见的日志框架，比如 java.util.logging、Log4j、Log4j2、Slf4j 等。","2026-09-12T08:29:51.557453Z",[157],[119,154],{"permalink":459,"excerpt":454,"lastModifyTime":378,"phase":315},"\u002Farchives\u002Flombok-log",[461],{"metadata":462,"spec":464,"status":465,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":463},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},{"permalink":327,"postCount":158,"visiblePostCount":158},[467,470],{"metadata":468,"spec":469},{"name":119},{"displayName":121,"slug":122},{"metadata":471,"spec":472},{"name":154},{"displayName":156,"slug":157},{"metadata":474,"spec":477,"status":485,"categories":487,"tags":493},{"name":475,"creationTimestamp":476},"post-lombok-getter-setter-c542a7fe","2026-09-12T08:29:50.887267Z",{"title":478,"slug":479,"cover":9,"excerpt":480,"publishTime":482,"categories":483,"tags":484,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"Lombok @Getter @Setter 注解: 简化属性操作","lombok-getter-setter",{"raw":481,"autoGenerate":306},"Lombok 提供的 @Getter 和 @Setter 注解是最常用的注解之一，主要用于自动生成类的 getter 和 setter 方法。这些方法可以大大减少手动编写代码的工作量，让代码更简洁、更易读。","2026-09-12T08:29:50.940298Z",[157],[154,119],{"permalink":486,"excerpt":481,"lastModifyTime":378,"phase":315},"\u002Farchives\u002Flombok-getter-setter",[488],{"metadata":489,"spec":491,"status":492,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":490},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},{"permalink":327,"postCount":158,"visiblePostCount":158},[494,497],{"metadata":495,"spec":496},{"name":154},{"displayName":156,"slug":157},{"metadata":498,"spec":499},{"name":119},{"displayName":121,"slug":122},{"metadata":501,"spec":504,"status":512,"categories":514,"tags":520},{"name":502,"creationTimestamp":503},"post-lombok-equals-and-hash-code-a3d03899","2026-09-12T08:29:50.011368Z",{"title":505,"slug":506,"cover":9,"excerpt":507,"publishTime":509,"categories":510,"tags":511,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"Lombok @EqualsAndHashCode 注解：简化对象比较","lombok-equals-and-hash-code",{"raw":508,"autoGenerate":306},"Lombok 的 @EqualsAndHashCode 注解用于自动生成 equals() 和 hashCode() 方法，这两个方法对于对象比较和在集合中的使用非常重要。equals() 方法决定了对象的比较方式，而 hashCode() 则影响对象在散列集合（如 HashSet 和 HashMap）中的表现。","2026-09-12T08:29:50.233386Z",[157],[154,119],{"permalink":513,"excerpt":508,"lastModifyTime":378,"phase":315},"\u002Farchives\u002Flombok-equals-and-hash-code",[515],{"metadata":516,"spec":518,"status":519,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":517},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},{"permalink":327,"postCount":158,"visiblePostCount":158},[521,524],{"metadata":522,"spec":523},{"name":154},{"displayName":156,"slug":157},{"metadata":525,"spec":526},{"name":119},{"displayName":121,"slug":122},{"metadata":528,"spec":531,"status":539,"categories":542,"tags":548},{"name":529,"creationTimestamp":530},"post-lombok-dependency-install-afb949d3","2026-09-12T08:29:49.422864Z",{"title":532,"slug":533,"excerpt":534,"publishTime":536,"categories":537,"tags":538,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"Lombok 依赖安装","lombok-dependency-install",{"raw":535,"autoGenerate":306},"想要在项目中使用 Lombok, 首先, 你需要在项目中添加 Lombok 依赖。本小节中，我将分别演示如何在项目构建工具（ Maven 或 Gradle ）中添加 Lombok 依赖。","2026-09-12T08:29:49.475556Z",[157],[154,119],{"permalink":540,"excerpt":535,"lastModifyTime":541,"phase":315},"\u002Farchives\u002Flombok-dependency-install","2026-09-30T03:33:23.648115Z",[543],{"metadata":544,"spec":546,"status":547,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":545},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},{"permalink":327,"postCount":158,"visiblePostCount":158},[549,552],{"metadata":550,"spec":551},{"name":154},{"displayName":156,"slug":157},{"metadata":553,"spec":554},{"name":119},{"displayName":121,"slug":122},{"metadata":556,"spec":559,"status":568,"categories":570,"tags":576},{"name":557,"creationTimestamp":558},"post-lombok-data-3de3dc8b","2026-09-12T08:29:48.783849Z",{"title":560,"slug":561,"cover":562,"excerpt":563,"publishTime":565,"categories":566,"tags":567,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"Lombok @Data 注解：快速生成类常用方法","lombok-data","https:\u002F\u002Fcdn.mashangan.com\u002Fupload\u002F167575545480437-ebty.jpg",{"raw":564,"autoGenerate":306},"在 Lombok 中，@Data 是个万金油注解。一个 @Data 注解相当于同时使用了 @Getter 、@Setter 、@RequiredArgsConstructor、@ToString、@EqualsAndHashCode...","2026-09-12T08:29:48.870613Z",[157],[119,154],{"permalink":569,"excerpt":564,"lastModifyTime":378,"phase":315},"\u002Farchives\u002Flombok-data",[571],{"metadata":572,"spec":574,"status":575,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":573},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},{"permalink":327,"postCount":158,"visiblePostCount":158},[577,580],{"metadata":578,"spec":579},{"name":119},{"displayName":121,"slug":122},{"metadata":581,"spec":582},{"name":154},{"displayName":156,"slug":157},{"metadata":584,"spec":587,"status":595,"categories":598,"tags":604},{"name":585,"creationTimestamp":586},"post-lombok-builder-0339d5b6","2026-09-12T08:29:48.038614Z",{"title":588,"slug":589,"excerpt":590,"publishTime":592,"categories":593,"tags":594,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"Lombok @Builder 注解：流畅的构建者模式","lombok-builder",{"raw":591,"autoGenerate":306},"Lombok 的 @Builder 注解用于生成建造者（Builder）模式的代码。Builder 模式提供了一种灵活、易读的方式来创建复杂对象，尤其适合需要设置多个可选参数、支持链式调用的场景。@Builder 注解自动生成了静态内部类 Builder 及其相关方法，使代码更加简洁、清晰。","2026-09-12T08:29:48.096644Z",[157],[154,119],{"permalink":596,"excerpt":591,"lastModifyTime":597,"phase":315},"\u002Farchives\u002Flombok-builder","2026-09-30T04:27:48.959915Z",[599],{"metadata":600,"spec":602,"status":603,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":601},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},{"permalink":327,"postCount":158,"visiblePostCount":158},[605,608],{"metadata":606,"spec":607},{"name":154},{"displayName":156,"slug":157},{"metadata":609,"spec":610},{"name":119},{"displayName":121,"slug":122},{"metadata":612,"spec":615,"status":623,"categories":625,"tags":631},{"name":613,"creationTimestamp":614},"post-lombok-args-constructor-49c212ca","2026-09-12T08:29:47.407172Z",{"title":616,"slug":617,"cover":9,"excerpt":618,"publishTime":620,"categories":621,"tags":622,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"Lombok @Constructor 系列注解：轻松生成类的构造方法","lombok-args-constructor",{"raw":619,"autoGenerate":306},"Lombok 提供了一系列构造器注解，帮助开发者轻松生成构造方法。主要包括 @NoArgsConstructor、@AllArgsConstructor 和 @RequiredArgsConstructor，可以根据需要自动生成无参、全参或指定参数的构造器。","2026-09-12T08:29:47.462011Z",[157],[119,154],{"permalink":624,"excerpt":619,"lastModifyTime":378,"phase":315},"\u002Farchives\u002Flombok-args-constructor",[626],{"metadata":627,"spec":629,"status":630,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":628},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},{"permalink":327,"postCount":158,"visiblePostCount":158},[632,635],{"metadata":633,"spec":634},{"name":119},{"displayName":121,"slug":122},{"metadata":636,"spec":637},{"name":154},{"displayName":156,"slug":157},{"metadata":639,"spec":642,"status":651,"categories":654,"tags":660},{"name":640,"creationTimestamp":641},"post-idea-install-lombok-plugin-2e5a8631","2026-09-12T08:29:46.815062Z",{"title":643,"slug":644,"cover":645,"excerpt":646,"publishTime":648,"categories":649,"tags":650,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"IDEA 安装 Lombok 插件（图文教程）","idea-install-lombok-plugin","https:\u002F\u002Fcdn.mashangan.com\u002Fupload\u002F169059578851069-SiKa.jpg",{"raw":647,"autoGenerate":306},"本小节中，我将通图文的方式，手把手演示如何在 IDEA 中安装 Lombok 插件。","2026-09-12T08:29:46.862690Z",[157],[119,154],{"permalink":652,"excerpt":647,"lastModifyTime":653,"phase":315},"\u002Farchives\u002Fidea-install-lombok-plugin","2026-09-13T05:25:39.275975Z",[655],{"metadata":656,"spec":658,"status":659,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":657},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},{"permalink":327,"postCount":158,"visiblePostCount":158},[661,664],{"metadata":662,"spec":663},{"name":119},{"displayName":121,"slug":122},{"metadata":665,"spec":666},{"name":154},{"displayName":156,"slug":157},{"metadata":668,"spec":671,"status":680,"categories":683,"tags":689},{"name":669,"creationTimestamp":670},"post-eclipse-install-lombok-plugin-27c19d60","2026-09-12T08:29:46.234176Z",{"title":672,"slug":673,"cover":674,"excerpt":675,"publishTime":677,"categories":678,"tags":679,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"Eclipse 安装 Lombok 插件（图文教程）","eclipse-install-lombok-plugin","https:\u002F\u002Fcdn.mashangan.com\u002Fupload\u002F169060085073147-QlhP.jpg",{"raw":676,"autoGenerate":306},"本小节中，我们将通过图文的方式，手把手教你如何在 Eclipse 中安装 Lombok 插件。","2026-09-12T08:29:46.288767Z",[157],[119,154],{"permalink":681,"excerpt":676,"lastModifyTime":682,"phase":315},"\u002Farchives\u002Feclipse-install-lombok-plugin","2026-09-30T04:27:10.352334Z",[684],{"metadata":685,"spec":687,"status":688,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":686},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},{"permalink":327,"postCount":158,"visiblePostCount":158},[690,693],{"metadata":691,"spec":692},{"name":119},{"displayName":121,"slug":122},{"metadata":694,"spec":695},{"name":154},{"displayName":156,"slug":157},{"metadata":697,"spec":700,"status":708,"categories":710,"tags":716},{"name":698,"creationTimestamp":699},"post-avoid-lombok-pitfalls-0979c95e","2026-09-12T08:29:45.645846Z",{"title":701,"slug":702,"cover":9,"excerpt":703,"publishTime":705,"categories":706,"tags":707,"priority":42,"pinned":306,"deleted":306,"visible":310,"allowComment":311},"如何避免 Lombok 的常见陷阱？","avoid-lombok-pitfalls",{"raw":704,"autoGenerate":306},"尽管 Lombok 是一个强大的工具，可以帮助我们简化代码，提高开发效率，但是如果不恰当地使用，也可能会引入一些问题。本文将为你详述如何避免 Lombok 的常见陷阱。","2026-09-12T08:29:45.700024Z",[157],[154,119],{"permalink":709,"excerpt":704,"lastModifyTime":378,"phase":315},"\u002Farchives\u002Favoid-lombok-pitfalls",[711],{"metadata":712,"spec":714,"status":715,"postCount":158},{"name":157,"creationTimestamp":319,"annotations":713},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":157,"cover":324,"description":325,"priority":88,"hideFromList":306,"preventParentPostCascadeQuery":306},{"permalink":327,"postCount":158,"visiblePostCount":158},[717,720],{"metadata":718,"spec":719},{"name":154},{"displayName":156,"slug":157},{"metadata":721,"spec":722},{"name":119},{"displayName":121,"slug":122}]