{"id":123662,"date":"2026-11-07T23:49:22","date_gmt":"2026-11-07T15:49:22","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/123662.html"},"modified":"2026-11-07T23:49:22","modified_gmt":"2026-11-07T15:49:22","slug":"%e5%9f%ba%e4%ba%8espringboot%e7%9a%84%e9%a5%ae%e5%93%81%e4%bb%93%e5%ba%93%e7%ae%a1%e7%90%86%e7%b3%bb%e7%bb%9f%e7%9a%84%e8%ae%be%e8%ae%a1%e4%b8%8e%e5%ae%9e%e7%8e%b0-%e9%99%84%e6%ba%90%e7%a0%81","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/123662.html","title":{"rendered":"\u57fa\u4e8eSpringBoot\u7684\u996e\u54c1\u4ed3\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0-\u9644\u6e90\u7801"},"content":{"rendered":"<p>        \/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/<br \/>\n        #content_views .toc,<br \/>\n        \/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/<br \/>\n        #content_views.markdown_views &gt; p:empty:has(+ .toc),<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty,<br \/>\n        \/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/<br \/>\n        #content_views.htmledit_views #main-toc,<br \/>\n        #content_views.htmledit_views #hr-toc,<br \/>\n        #content_views.htmledit_views p[id*=\\&#8221;-toc\\&#8221;] {<br \/>\n          display: none !important;<br \/>\n        }<br \/>\n        \/* \u76ee\u5f55\u53bb\u6389\u540e\uff0c\u7d27\u8ddf\u7684\u9996\u4e2a\u6807\u9898\u4e0d\u518d\u591a\u51fa\u4e00\u5757\u4e0a\u8fb9\u8ddd *\/<br \/>\n        #content_views.markdown_views &gt; .toc + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + h4,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h4 {<br \/>\n          margin-top: 0 !important;<br \/>\n        }<\/p>\n<p><font size=\"3\">\u6e29\u99a8\u63d0\u793a&#xff1a;\u672c\u4eba\u4e3b\u9875\u7f6e\u9876\u6587\u7ae0(\u70b9\u6211)\u5f00\u5934\u6709 CSDN \u5e73\u53f0\u5b98\u65b9\u63d0\u4f9b\u7684\u5b66\u957f\u8054\u7cfb\u65b9\u5f0f\u7684\u540d\u7247&#xff01;<\/font><\/p>\n<h2>\u8bfe\u9898\u4ecb\u7ecd<\/h2>\n<p>\u996e\u54c1\u884c\u4e1a\u5546\u54c1\u79cd\u7c7b\u7e41\u591a&#xff0c;\u5305\u542b\u74f6\u88c5\u996e\u6599\u3001\u8336\u996e\u539f\u6599\u3001\u5305\u88c5\u8017\u6750\u7b49&#xff0c;\u996e\u54c1\u4ed3\u5e93\u5b58\u5728\u6279\u6b21\u591a\u3001\u4fdd\u8d28\u671f\u77ed\u3001\u51fa\u5165\u5e93\u9891\u7e41\u7684\u7279\u70b9&#xff0c;\u4f20\u7edf\u4eba\u5de5\u53f0\u8d26\u767b\u8bb0\u5bb9\u6613\u51fa\u73b0\u5e93\u5b58\u6570\u91cf\u6838\u5bf9\u9519\u8bef\u3001\u4e34\u671f\u996e\u54c1\u65e0\u6cd5\u53ca\u65f6\u9884\u8b66\u3001\u5165\u5e93\u51fa\u5e93\u5355\u636e\u6df7\u4e71\u7b49\u95ee\u9898&#xff0c;\u7ba1\u7406\u4eba\u5458\u96be\u4ee5\u5b9e\u65f6\u638c\u63e1\u5e93\u5b58\u4f59\u91cf&#xff0c;\u5bb9\u6613\u9020\u6210\u8d27\u54c1\u79ef\u538b\u6216\u8005\u7f3a\u8d27\u65ad\u8d27\u3002\u57fa\u4e8e SpringBoot \u7684\u996e\u54c1\u4ed3\u5e93\u7ba1\u7406\u7cfb\u7edf\u9762\u5411\u4ed3\u5e93\u7ba1\u7406\u5458\u3001\u91c7\u8d2d\u4eba\u5458\u3001\u8d22\u52a1\u4eba\u5458&#xff0c;\u5b9e\u73b0\u996e\u54c1\u539f\u6599\u548c\u6210\u54c1\u7684\u5165\u5e93\u3001\u51fa\u5e93\u3001\u5e93\u5b58\u76d8\u70b9\u3001\u4e34\u671f\u9884\u8b66\u3001\u4f9b\u5e94\u5546\u7ba1\u7406\u3001\u5e93\u5b58\u7edf\u8ba1\u7b49\u529f\u80fd&#xff0c;\u5b9e\u65f6\u66f4\u65b0\u5e93\u5b58\u6570\u636e&#xff0c;\u81ea\u52a8\u8bc6\u522b\u4e34\u671f\u5546\u54c1&#xff0c;\u89c4\u8303\u4ed3\u5e93\u5355\u636e\u6d41\u8f6c&#xff0c;\u63d0\u5347\u996e\u54c1\u4ed3\u5e93\u7684\u7ba1\u7406\u6548\u7387&#xff0c;\u964d\u4f4e\u8d27\u54c1\u635f\u8017\u3002<\/p>\n<h2>\u6280\u672f\u4ecb\u7ecd<\/h2>\n<p>\u540e\u7aef\u91c7\u7528 SpringBoot3 \u6846\u67b6\u5f00\u53d1&#xff0c;\u4f7f\u7528 MyBatis-Plus \u7b80\u5316\u6570\u636e\u5e93\u589e\u5220\u6539\u67e5\u64cd\u4f5c&#xff0c;\u6570\u636e\u5e93\u9009\u7528 MySQL \u5b58\u50a8\u996e\u54c1\u4fe1\u606f\u3001\u4f9b\u5e94\u5546\u4fe1\u606f\u3001\u5165\u5e93\u5355\u3001\u51fa\u5e93\u5355\u3001\u5e93\u5b58\u8bb0\u5f55\u3001\u76d8\u70b9\u8bb0\u5f55\u7b49\u6570\u636e\u3002\u524d\u7aef\u4f7f\u7528 Vue3 \u5f00\u53d1\u7ba1\u7406\u540e\u53f0\u9875\u9762&#xff0c;\u901a\u8fc7 Axios \u8c03\u7528\u540e\u7aef RESTful \u63a5\u53e3\u5b8c\u6210\u524d\u540e\u7aef\u4ea4\u4e92\u3002\u7cfb\u7edf\u91c7\u7528\u5206\u5c42\u67b6\u6784\u8bbe\u8ba1&#xff0c;\u63a7\u5236\u5c42\u63a5\u6536\u524d\u7aef\u8bf7\u6c42&#xff0c;\u4e1a\u52a1\u5c42\u5904\u7406\u51fa\u5165\u5e93\u903b\u8f91\u3001\u5e93\u5b58\u8ba1\u7b97\u3001\u4e34\u671f\u5224\u65ad&#xff0c;\u6570\u636e\u5c42\u8d1f\u8d23\u6301\u4e45\u5316\u5b58\u50a8&#xff0c;\u6a21\u5757\u4e4b\u95f4\u89e3\u8026&#xff0c;\u65b9\u4fbf\u540e\u7eed\u65b0\u589e\u8c03\u62e8\u3001\u9000\u8d27\u7b49\u4e1a\u52a1\u529f\u80fd\u3002<\/p>\n<h2>\u7cfb\u7edf\u5206\u6790<\/h2>\n<p>\u7cfb\u7edf\u5305\u542b\u4ed3\u5e93\u7ba1\u7406\u5458\u3001\u91c7\u8d2d\u4eba\u5458\u3001\u8d22\u52a1\u4eba\u5458\u4e09\u7c7b\u89d2\u8272\u3002\u4ed3\u5e93\u7ba1\u7406\u5458\u8d1f\u8d23\u8d27\u54c1\u5165\u5e93\u767b\u8bb0\u3001\u51fa\u5e93\u64cd\u4f5c\u3001\u5e93\u5b58\u76d8\u70b9\u3001\u67e5\u770b\u4e34\u671f\u9884\u8b66&#xff1b;\u91c7\u8d2d\u4eba\u5458\u67e5\u770b\u5e93\u5b58\u77ed\u7f3a\u5546\u54c1&#xff0c;\u63d0\u4ea4\u91c7\u8d2d\u7533\u8bf7&#xff0c;\u7ba1\u7406\u4f9b\u5e94\u5546\u4fe1\u606f&#xff1b;\u8d22\u52a1\u4eba\u5458\u67e5\u770b\u51fa\u5165\u5e93\u5355\u636e\u3001\u5e93\u5b58\u6210\u672c\u7edf\u8ba1\u62a5\u8868\u3002\u6838\u5fc3\u9700\u6c42\u662f\u996e\u54c1\u5e93\u5b58\u52a8\u6001\u7ba1\u7406\u3001\u4fdd\u8d28\u671f\u9884\u8b66\u3001\u51fa\u5165\u5e93\u5355\u636e\u7559\u5b58&#xff1b;\u975e\u529f\u80fd\u9700\u6c42\u8981\u6c42\u5e93\u5b58\u6570\u636e\u5b9e\u65f6\u66f4\u65b0&#xff0c;\u5355\u636e\u7f16\u53f7\u552f\u4e00&#xff0c;\u505a\u597d\u6570\u636e\u6821\u9a8c&#xff0c;\u9632\u6b62\u8d1f\u5e93\u5b58&#xff0c;\u4fdd\u8bc1\u67e5\u8be2\u548c\u7edf\u8ba1\u54cd\u5e94\u901f\u5ea6&#xff0c;\u64cd\u4f5c\u65e5\u5fd7\u53ef\u8ffd\u6eaf\u3002<\/p>\n<h3>\u7cfb\u7edf\u622a\u56fe<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154913-6aef4879a7ea9.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154914-6aef487a2125d.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154914-6aef487a8fb33.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154915-6aef487b0e9e5.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154915-6aef487b78607.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154915-6aef487be1f26.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154916-6aef487c5718f.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154916-6aef487cc1dfd.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154917-6aef487d369e1.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154917-6aef487d9fbbf.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154918-6aef487e65cfb.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154919-6aef487f5d18b.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6587\u6863\u622a\u56fe<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154919-6aef487fc7400.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u7cfb\u7edf\u8bbe\u8ba1<\/h2>\n<p>\u7cfb\u7edf\u5206\u4e3a\u996e\u54c1\u5546\u54c1\u7ba1\u7406\u6a21\u5757\u3001\u4f9b\u5e94\u5546\u7ba1\u7406\u6a21\u5757\u3001\u5165\u5e93\u7ba1\u7406\u6a21\u5757\u3001\u51fa\u5e93\u7ba1\u7406\u6a21\u5757\u3001\u5e93\u5b58\u76d8\u70b9\u6a21\u5757\u3001\u4e34\u671f\u9884\u8b66\u6a21\u5757\u3001\u7edf\u8ba1\u62a5\u8868\u6a21\u5757\u3001\u65e5\u5fd7\u7ba1\u7406\u6a21\u5757\u3002\u6570\u636e\u5e93\u4e3b\u8981\u5305\u542b\u996e\u54c1\u5546\u54c1\u8868\u3001\u4f9b\u5e94\u5546\u8868\u3001\u5165\u5e93\u5355\u8868\u3001\u51fa\u5e93\u5355\u8868\u3001\u5e93\u5b58\u8868\u3001\u76d8\u70b9\u8bb0\u5f55\u8868\u3001\u64cd\u4f5c\u65e5\u5fd7\u8868\u3002\u4e1a\u52a1\u6d41\u7a0b&#xff1a;\u91c7\u8d2d\u5230\u8d27\u540e\u7ba1\u7406\u5458\u5f55\u5165\u5165\u5e93\u5355&#xff0c;\u5e93\u5b58\u81ea\u52a8\u589e\u52a0&#xff1b;\u8d27\u54c1\u9886\u7528\u51fa\u5e93\u586b\u5199\u51fa\u5e93\u5355&#xff0c;\u5e93\u5b58\u81ea\u52a8\u6263\u51cf&#xff1b;\u7cfb\u7edf\u5b9a\u65f6\u626b\u63cf\u5546\u54c1\u4fdd\u8d28\u671f&#xff0c;\u5bf9\u5373\u5c06\u5230\u671f\u996e\u54c1\u8fdb\u884c\u9884\u8b66&#xff1b;\u5b9a\u671f\u5f00\u5c55\u76d8\u70b9&#xff0c;\u6838\u5bf9\u8d26\u9762\u5e93\u5b58\u4e0e\u5b9e\u9645\u5e93\u5b58&#xff0c;\u751f\u6210\u76d8\u70b9\u5dee\u5f02\u8bb0\u5f55\u3002<\/p>\n<h2>\u6838\u5fc3\u4ee3\u7801<\/h2>\n<p>&#064;RestController<br \/>\n&#064;RequestMapping(&#034;\/warehouse&#034;)<br \/>\npublic class WarehouseController {<br \/>\n    &#064;Autowired<br \/>\n    private GoodsService goodsService;<br \/>\n    &#064;Autowired<br \/>\n    private StockService stockService;<\/p>\n<p>    &#064;PostMapping(&#034;\/stockIn&#034;)<br \/>\n    public Result stockIn(&#064;RequestBody StockIn stockIn) {<br \/>\n        boolean flag &#061; stockService.saveStockIn(stockIn);<br \/>\n        return flag ? Result.success(&#034;\u5165\u5e93\u6210\u529f&#034;) : Result.fail(&#034;\u5165\u5e93\u5931\u8d25&#034;);<br \/>\n    }<\/p>\n<p>    &#064;PostMapping(&#034;\/stockOut&#034;)<br \/>\n    public Result stockOut(&#064;RequestBody StockOut stockOut) {<br \/>\n        boolean flag &#061; stockService.saveStockOut(stockOut);<br \/>\n        return flag ? Result.success(&#034;\u51fa\u5e93\u6210\u529f&#034;) : Result.fail(&#034;\u5e93\u5b58\u4e0d\u8db3&#xff0c;\u51fa\u5e93\u5931\u8d25&#034;);<br \/>\n    }<\/p>\n<p>    &#064;GetMapping(&#034;\/warn&#034;)<br \/>\n    public Result getExpireWarn() {<br \/>\n        List&lt;Goods&gt; warnList &#061; goodsService.queryExpireGoods();<br \/>\n        return Result.success(warnList);<br \/>\n    }<br \/>\n}<\/p>\n<h2>\u7cfb\u7edf\u6d4b\u8bd5<\/h2>\n<p>\u91c7\u7528\u9ed1\u76d2\u6d4b\u8bd5\u5bf9\u7cfb\u7edf\u5404\u529f\u80fd\u6a21\u5757\u8fdb\u884c\u9a8c\u8bc1&#xff0c;\u6d4b\u8bd5\u5185\u5bb9\u5305\u542b\u996e\u54c1\u5546\u54c1\u65b0\u589e\u3001\u4f9b\u5e94\u5546\u7ef4\u62a4\u3001\u5165\u5e93\u64cd\u4f5c\u3001\u51fa\u5e93\u64cd\u4f5c\u3001\u5e93\u5b58\u76d8\u70b9\u3001\u4e34\u671f\u9884\u8b66\u3001\u5e93\u5b58\u62a5\u8868\u67e5\u8be2\u3001\u64cd\u4f5c\u65e5\u5fd7\u8bb0\u5f55\u7b49\u3002\u91cd\u70b9\u6d4b\u8bd5\u51fa\u5e93\u65f6\u5e93\u5b58\u6821\u9a8c\u3001\u4e34\u671f\u5546\u54c1\u7b5b\u9009\u903b\u8f91\u3001\u76d8\u70b9\u5dee\u5f02\u8bb0\u5f55\u662f\u5426\u6b63\u786e\u3002\u7ecf\u8fc7\u591a\u8f6e\u6d4b\u8bd5&#xff0c;\u7cfb\u7edf\u51fa\u5165\u5e93\u6d41\u7a0b\u6b63\u5e38&#xff0c;\u5e93\u5b58\u6570\u91cf\u8ba1\u7b97\u51c6\u786e&#xff0c;\u4e34\u671f\u9884\u8b66\u529f\u80fd\u6709\u6548&#xff0c;\u5355\u636e\u4fe1\u606f\u5b8c\u6574&#xff0c;\u80fd\u591f\u6ee1\u8db3\u996e\u54c1\u4ed3\u5e93\u65e5\u5e38\u7ba1\u7406\u7684\u4e1a\u52a1\u9700\u6c42\u3002<\/p>\n<h2>\u7ed3\u8bba<\/h2>\n<p>\u57fa\u4e8e SpringBoot \u7684\u996e\u54c1\u4ed3\u5e93\u7ba1\u7406\u7cfb\u7edf\u9488\u5bf9\u996e\u54c1\u8d27\u54c1\u4fdd\u8d28\u671f\u654f\u611f\u3001\u51fa\u5165\u5e93\u9891\u7e41\u7684\u7279\u70b9&#xff0c;\u5b9e\u73b0\u996e\u54c1\u5e93\u5b58\u5168\u6d41\u7a0b\u4fe1\u606f\u5316\u7ba1\u7406&#xff0c;\u66ff\u4ee3\u4f20\u7edf\u7eb8\u8d28\u53f0\u8d26&#xff0c;\u51cf\u5c11\u4eba\u5de5\u8bb0\u8d26\u9519\u8bef&#xff0c;\u53ca\u65f6\u53d1\u73b0\u4e34\u671f\u996e\u54c1&#xff0c;\u964d\u4f4e\u635f\u8017\u3002\u7cfb\u7edf\u7ed3\u6784\u6e05\u6670&#xff0c;\u4e1a\u52a1\u8d34\u5408\u996e\u54c1\u4ed3\u5e93\u5b9e\u9645\u573a\u666f&#xff0c;\u7a33\u5b9a\u6027\u8f83\u597d\u3002\u540e\u7eed\u53ef\u4ee5\u589e\u52a0\u5e93\u5b58\u8c03\u62e8\u3001\u9000\u8d27\u7ba1\u7406\u3001\u91c7\u8d2d\u8ba2\u5355\u81ea\u52a8\u751f\u6210\u7b49\u529f\u80fd&#xff0c;\u8fdb\u4e00\u6b65\u5b8c\u5584\u4ed3\u5e93\u4e1a\u52a1\u95ed\u73af\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content<\/p>\n","protected":false},"author":2,"featured_media":123649,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,98,292],"topic":[],"class_list":["post-123662","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-spring-boot","tag-292"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8eSpringBoot\u7684\u996e\u54c1\u4ed3\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0-\u9644\u6e90\u7801 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/123662.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8eSpringBoot\u7684\u996e\u54c1\u4ed3\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0-\u9644\u6e90\u7801 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/123662.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-07T15:49:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154913-6aef4879a7ea9.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/123662.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/123662.html\",\"name\":\"\u57fa\u4e8eSpringBoot\u7684\u996e\u54c1\u4ed3\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0-\u9644\u6e90\u7801 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-07T15:49:22+00:00\",\"dateModified\":\"2026-11-07T15:49:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/123662.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/123662.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/123662.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8eSpringBoot\u7684\u996e\u54c1\u4ed3\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0-\u9644\u6e90\u7801\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u57fa\u4e8eSpringBoot\u7684\u996e\u54c1\u4ed3\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0-\u9644\u6e90\u7801 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/123662.html","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8eSpringBoot\u7684\u996e\u54c1\u4ed3\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0-\u9644\u6e90\u7801 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content","og_url":"https:\/\/www.wsisp.com\/helps\/123662.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-07T15:49:22+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261107154913-6aef4879a7ea9.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/123662.html","url":"https:\/\/www.wsisp.com\/helps\/123662.html","name":"\u57fa\u4e8eSpringBoot\u7684\u996e\u54c1\u4ed3\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0-\u9644\u6e90\u7801 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-07T15:49:22+00:00","dateModified":"2026-11-07T15:49:22+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/123662.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/123662.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/123662.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8eSpringBoot\u7684\u996e\u54c1\u4ed3\u5e93\u7ba1\u7406\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0-\u9644\u6e90\u7801"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/123662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=123662"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/123662\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/123649"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=123662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=123662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=123662"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=123662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}