<?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>unfish</title><link>https://unfish.top</link><atom:link href="https://unfish.top/rss.xml" rel="self" type="application/rss+xml"/><description>unfish</description><generator>Halo v2.27.0</generator><language>zh-cn</language><image><url>https://unfish.top/upload/unfish-site-logo-45.png</url><title>unfish</title><link>https://unfish.top</link></image><lastBuildDate>Sat, 5 Dec 2026 01:01:38 GMT</lastBuildDate><item><title><![CDATA[Java 多线程与并发：从线程创建到异步编排]]></title><link>https://unfish.top/archives/java-multithreading-concurrency</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=Java%20%E5%A4%9A%E7%BA%BF%E7%A8%8B%E4%B8%8E%E5%B9%B6%E5%8F%91%EF%BC%9A%E4%BB%8E%E7%BA%BF%E7%A8%8B%E5%88%9B%E5%BB%BA%E5%88%B0%E5%BC%82%E6%AD%A5%E7%BC%96%E6%8E%92&amp;url=/archives/java-multithreading-concurrency" width="1" height="1" alt="" style="opacity:0;">本文覆盖线程、线程池、锁、线程通信与异步编排等 19 个主题。基础示例适用于 JDK 8+；虚拟线程示例需要 JDK 21+，涉及实现演变的内容单独标注版本。 1. 创建线程的方式 先区分“定义任务”和“创建执行线程”。 Runnable、Callable 描述任务；Thread 与 Executo]]></description><guid isPermaLink="false">/archives/java-multithreading-concurrency</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fjava-concurrency-78d9457cc568b355.png&amp;size=m" type="image/jpeg" length="57206"/><category>Java</category><pubDate>Sun, 29 Nov 2026 08:59:39 GMT</pubDate></item><item><title><![CDATA[MySQL 索引与 SQL 优化：从 B+ 树、回表到执行计划验证]]></title><link>https://unfish.top/archives/mysql-index-structure-and-sql-optimization</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=MySQL%20%E7%B4%A2%E5%BC%95%E4%B8%8E%20SQL%20%E4%BC%98%E5%8C%96%EF%BC%9A%E4%BB%8E%20B%2B%20%E6%A0%91%E3%80%81%E5%9B%9E%E8%A1%A8%E5%88%B0%E6%89%A7%E8%A1%8C%E8%AE%A1%E5%88%92%E9%AA%8C%E8%AF%81&amp;url=/archives/mysql-index-structure-and-sql-optimization" width="1" height="1" alt="" style="opacity:0;">一条 SQL 使用了索引，仍然可能很慢。原因很直接：索引只是访问路径，真正决定成本的是这条路径上扫描多少记录、回表多少次、处理多少排序和连接，以及最终传输多少数据。 本文面向已经会写 SQL、希望理解优化原因的开发者。先建立 InnoDB 的索引结构模型，再围绕订单查询展开 14 类常见优化。每一类]]></description><guid isPermaLink="false">/archives/mysql-index-structure-and-sql-optimization</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fmysql-index-2758170c70da-poster.jpg&amp;size=m" type="image/jpeg" length="35074"/><category>数据库</category><pubDate>Sat, 28 Nov 2026 07:07:15 GMT</pubDate></item><item><title><![CDATA[JAVA 基础]]></title><link>https://unfish.top/archives/java-basics-illustrated</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=JAVA%20%E5%9F%BA%E7%A1%80&amp;url=/archives/java-basics-illustrated" width="1" height="1" alt="" style="opacity:0;">1. 基本类型、引用类型与对象复制 基本类型变量保存值，引用类型变量保存对象引用。引用赋值复制的是引用，不会复制对象。 数组也是对象。 1.1 分配的是内存还是磁盘空间？ Java 程序运行时的变量与对象由 JVM 管理，讨论的是运行时内存。磁盘上的 .class 文件和持久化数据是另一回事；操作系]]></description><guid isPermaLink="false">/archives/java-basics-illustrated</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fjava-basics-d52dc80912c364fb.png&amp;size=m" type="image/jpeg" length="53908"/><category>Java</category><pubDate>Sat, 28 Nov 2026 06:34:10 GMT</pubDate></item><item><title><![CDATA[Markdown 发到博客后的排版检查]]></title><link>https://unfish.top/archives/study-notes-22</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=Markdown%20%E5%8F%91%E5%88%B0%E5%8D%9A%E5%AE%A2%E5%90%8E%E7%9A%84%E6%8E%92%E7%89%88%E6%A3%80%E6%9F%A5&amp;url=/archives/study-notes-22" width="1" height="1" alt="" style="opacity:0;">一篇技术文章在 Typora 里排版正常，复制到博客后却可能出现表格变成普通文字、代码被误解析成列表、图片指向本地目录。Markdown 只是文本源文件，最终效果由渲染器与发布平台决定。把文章当成可以迁移的源文档，写作时就要区分语义结构、平台扩展与资源地址。下面以一篇有命令、配置表和截图的部署教程为]]></description><guid isPermaLink="false">/archives/study-notes-22</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-22-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="75647"/><category>博客写作</category><pubDate>Mon, 16 Nov 2026 07:54:17 GMT</pubDate></item><item><title><![CDATA[博客首页首屏慢：从浏览器查到数据库]]></title><link>https://unfish.top/archives/study-notes-23</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=%E5%8D%9A%E5%AE%A2%E9%A6%96%E9%A1%B5%E9%A6%96%E5%B1%8F%E6%85%A2%EF%BC%9A%E4%BB%8E%E6%B5%8F%E8%A7%88%E5%99%A8%E6%9F%A5%E5%88%B0%E6%95%B0%E6%8D%AE%E5%BA%93&amp;url=/archives/study-notes-23" width="1" height="1" alt="" style="opacity:0;">读者点击博客首页时，浏览器发送一个请求，后端查询文章，数据库返回记录。看起来只是三步，实际却跨越了网络、进程调度、虚拟内存和磁盘。理解这些层的价值在于：当页面突然变慢时，可以确定哪些证据会支持或推翻自己的解释。下面以一个从数据库读取文章列表的服务为例，沿请求顺序分析这条链路。 先记下 unfish.]]></description><guid isPermaLink="false">/archives/study-notes-23</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-23-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="74424"/><category>部署与运维</category><pubDate>Sun, 15 Nov 2026 13:15:24 GMT</pubDate></item><item><title><![CDATA[Git 暂存之后继续改文件]]></title><link>https://unfish.top/archives/study-notes-21</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=Git%20%E6%9A%82%E5%AD%98%E4%B9%8B%E5%90%8E%E7%BB%A7%E7%BB%AD%E6%94%B9%E6%96%87%E4%BB%B6&amp;url=/archives/study-notes-21" width="1" height="1" alt="" style="opacity:0;">多人协作时，Git 最令人困惑的事情通常是“改动到底在哪”。例如刚修改了两个文件，只想提交其中一个，又发现远端分支有同事的新改动。直接执行一长串命令可能暂时完成推送，却容易把未完成的工作一并提交。解决办法是先建立四个视角：工作区、暂存区、本地提交和远端引用。下面用修改博客文档的一次协作为例来解释这些]]></description><guid isPermaLink="false">/archives/study-notes-21</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-21-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="50449"/><category>开发工具</category><pubDate>Sun, 15 Nov 2026 13:15:24 GMT</pubDate></item><item><title><![CDATA[RabbitMQ 和 RocketMQ 的订单消息去重]]></title><link>https://unfish.top/archives/study-notes-20</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=RabbitMQ%20%E5%92%8C%20RocketMQ%20%E7%9A%84%E8%AE%A2%E5%8D%95%E6%B6%88%E6%81%AF%E5%8E%BB%E9%87%8D&amp;url=/archives/study-notes-20" width="1" height="1" alt="" style="opacity:0;">订单系统通常先提交订单，再通知支付、通知或统计模块。异步消息可以拆开处理速度和依赖关系，但消息经过生产者、Broker、消费者和数据库，每一段都有不同的成功含义。可靠消费的设计要说清楚哪一步已完成、哪一步可以重试，以及某一步重复执行会产生什么结果。这里以一个订单创建事件比较 RabbitMQ 和 R]]></description><guid isPermaLink="false">/archives/study-notes-20</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-20-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="83797"/><category>中间件</category><pubDate>Sun, 15 Nov 2026 13:15:24 GMT</pubDate></item><item><title><![CDATA[Docker 重建容器后的数据去向]]></title><link>https://unfish.top/archives/study-notes-19</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=Docker%20%E9%87%8D%E5%BB%BA%E5%AE%B9%E5%99%A8%E5%90%8E%E7%9A%84%E6%95%B0%E6%8D%AE%E5%8E%BB%E5%90%91&amp;url=/archives/study-notes-19" width="1" height="1" alt="" style="opacity:0;">把服务迁移到 Docker，最容易检验的是容器能否启动，最容易忽略的是容器重建后数据还在不在。以一个博客和数据库组成的站点为例，一个可交付的部署需要解释应用镜像来自哪里、连接如何建立、附件保存在哪，以及失败后如何恢复。Compose 可以描述这些依赖，但真正的交付物还包括经过验证的数据恢复路径。 镜]]></description><guid isPermaLink="false">/archives/study-notes-19</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-19-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="80274"/><category>部署与运维</category><pubDate>Sun, 15 Nov 2026 13:15:24 GMT</pubDate></item><item><title><![CDATA[Linux 服务连不上：端口、日志和权限]]></title><link>https://unfish.top/archives/study-notes-18</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=Linux%20%E6%9C%8D%E5%8A%A1%E8%BF%9E%E4%B8%8D%E4%B8%8A%EF%BC%9A%E7%AB%AF%E5%8F%A3%E3%80%81%E6%97%A5%E5%BF%97%E5%92%8C%E6%9D%83%E9%99%90&amp;url=/archives/study-notes-18" width="1" height="1" alt="" style="opacity:0;">站点打不开时，直接重启服务有时会恢复访问，也会让最有用的现场证据消失。Linux 运维的第一步是建立时间线，再区分进程没有工作、没有监听端口、已监听但请求被拒绝，以及应用接收请求后处理失败。这些情形需要不同的证据。下面以 systemd 主机上的一个博客服务为例，演示如何用只读检查逐层缩小范围。命令]]></description><guid isPermaLink="false">/archives/study-notes-18</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-18-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="71361"/><category>部署与运维</category><pubDate>Sun, 15 Nov 2026 13:15:23 GMT</pubDate></item><item><title><![CDATA[Redis 文章缓存的读取和失效]]></title><link>https://unfish.top/archives/study-notes-17</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=Redis%20%E6%96%87%E7%AB%A0%E7%BC%93%E5%AD%98%E7%9A%84%E8%AF%BB%E5%8F%96%E5%92%8C%E5%A4%B1%E6%95%88&amp;url=/archives/study-notes-17" width="1" height="1" alt="" style="opacity:0;">博客的文章详情通常读多写少。把读请求直接打到数据库，逻辑最简单，但热门文章可能在短时间被读取很多次。Redis 可以减少重复查询，代价是数据在两个系统里具有不同生命周期。选缓存方案之前，需要明确谁保存权威数据、能容许旧内容出现多久，以及 Redis 不可用时如何控制回源压力。下面以文章详情和文章发布]]></description><guid isPermaLink="false">/archives/study-notes-17</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-17-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="52500"/><category>中间件</category><pubDate>Sun, 15 Nov 2026 13:15:23 GMT</pubDate></item><item><title><![CDATA[Vue 文章列表与请求竞态]]></title><link>https://unfish.top/archives/study-notes-16</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=Vue%20%E6%96%87%E7%AB%A0%E5%88%97%E8%A1%A8%E4%B8%8E%E8%AF%B7%E6%B1%82%E7%AB%9E%E6%80%81&amp;url=/archives/study-notes-16" width="1" height="1" alt="" style="opacity:0;">一个文章列表页面要完成三件事：把内容组织成可理解的文档、向服务器读取数据、在等待或失败时给读者反馈。只会写几个 Vue 指令还不足以解释列表错位、显示过期数据或按钮无法操作等问题。下面先从浏览器本身的模型入手，再看 Vue 如何帮助组织这些行为。 文章列表的页面结构 文章列表的结构可以从读者任务出发]]></description><guid isPermaLink="false">/archives/study-notes-16</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-16-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="77319"/><category>前端</category><pubDate>Sun, 15 Nov 2026 13:15:23 GMT</pubDate></item><item><title><![CDATA[Python 订单汇总：CSV、JSON 和 SQLite]]></title><link>https://unfish.top/archives/study-notes-15</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=Python%20%E8%AE%A2%E5%8D%95%E6%B1%87%E6%80%BB%EF%BC%9ACSV%E3%80%81JSON%20%E5%92%8C%20SQLite&amp;url=/archives/study-notes-15" width="1" height="1" alt="" style="opacity:0;">一份订单 CSV 通常要经历三次变化：先解析成程序能处理的记录，再汇总成给其他程序读取的 JSON，最后把需要查询和更新的数据放进 SQLite。这三个格式承担不同职责。CSV 适合接收表格，JSON 适合交换结构化结果，SQLite 提供约束、索引和事务。下面用一个按类别计算金额的例子讨论如何让转]]></description><guid isPermaLink="false">/archives/study-notes-15</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-15-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="111424"/><category>Python</category><pubDate>Sun, 15 Nov 2026 13:15:23 GMT</pubDate></item><item><title><![CDATA[采集公开博客的文章目录]]></title><link>https://unfish.top/archives/study-notes-14</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=%E9%87%87%E9%9B%86%E5%85%AC%E5%BC%80%E5%8D%9A%E5%AE%A2%E7%9A%84%E6%96%87%E7%AB%A0%E7%9B%AE%E5%BD%95&amp;url=/archives/study-notes-14" width="1" height="1" alt="" style="opacity:0;">想把一组公开技术文章整理成标题、链接和发布日期列表，最直接的想法是写一个脚本抓取页面，再用正则把字段找出来。真正难处理的是网站更新后怎样判断结果仍然可信，以及任务在下载或处理途中中断后能否继续。下面以维护者有权访问的公开技术博客为例，从数据来源、HTTP 请求、解析到结果验收设计一条可复现的流程。文]]></description><guid isPermaLink="false">/archives/study-notes-14</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-14-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="62809"/><category>Python</category><pubDate>Sun, 15 Nov 2026 13:15:23 GMT</pubDate></item><item><title><![CDATA[用 Python 正则校验编号、提取日志字段]]></title><link>https://unfish.top/archives/study-notes-13</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=%E7%94%A8%20Python%20%E6%AD%A3%E5%88%99%E6%A0%A1%E9%AA%8C%E7%BC%96%E5%8F%B7%E3%80%81%E6%8F%90%E5%8F%96%E6%97%A5%E5%BF%97%E5%AD%97%E6%AE%B5&amp;url=/archives/study-notes-13" width="1" height="1" alt="" style="opacity:0;">正则表达式的常见故障不是完全匹配不到，而是在真实数据里接受了本来不应该通过的值。以 Python 为例，用户输入的编号需要整串校验，日志检索则只需在一行里找到字段。两者可能使用相同的模式片段，却需要不同的 API、字符规则和边界测试。本文用编号校验和日志抽取两个场景讨论如何明确这些设计。 searc]]></description><guid isPermaLink="false">/archives/study-notes-13</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-13-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="103673"/><category>Python</category><pubDate>Sun, 15 Nov 2026 13:15:23 GMT</pubDate></item><item><title><![CDATA[MySQL 订单表、索引和库存扣减]]></title><link>https://unfish.top/archives/study-notes-12</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=MySQL%20%E8%AE%A2%E5%8D%95%E8%A1%A8%E3%80%81%E7%B4%A2%E5%BC%95%E5%92%8C%E5%BA%93%E5%AD%98%E6%89%A3%E5%87%8F&amp;url=/archives/study-notes-12" width="1" height="1" alt="" style="opacity:0;">订单业务涉及多个用户、商品与状态。设计数据表时，决定未来维护成本的往往是一个普通问题：系统如何确定两条记录是不是同一笔订单，多个写入何时应被视为同一次业务操作。本文主要以 MySQL 的 InnoDB 为例，从建模、查询和事务出发，再说明什么情况下 MongoDB 或 HBase 的模型更合适。 订]]></description><guid isPermaLink="false">/archives/study-notes-12</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-12-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="80953"/><category>数据库</category><pubDate>Sun, 15 Nov 2026 13:15:22 GMT</pubDate></item><item><title><![CDATA[Nginx 反代时保留还是去掉路径前缀]]></title><link>https://unfish.top/archives/study-notes-11</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=Nginx%20%E5%8F%8D%E4%BB%A3%E6%97%B6%E4%BF%9D%E7%95%99%E8%BF%98%E6%98%AF%E5%8E%BB%E6%8E%89%E8%B7%AF%E5%BE%84%E5%89%8D%E7%BC%80&amp;url=/archives/study-notes-11" width="1" height="1" alt="" style="opacity:0;">反向代理常见的问题是服务可以直连，经过域名访问却返回错误。例如应用实际提供 /articles，外部希望读者用 /blog/articles。代理是否剥掉前缀、后端怎样生成绝对链接、重定向是否指向公网地址，都需要明确契约。以下用一台本机上游和 Nginx 组成的示例解释路径和转发头，并给出可重做的排]]></description><guid isPermaLink="false">/archives/study-notes-11</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-11-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="69223"/><category>部署与运维</category><pubDate>Sun, 15 Nov 2026 13:15:22 GMT</pubDate></item><item><title><![CDATA[结账代码里的工厂、策略和装饰器]]></title><link>https://unfish.top/archives/study-notes-10</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=%E7%BB%93%E8%B4%A6%E4%BB%A3%E7%A0%81%E9%87%8C%E7%9A%84%E5%B7%A5%E5%8E%82%E3%80%81%E7%AD%96%E7%95%A5%E5%92%8C%E8%A3%85%E9%A5%B0%E5%99%A8&amp;url=/archives/study-notes-10" width="1" height="1" alt="" style="opacity:0;">设计模式的分类 定义 设计模式（Design Pattern）是一套被反复使用、多数人知晓的、 经过分类的、代码设计经验的总结。 设计模式分类 设计模式常分为三类。创建型模式组织对象创建，结构型模式组织类与对象之间的组合，行为型模式组织对象间的职责和协作。 工厂模式 把创建对象的代码集中起来 当调用]]></description><guid isPermaLink="false">/archives/study-notes-10</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-10-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="56437"/><category>Java</category><pubDate>Sun, 15 Nov 2026 13:15:22 GMT</pubDate></item><item><title><![CDATA[Spring Boot 的问候接口]]></title><link>https://unfish.top/archives/study-notes-09</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=Spring%20Boot%20%E7%9A%84%E9%97%AE%E5%80%99%E6%8E%A5%E5%8F%A3&amp;url=/archives/study-notes-09" width="1" height="1" alt="" style="opacity:0;">Spring Boot 基于 Spring Framework，用依赖管理、自动配置和应用启动约定简化项目搭建。本文示例使用 Java 17 和 Spring Boot 3.3.11 复现 API 用法，新项目应选用仍受支持的版本。示例用问候接口隔离外部依赖，方便把启动、类型绑定、请求响应和测试放在]]></description><guid isPermaLink="false">/archives/study-notes-09</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-09-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="54532"/><category>Spring Boot</category><pubDate>Sun, 15 Nov 2026 13:15:22 GMT</pubDate></item><item><title><![CDATA[Spring 订单服务的依赖注入和事务]]></title><link>https://unfish.top/archives/study-notes-08</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=Spring%20%E8%AE%A2%E5%8D%95%E6%9C%8D%E5%8A%A1%E7%9A%84%E4%BE%9D%E8%B5%96%E6%B3%A8%E5%85%A5%E5%92%8C%E4%BA%8B%E5%8A%A1&amp;url=/archives/study-notes-08" width="1" height="1" alt="" style="opacity:0;">Spring 应用启动后，一个订单服务并不只是一个 Java 对象。容器需要确定它依赖哪个仓库、何时初始化、是否需要代理，以及调用结束时事务如何处理。下文用“创建订单并写入明细”说明 IoC、Bean 和事务代理的关系。讨论以 Spring Framework 的常见命令式应用和默认代理方式为背景。]]></description><guid isPermaLink="false">/archives/study-notes-08</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-08-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="56131"/><category>Spring Boot</category><pubDate>Sun, 15 Nov 2026 13:15:22 GMT</pubDate></item><item><title><![CDATA[JDK 动态代理与 Spring 自调用]]></title><link>https://unfish.top/archives/study-notes-07</link><description><![CDATA[<img src="https://unfish.top/plugins/feed/assets/telemetry.gif?title=JDK%20%E5%8A%A8%E6%80%81%E4%BB%A3%E7%90%86%E4%B8%8E%20Spring%20%E8%87%AA%E8%B0%83%E7%94%A8&amp;url=/archives/study-notes-07" width="1" height="1" alt="" style="opacity:0;">给服务调用增加耗时记录时，可以在每个方法首尾写计时，也可以把调用集中到一个代理，通过统一入口处理计时。代理真正改变的是调用路径，它不能为没有经过代理的调用自动添加行为。本文以“查询文章详情时记录耗时”为贯穿例子，区分手写代理、JDK 动态代理、子类代理和 Spring 中的典型误用。 手写计时代理]]></description><guid isPermaLink="false">/archives/study-notes-07</guid><dc:creator>unfish</dc:creator><enclosure url="https://unfish.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fstudy-notes-07-cover-style-v1.jpg&amp;size=m" type="image/jpeg" length="104223"/><category>Spring Boot</category><pubDate>Sun, 15 Nov 2026 13:15:22 GMT</pubDate></item></channel></rss>