<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>API版本 - 标签 | 飞污熊小站</title><link>https://xiongneng.me/tags/api%E7%89%88%E6%9C%AC/</link><description>飞污熊小站</description><generator>Hugo 0.166.0 &amp; FixIt v0.4.6-20260512073637-464c4659</generator><language>zh-CN</language><managingEditor>yidao620@163.com (XiongNeng)</managingEditor><webMaster>yidao620@163.com (XiongNeng)</webMaster><copyright>XiongNeng</copyright><lastBuildDate>Fri, 25 Sep 2026 02:16:47 +0000</lastBuildDate><atom:link href="https://xiongneng.me/tags/api%E7%89%88%E6%9C%AC/index.xml" rel="self" type="application/rss+xml"/><item><title>SpringBoot4系列22 - 使用API版本管理</title><link>https://xiongneng.me/posts/java/springboot/sb4-apiversion/</link><pubDate>Mon, 21 Sep 2026 10:00:00 +0800</pubDate><author>yidao620@163.com (XiongNeng)</author><guid>https://xiongneng.me/posts/java/springboot/sb4-apiversion/</guid><category domain="https://xiongneng.me/categories/java/">Java</category><description>&lt;p&gt;先讲一段我自己的亲身经历。订单服务跑到第二年，产品要在新版 App 里把金额拆开摆：商品金额、折扣、运费各自一行。我把 &lt;code&gt;/api/orders/{id}&lt;/code&gt; 的响应体重构了一遍，customerName 与 customerPhone 聚成 customer 对象，金额拆成 items 数组加 amount 子结构，自测没问题就发了版。上线十分钟，财务的对账系统报警：它按字段平铺解析订单 JSON，customer 对象它不认识，整批对账任务全挂。回滚、发版、写死一套字段映射兼容代码，前前后后折腾了我一周。&lt;/p&gt;</description></item></channel></rss>