<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>分类：林间·栈笔 - 林间拾语</title><link>https://www.xhhao.com/categories/xue-xi-bi-ji</link><atom:link href="https://www.xhhao.com/categories/xue-xi-bi-ji/feed/categories/xue-xi-bi-ji.xml" rel="self" type="application/rss+xml"/><description>技术与生活的温暖拾遗</description><generator>Halo v2.27.1</generator><language>zh-cn</language><image><url>https://www.xhhao.com/upload/logo.png</url><title>分类：林间·栈笔 - 林间拾语</title><link>https://www.xhhao.com/categories/xue-xi-bi-ji</link></image><lastBuildDate>Sat, 14 Nov 2026 21:02:11 GMT</lastBuildDate><item><title><![CDATA[密码放在云端到底安不安全]]></title><link>https://www.xhhao.com/archives/password-in-cloud-1password-and-2fa</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=%E5%AF%86%E7%A0%81%E6%94%BE%E5%9C%A8%E4%BA%91%E7%AB%AF%E5%88%B0%E5%BA%95%E5%AE%89%E4%B8%8D%E5%AE%89%E5%85%A8&amp;url=/archives/password-in-cloud-1password-and-2fa" width="1" height="1" alt="" style="opacity:0;">文章拆解1Password安全设计：客户端本地生成128位Secret Key永不上传，与主密码经PBKDF2/HKDF派生后构成加密密钥，库体用AES-256-GCM加密，服务器被攻破也无法解密。对照LastPass因仅凭主密码导致备份库被离线爆破。2023年Okta事件未泄露用户库，只波及支持系统元数据。两步验证仅防登录取密文，挡不住设备被控或实时钓鱼；真正弱点在主密码强度与设备安全。建议采用随机词主密码、硬件密钥、独立验证器，打印应急包并接受官方无法恢复。结论：云端密码库比人脑记忆可靠，但需理解信任边界。]]></description><guid isPermaLink="false">/archives/password-in-cloud-1password-and-2fa</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fimage-dbLv.webp&amp;size=m" type="image/jpeg" length="24924"/><category>林间·栈笔</category><pubDate>Tue, 10 Nov 2026 01:37:14 GMT</pubDate></item><item><title><![CDATA[Halo 2.22.x 插件集成 Redis 完整指南]]></title><link>https://www.xhhao.com/archives/dlaXm9wj</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=Halo%202.22.x%20%E6%8F%92%E4%BB%B6%E9%9B%86%E6%88%90%20Redis%20%E5%AE%8C%E6%95%B4%E6%8C%87%E5%8D%97&amp;url=/archives/dlaXm9wj" width="1" height="1" alt="" style="opacity:0;">本文介绍了在Halo 2.x插件中集成Redis的完整过程，包括复用主程序配置、使用Jedis客户端、本地及生产环境配置方法，并提供了相关代码实现和测试接口。]]></description><guid isPermaLink="false">/archives/dlaXm9wj</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fcover-1766754531042.jpeg&amp;size=m" type="image/jpeg" length="31823"/><category>林间·栈笔</category><pubDate>Fri, 26 Dec 2025 13:09:40 GMT</pubDate></item><item><title><![CDATA[Halo 2.21.x 登录弹窗：从后端机制到前端实现]]></title><link>https://www.xhhao.com/archives/jYv9jZOs</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=Halo%202.21.x%20%E7%99%BB%E5%BD%95%E5%BC%B9%E7%AA%97%EF%BC%9A%E4%BB%8E%E5%90%8E%E7%AB%AF%E6%9C%BA%E5%88%B6%E5%88%B0%E5%89%8D%E7%AB%AF%E5%AE%9E%E7%8E%B0&amp;url=/archives/jYv9jZOs" width="1" height="1" alt="" style="opacity:0;">本文介绍了整体登录流程，包括后端组件如PreAuthLoginEndpoint、CryptoService、AuthProviderService等，以及前端与后端的交互方式，如登录页面的渲染、公钥的读取、认证流程的处理等。]]></description><guid isPermaLink="false">/archives/jYv9jZOs</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Ftanchuangdenglu.webp&amp;size=m" type="image/jpeg" length="23268"/><category>林间·栈笔</category><pubDate>Mon, 8 Dec 2025 06:34:52 GMT</pubDate></item><item><title><![CDATA[从 0 到熟练：Mermaid 流程图的进阶之路]]></title><link>https://www.xhhao.com/archives/n8uk2nI8</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=%E4%BB%8E%200%20%E5%88%B0%E7%86%9F%E7%BB%83%EF%BC%9AMermaid%20%E6%B5%81%E7%A8%8B%E5%9B%BE%E7%9A%84%E8%BF%9B%E9%98%B6%E4%B9%8B%E8%B7%AF&amp;url=/archives/n8uk2nI8" width="1" height="1" alt="" style="opacity:0;">Mermaid是一种基于JavaScript的开源库，使用纯文本代码绘制流程图，支持多种图表类型，如流程图、顺序图等，可自动在支持平台渲染，提升工作效率。]]></description><guid isPermaLink="false">/archives/n8uk2nI8</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fmermaid.png&amp;size=m" type="image/jpeg" length="140828"/><category>林间·栈笔</category><pubDate>Tue, 4 Nov 2025 07:09:17 GMT</pubDate></item><item><title><![CDATA[全面了解腾讯 EdgeOne 边缘加速：加速网站并提高用户体验]]></title><link>https://www.xhhao.com/archives/E0xhIq45</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=%E5%85%A8%E9%9D%A2%E4%BA%86%E8%A7%A3%E8%85%BE%E8%AE%AF%20EdgeOne%20%E8%BE%B9%E7%BC%98%E5%8A%A0%E9%80%9F%EF%BC%9A%E5%8A%A0%E9%80%9F%E7%BD%91%E7%AB%99%E5%B9%B6%E6%8F%90%E9%AB%98%E7%94%A8%E6%88%B7%E4%BD%93%E9%AA%8C&amp;url=/archives/E0xhIq45" width="1" height="1" alt="" style="opacity:0;">腾讯云 EdgeOne 是整合了 DDoS/CC 防护、CDN 加速、边缘函数与 DNS 解析的边缘安全加速平台。文章基于作者 7 个多月个人版使用经验，梳理了接入与配置流程：先完成域名备案（仅境外可用区可免），随后新建站点、选个人版套餐即可；域名已在 DNSPod 的推荐直接托管接入，省去改 NS 与逐条加 CNAME 的麻烦。针对 Halo 站点，静态路径（/upload、/themes 等）建议设长缓存，动态接口（/apis、/login 等）放行回源，HTML 不缓存。边缘函数可依据 Accept 头自动将图片转为 WebP，不支持时回源原图，SVG 需单独配回源规则。验证规则可观察 curl 首字节耗时与控制台命中率。常见坑包括备案缺失、规则优先级覆盖、缓存未刷新、CC 误伤及回源 Host 配错。]]></description><guid isPermaLink="false">/archives/E0xhIq45</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fcover-1765431060921.webp&amp;size=m" type="image/jpeg" length="168944"/><category>林间·栈笔</category><pubDate>Thu, 17 Jul 2025 03:12:31 GMT</pubDate></item><item><title><![CDATA[MacOS 和 Linux 使用 SDKMAN 管理 Java 工具链]]></title><link>https://www.xhhao.com/archives/no20r91W</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=MacOS%20%E5%92%8C%20Linux%20%E4%BD%BF%E7%94%A8%20SDKMAN%20%E7%AE%A1%E7%90%86%20Java%20%E5%B7%A5%E5%85%B7%E9%93%BE&amp;url=/archives/no20r91W" width="1" height="1" alt="" style="opacity:0;">本文聚焦于解决 Java 多版本环境管理难题，提出 SDKMAN 作为高效解决方案。该方法采用命令行工具，支持跨 macOS/Linux 平台安装、切换及管理 JDK、Maven、Gradle 等工具链版本，自动配置 JAVA_HOME 并避免环境冲突。其核心优势在于简化操作流程，通过脚本实现版本切换与全局配置，显著提升开发效率。相较于传统手动管理或单一平台工具，SDKMAN 具备跨平台兼容性与扩展性，尤其适用于多版本并行开发场景。待探索方向包括对 Windows 平台原生支持优化及更丰富的工具链集成。该方案对 Java 开发领域具有显著实践价值，为版本管理提供标准化、自动化路径。]]></description><guid isPermaLink="false">/archives/no20r91W</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fcover-1750300257937.webp&amp;size=m" type="image/jpeg" length="107234"/><category>林间·栈笔</category><pubDate>Thu, 19 Jun 2025 02:46:49 GMT</pubDate></item><item><title><![CDATA[使用 1Panel 从零部署 Halo 博客系统]]></title><link>https://www.xhhao.com/archives/halobushu</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=%E4%BD%BF%E7%94%A8%201Panel%20%E4%BB%8E%E9%9B%B6%E9%83%A8%E7%BD%B2%20Halo%20%E5%8D%9A%E5%AE%A2%E7%B3%BB%E7%BB%9F&amp;url=/archives/halobushu" width="1" height="1" alt="" style="opacity:0;">本文档提供了使用云服务器和域名部署 Halo 博客的详细指南。研究主题聚焦于简化博客平台的容器化部署流程。核心问题是如何通过自动化工具和直观的界面，降低技术门槛，使非专业用户也能快速搭建和管理个人博客。方法论上，采用了 1Panel 面板作为统一管理平台，通过其应用商店一键部署 Halo 服务，并辅以域名解析和 HTTPS 配置。论证逻辑清晰，通过分步操作指导用户完成从服务器购买到网站上线的全过程。关键结论是 1Panel 极大地提升了部署效率和用户体验。该方法论对博客部署领域具有实践价值，尤其对于希望快速搭建技术博客的个人或小型团队。当前研究的待探索方向可能包括更丰富的应用集成和更细致的性能优化选项。]]></description><guid isPermaLink="false">/archives/halobushu</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fcover-1750579344860.webp&amp;size=m" type="image/jpeg" length="140604"/><category>林间·栈笔</category><pubDate>Tue, 15 Apr 2025 08:56:51 GMT</pubDate></item><item><title><![CDATA[深入解析 Java HashSet 底层原理]]></title><link>https://www.xhhao.com/archives/hashsetdc</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=%E6%B7%B1%E5%85%A5%E8%A7%A3%E6%9E%90%20Java%20HashSet%20%E5%BA%95%E5%B1%82%E5%8E%9F%E7%90%86&amp;url=/archives/hashsetdc" width="1" height="1" alt="" style="opacity:0;">本文深入讲解了 HashSet 的原理，阐述了其与 HashMap 的关系，并详细分析了 HashMap 的 put() 源码，包括扩容和树化等关键过程。]]></description><guid isPermaLink="false">/archives/hashsetdc</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fcover-1750579357455.webp&amp;size=m" type="image/jpeg" length="223442"/><category>林间·栈笔</category><pubDate>Fri, 11 Apr 2025 04:22:12 GMT</pubDate></item><item><title><![CDATA[深入解析 Java HashMap 底层原理]]></title><link>https://www.xhhao.com/archives/hashMap</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=%E6%B7%B1%E5%85%A5%E8%A7%A3%E6%9E%90%20Java%20HashMap%20%E5%BA%95%E5%B1%82%E5%8E%9F%E7%90%86&amp;url=/archives/hashMap" width="1" height="1" alt="" style="opacity:0;">HashMap内部使用数组、链表和红黑树存储数据，通过散列算法将键映射到桶，并使用链表或红黑树处理冲突。核心操作包括插入、查找和动态扩容，通过调整初始容量和负载因子优化性能。]]></description><guid isPermaLink="false">/archives/hashMap</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fcover-1750579367174.webp&amp;size=m" type="image/jpeg" length="228618"/><category>林间·栈笔</category><pubDate>Thu, 3 Apr 2025 08:57:00 GMT</pubDate></item><item><title><![CDATA[Java 工厂设计模式详解]]></title><link>https://www.xhhao.com/archives/gcsj</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=Java%20%E5%B7%A5%E5%8E%82%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F%E8%AF%A6%E8%A7%A3&amp;url=/archives/gcsj" width="1" height="1" alt="" style="opacity:0;">文章介绍了工厂设计模式，包括简单工厂、工厂方法和抽象工厂三种类型。这三种模式通过工厂类来封装对象的创建过程，提高了代码的灵活性和可扩展性，适用于不同的场景，如少量产品或产品种类多且需灵活扩展的情况。]]></description><guid isPermaLink="false">/archives/gcsj</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fcover-1750579377391.webp&amp;size=m" type="image/jpeg" length="598186"/><category>林间·栈笔</category><pubDate>Wed, 2 Apr 2025 05:10:21 GMT</pubDate></item><item><title><![CDATA[Lit框架超深度使用指南]]></title><link>https://www.xhhao.com/archives/litdev</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=Lit%E6%A1%86%E6%9E%B6%E8%B6%85%E6%B7%B1%E5%BA%A6%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97&amp;url=/archives/litdev" width="1" height="1" alt="" style="opacity:0;">本文系统研究Lit框架的核心特性、技术架构与开发模式。通过对比分析Lit与React、Vue在运行时体积、更新机制、学习曲线及标准兼容性等方面的差异，阐明Lit作为轻量级Web组件库的独特优势。研究深入解析了Lit的响应式系统原理、模板引擎黑盒机制、样式隔离方案等核心机制，并探讨了自定义指令开发、服务端渲染(SSR)及状态管理集成等高级开发模式。研究结果表明，Lit通过Web Components标准构建，实现了6KB的极小运行时体积，具备高效的响应式更新与原生兼容性，特别适用于微前端架构、高性能嵌入式界面等场景。研究创新性提出Lit的状态管理集成方案，为复杂应用开发提供新思路。未来研究可进一步探索Lit与TypeScript的深度整合优化，以及多框架互操作性的技术突破。]]></description><guid isPermaLink="false">/archives/litdev</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fwallhaven-3z8y59.webp&amp;size=m" type="image/jpeg" length="330556"/><category>林间·栈笔</category><pubDate>Fri, 28 Mar 2025 09:00:13 GMT</pubDate></item><item><title><![CDATA[重生之设计模式：策略模式]]></title><link>https://www.xhhao.com/archives/celuemoshi</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=%E9%87%8D%E7%94%9F%E4%B9%8B%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F%EF%BC%9A%E7%AD%96%E7%95%A5%E6%A8%A1%E5%BC%8F&amp;url=/archives/celuemoshi" width="1" height="1" alt="" style="opacity:0;">本研究聚焦于解决软件开发中因多条件分支逻辑导致的维护困难和扩展性差的问题，核心研究主题为策略模式的应用。通过分析传统 `if-else` 结构违反开闭原则的弊端，提出将算法封装为独立策略对象，实现算法的灵活替换。研究采用案例驱动方法，以多AI服务动态调用为例，详细阐述了策略模式的定义、结构、实现及其与工厂模式结合的配置化应用。关键结论指出，策略模式能有效解耦、消除条件判断，显著提升代码的可维护性和扩展性。研究成果对提升复杂业务场景下软件设计的灵活性和可维护性具有重要实践价值，尤其在AI服务集成领域。未来可探索策略对象的自动发现与注册机制，进一步优化动态切换的效率。]]></description><guid isPermaLink="false">/archives/celuemoshi</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fwww.lik.cc%2Fupload%2F%25E7%25AD%2596%25E7%2595%25A5%25E6%25A8%25A1%25E5%25BC%258F.png&amp;size=m" type="image/jpeg" length="281904"/><category>林间·栈笔</category><pubDate>Thu, 13 Mar 2025 08:53:11 GMT</pubDate></item><item><title><![CDATA[分布式事务详解：从入门到精通]]></title><link>https://www.xhhao.com/archives/huancun</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1%E8%AF%A6%E8%A7%A3%EF%BC%9A%E4%BB%8E%E5%85%A5%E9%97%A8%E5%88%B0%E7%B2%BE%E9%80%9A&amp;url=/archives/huancun" width="1" height="1" alt="" style="opacity:0;">本文研究分布式事务，核心问题是如何在多服务协同操作中保证ACID特性。通过阐述本地事务、分布式事务的产生背景、CAP与BASE理论，引出基于XA协议的JTA事务管理、Spring集成JTA、TCC模式及MQ消息可靠传输等核心技术。研究表明，不同技术在一致性、可用性及实现复杂度上存在权衡。XA/JTA提供强一致性但性能受限，TCC和MQ模式则倾向于最终一致性，更适用于微服务场景。未来研究可深入探索在极端网络分区下的更优一致性与可用性折衷方案。]]></description><guid isPermaLink="false">/archives/huancun</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fwww.lik.cc%2Fupload%2Furl-dncgx5avuqvosypt.webp&amp;size=m" type="image/jpeg" length="28682"/><category>林间·栈笔</category><pubDate>Wed, 19 Feb 2025 10:23:34 GMT</pubDate></item><item><title><![CDATA[Java Flux流 从0到精通]]></title><link>https://www.xhhao.com/archives/JavaFlux</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=Java%20Flux%E6%B5%81%20%E4%BB%8E0%E5%88%B0%E7%B2%BE%E9%80%9A&amp;url=/archives/JavaFlux" width="1" height="1" alt="" style="opacity:0;">本研究以类比方式，将Flux比作智能水管，深入浅出地阐释了其核心概念与操作。研究聚焦于Flux作为响应式数据流处理框架，如何实现高效、灵活的数据传输与处理，核心问题在于如何管理异步数据流的生产与消费。通过类比自来水管、快递站及咖啡店等场景，研究清晰地展现了Flux的事件驱动、背压控制、操作符链式处理及异常处理机制。研究成果显著提升了对Flux易用性的认知，为开发者提供了直观的学习路径，尤其在处理高并发、实时数据流场景中具有重要的实践价值。相较于传统阻塞式API，Flux提供了更优的资源利用和用户体验。未来可探索Flux在复杂分布式系统中的性能优化与集成应用。]]></description><guid isPermaLink="false">/archives/JavaFlux</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F50347f9f-f0ed-4ff4-a818-527634075817.webp&amp;size=m" type="image/jpeg" length="39220"/><category>林间·栈笔</category><pubDate>Thu, 13 Feb 2025 13:40:13 GMT</pubDate></item><item><title><![CDATA[零基础Java使用Playwright获取网站截图教程 ]]></title><link>https://www.xhhao.com/archives/Playwright</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=%E9%9B%B6%E5%9F%BA%E7%A1%80Java%E4%BD%BF%E7%94%A8Playwright%E8%8E%B7%E5%8F%96%E7%BD%91%E7%AB%99%E6%88%AA%E5%9B%BE%E6%95%99%E7%A8%8B%20&amp;url=/archives/Playwright" width="1" height="1" alt="" style="opacity:0;">本文聚焦于利用Java和Playwright实现网页截图的自动化技术。研究旨在解决在特定Java开发环境（JDK17+Spring Webflux+MySQL+Redis）下，替代原有JavaScript截图方案的需求。通过引入Playwright的Maven依赖，并阐述其跨浏览器（Chromium, Firefox, WebKit）、多语言支持及核心优势（如自动等待、网络拦截），本文提供了基础及高级截图的Java代码示例，包括全页截图、区域截图、质量设置和格式选择。研究通过代码实践展示了Playwright在Java生态中的应用，为开发者提供了实现高效网页截图的实用方法，并建议进一步探索设备模拟、网络拦截和视频录制等高级功能。]]></description><guid isPermaLink="false">/archives/Playwright</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fwww.lik.cc%2Fupload%2Furl-ocg83su2w0r9sfs9.webp&amp;size=m" type="image/jpeg" length="30052"/><category>林间·栈笔</category><pubDate>Mon, 10 Feb 2025 04:20:37 GMT</pubDate></item><item><title><![CDATA[重生之设计模式：创建型模式的启示录]]></title><link>https://www.xhhao.com/archives/creational</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=%E9%87%8D%E7%94%9F%E4%B9%8B%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F%EF%BC%9A%E5%88%9B%E5%BB%BA%E5%9E%8B%E6%A8%A1%E5%BC%8F%E7%9A%84%E5%90%AF%E7%A4%BA%E5%BD%95&amp;url=/archives/creational" width="1" height="1" alt="" style="opacity:0;">本研究聚焦软件设计模式，阐述其作为可复用解决方案在解决常见设计问题中的核心作用。研究重点在于创建型、结构型和行为型三大类模式，并详细解析了单例模式。通过对比饿汉式、懒汉式（包括同步方法、同步代码块、双重检查锁定、静态内部类）及枚举等多种实现方式，揭示了它们在线程安全、延迟加载及资源利用上的优劣。研究强调设计模式旨在提升代码可重用性、可读性与可维护性。其理论贡献在于系统梳理了设计模式的分类与应用，实践价值在于为开发者提供高效、可靠的软件设计指导，尤其在单例模式的实现选择上具有重要参考意义。未来研究可进一步探索特定场景下的模式优化及新模式的开发。]]></description><guid isPermaLink="false">/archives/creational</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fwww.lik.cc%2Fupload%2FCanvas-Ruom.webp&amp;size=m" type="image/jpeg" length="25854"/><category>林间·栈笔</category><pubDate>Sat, 14 Dec 2024 13:15:45 GMT</pubDate></item><item><title><![CDATA[Java Stream 深入浅出 - 01 ]]></title><link>https://www.xhhao.com/archives/streamapi</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=Java%20Stream%20%E6%B7%B1%E5%85%A5%E6%B5%85%E5%87%BA%20-%2001%20&amp;url=/archives/streamapi" width="1" height="1" alt="" style="opacity:0;">本文旨在阐述Java 8 Stream API的核心功能与应用。研究聚焦于Stream如何通过函数式编程范式，结合匿名内部类及Lambda表达式，实现集合数据的简洁高效处理。通过分析`filter`、`map`、`flatMap`、`distinct`、`peek`等中间操作及`forEach`终端操作，揭示了Stream处理的声明式特性和链式调用优势。研究表明，Stream API显著提升了代码可读性与性能，尤其在处理复杂集合操作时。未来研究可探索Stream在并发场景下的性能优化及异常处理机制的深度集成。]]></description><guid isPermaLink="false">/archives/streamapi</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fwww.lik.cc%2Fupload%2Fimage-yk2j.png&amp;size=m" type="image/jpeg" length="198084"/><category>林间·栈笔</category><pubDate>Wed, 4 Dec 2024 03:09:42 GMT</pubDate></item><item><title><![CDATA[Spring Cloud保姆式教学02]]></title><link>https://www.xhhao.com/archives/springcloud02</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=Spring%20Cloud%E4%BF%9D%E5%A7%86%E5%BC%8F%E6%95%99%E5%AD%A602&amp;url=/archives/springcloud02" width="1" height="1" alt="" style="opacity:0;">本研究聚焦微服务架构中的服务雪崩效应，核心问题是如何应对服务提供者不可用、硬件故障、程序Bug、缓存击穿及用户请求放大等因素引发的连锁故障。通过分析不当重试机制对流量放大的影响，提出了一系列应对策略，包括服务限流、优化缓存、服务自动扩容和降级。特别地，研究引入Netflix Hystrix库，阐述了其熔断、降级和依赖隔离机制在提升系统健壮性方面的作用，并结合Ribbon库实现了客户端负载均衡，以分散请求压力。本研究的创新点在于系统性地整合了Hystrix和Ribbon，为微服务提供了全面的容错和高可用解决方案，对提升分布式系统的稳定性和用户体验具有显著的实践价值。未来研究可进一步探索更精细化的流量控制和异常预测机制。]]></description><guid isPermaLink="false">/archives/springcloud02</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fcover-1753790611963.webp&amp;size=m" type="image/jpeg" length="2454152"/><category>林间·栈笔</category><pubDate>Wed, 6 Nov 2024 01:26:56 GMT</pubDate></item><item><title><![CDATA[Spring Cloud保姆式教学01]]></title><link>https://www.xhhao.com/archives/springcloudone</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=Spring%20Cloud%E4%BF%9D%E5%A7%86%E5%BC%8F%E6%95%99%E5%AD%A601&amp;url=/archives/springcloudone" width="1" height="1" alt="" style="opacity:0;">本文深入阐述了微服务架构的概念、核心特征及其在现代软件开发中的重要性。研究聚焦于如何通过拆分大型应用为小型、独立的服务来提升系统的可扩展性、灵活性和可靠性。方法论上，文本详细介绍了微服务间的通信机制（RPC与RESTful）、集群部署模式以及Spring Cloud生态（特别是Eureka和Feign）在实现微服务治理中的关键作用。核心结论是，Spring Boot与Spring Cloud的结合为微服务架构提供了强大而便捷的开发与管理工具集，有效简化了服务注册、发现、调用等复杂环节。本研究的实践价值在于为开发者提供了构建和管理分布式系统的清晰指导和技术选型参考。未来研究可进一步探索更高级的服务治理、容错机制及跨语言微服务集成。]]></description><guid isPermaLink="false">/archives/springcloudone</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=https%3A%2F%2Fwmimg.com%2Fi%2F1283%2F2024%2F11%2F67260f9954163.png&amp;size=m" type="image/jpeg" length="338181"/><category>林间·栈笔</category><pubDate>Sat, 2 Nov 2024 11:07:59 GMT</pubDate></item><item><title><![CDATA[超详细的RabbitMQ快速入门]]></title><link>https://www.xhhao.com/archives/RabbitMQ</link><description><![CDATA[<img src="https://www.xhhao.com/plugins/feed/assets/telemetry.gif?title=%E8%B6%85%E8%AF%A6%E7%BB%86%E7%9A%84RabbitMQ%E5%BF%AB%E9%80%9F%E5%85%A5%E9%97%A8&amp;url=/archives/RabbitMQ" width="1" height="1" alt="" style="opacity:0;">本文聚焦电商系统面临的高耦合、性能下降、资源浪费及级联失败等问题，提出基于消息队列（MQ）的异步调用解决方案。研究阐述了MQ作为解耦、异步通信、流量削峰的关键技术，并详细介绍了RabbitMQ作为一种成熟的MQ实现，包括其核心组件、多种通信模式（Simple, Work, Pub/Sub, Routing, Topic）及交换机类型（Direct, Fanout, Topic, Headers）。通过Docker环境下的RabbitMQ安装及SpringBoot整合实践，验证了MQ在提升系统性能、稳定性和可扩展性方面的显著价值。未来研究可深入探讨MQ在分布式事务一致性及消息可靠性方面的优化。]]></description><guid isPermaLink="false">/archives/RabbitMQ</guid><dc:creator>Handsome</dc:creator><enclosure url="https://www.xhhao.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fcover-1753790603602.webp&amp;size=m" type="image/jpeg" length="192158"/><category>林间·栈笔</category><pubDate>Sat, 26 Oct 2024 04:21:46 GMT</pubDate></item></channel></rss>