<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>RESTful - 标签 | 飞污熊小站</title><link>https://xiongneng.me/tags/restful/</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/restful/index.xml" rel="self" type="application/rss+xml"/><item><title>SpringBoot4系列01 - 实现RESTful接口</title><link>https://xiongneng.me/posts/java/springboot/sb4-restful/</link><pubDate>Thu, 17 Sep 2026 22:00:00 +0800</pubDate><author>yidao620@163.com (XiongNeng)</author><guid>https://xiongneng.me/posts/java/springboot/sb4-restful/</guid><category domain="https://xiongneng.me/categories/java/">Java</category><description>&lt;p&gt;前两天在群里看到有人贴了一段接口返回，长这样。&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;{&amp;#34;code&amp;#34;: 0, &amp;#34;msg&amp;#34;: &amp;#34;success&amp;#34;, &amp;#34;data&amp;#34;: {&amp;#34;id&amp;#34;: 1, &amp;#34;name&amp;#34;: &amp;#34;张三&amp;#34;}}&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;出错了也是这个结构，只是 &lt;code&gt;code&lt;/code&gt; 变成 1，&lt;code&gt;msg&lt;/code&gt; 变成错误信息，HTTP 状态码永远是 200。贴出来的人说前端已经按这个格式对接了，改不动了。&lt;/p&gt;</description></item></channel></rss>