{"id":306130,"date":"2024-05-20T20:02:40","date_gmt":"2024-05-20T12:02:40","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/306130.html"},"modified":"2024-05-20T20:03:14","modified_gmt":"2024-05-20T12:03:14","slug":"springboot-%e6%a1%86%e6%9e%b6%e4%b8%ad%e7%89%88%e6%9c%ac%e6%9c%89-snapshot-%e6%9c%89%e4%bb%80%e4%b9%88%e5%90%ab%e4%b9%89","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/306130.html","title":{"rendered":"springboot \u6846\u67b6\u4e2d\u7248\u672c\u6709 snapshot \u6709\u4ec0\u4e48\u542b\u4e49"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26222446\/e62dbb23-494d-4f16-a844-73b80ce1ee8c.webp\" alt=\"springboot \u6846\u67b6\u4e2d\u7248\u672c\u6709 snapshot \u6709\u4ec0\u4e48\u542b\u4e49\" \/><\/p>\n<p><p>\u5728Spring Boot\u6846\u67b6\u4e2d\uff0c\u7248\u672c\u53f7\u4e2d\u7684&quot;SNAPSHOT&quot;\u542b\u4e49\u4e3b\u8981\u8868\u793a<strong>\u5f53\u524d\u7248\u672c\u662f\u4e00\u4e2a\u5feb\u7167\u7248\u672c<\/strong>\u3001<strong>\u5f00\u53d1\u4e2d\u7684\u7248\u672c<\/strong>\uff0c<strong>\u4e0d\u662f\u4e00\u4e2a\u7a33\u5b9a\u7684\u53d1\u884c\u7248\u672c<\/strong>\u3002\u8fd9\u79cd\u7248\u672c\u901a\u5e38\u7528\u4e8e\u6301\u7eed\u96c6\u6210\u7684\u73af\u5883\u4e2d\uff0c\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u548c\u7528\u6237\u6d4b\u8bd5\u548c\u9884\u89c8\u5373\u5c06\u53d1\u5e03\u7684\u529f\u80fd\u3002<strong>\u5feb\u7167\u7248\u672c<\/strong>\u662f\u5bf9\u5f00\u53d1\u4e2d\u7684\u8f6f\u4ef6\u7684\u5f53\u524d\u72b6\u6001\u7684\u5feb\u7167\uff0c\u610f\u5473\u7740\u5b83\u53ef\u80fd\u5305\u542b\u5c1a\u672a\u5b8c\u5168\u6d4b\u8bd5\u6216\u9a8c\u8bc1\u7684\u65b0\u529f\u80fd\u3001\u6539\u8fdb\u6216\u4fee\u590d\u3002<\/p>\n<\/p>\n<p><p>\u5177\u4f53\u800c\u8a00\uff0c<strong>\u5feb\u7167\u7248\u672c\u662f\u52a8\u6001\u7684<\/strong>\uff0c\u5b83\u652f\u6301\u6301\u7eed\u7684\u66f4\u65b0\u3002\u5f53\u5f00\u53d1\u56e2\u961f\u5728\u9879\u76ee\u4e2d\u505a\u51fa\u66f4\u6539\u5e76\u63d0\u4ea4\u5230\u4ed3\u5e93\u65f6\uff0c\u4f9d\u8d56\u4e8e\u8be5SNAPSHOT\u7248\u672c\u7684\u9879\u76ee\u53ef\u4ee5\u83b7\u5f97\u6700\u65b0\u7684\u4ee3\u7801\u72b6\u6001\uff0c\u800c\u4e0d\u9700\u8981\u7b49\u5f85\u6b63\u5f0f\u7248\u672c\u7684\u53d1\u5e03\u3002\u8fd9\u4f7f\u5f97\u4f20\u64ad\u6700\u65b0\u6539\u8fdb\u548c\u4fee\u590d\u53d8\u5f97\u66f4\u52a0\u5feb\u901f\u548c\u9ad8\u6548\uff0c\u5bf9\u4e8e\u8fed\u4ee3\u5f00\u53d1\u548c\u56e2\u961f\u4e4b\u95f4\u7684\u534f\u4f5c\u6765\u8bf4\u975e\u5e38\u6709\u76ca\u3002\u7136\u800c\uff0c\u8fd9\u79cd\u4fbf\u6377\u6027\u4e5f\u5e26\u6765\u4e86\u4e0d\u7a33\u5b9a\u6027\u7684\u98ce\u9669\uff0c\u56e0\u4e3a\u5feb\u7167\u7248\u672c\u53ef\u80fd\u5305\u62ec\u672a\u7ecf\u5145\u5206\u6d4b\u8bd5\u7684\u4ee3\u7801\uff0c\u6709\u53ef\u80fd\u5f15\u5165\u65b0\u7684\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5feb\u7167\u7248\u672c\u7684\u4f18\u70b9<\/h3>\n<\/p>\n<p><p>\u5feb\u7167\u7248\u672c\u5141\u8bb8\u5f00\u53d1\u8005\u63a5\u89e6\u5230\u6700\u524d\u6cbf\u7684\u5f00\u53d1\u8fdb\u5ea6\uff0c\u6709\u5229\u4e8e\u5feb\u901f\u53d1\u73b0\u548c\u4fee\u590d\u9519\u8bef\u3001\u6539\u8fdb\u529f\u80fd\u3002\u5728\u8f6f\u4ef6\u5f00\u53d1\u5468\u671f\u4e2d\uff0c\u5f00\u53d1\u56e2\u961f\u53ef\u4ee5\u66f4\u52a0\u7075\u6d3b\u5730\u8fdb\u884c\u8fed\u4ee3\u5f00\u53d1\u3002\u4ed6\u4eec\u53ef\u4ee5\u5b9e\u65f6\u5206\u4eab\u4ee3\u7801\u7684\u6700\u65b0\u8fdb\u5c55\uff0c\u83b7\u53d6\u5373\u65f6\u7684\u53cd\u9988\uff0c\u4ece\u800c\u52a0\u5feb\u95ee\u9898\u7684\u8bca\u65ad\u548c\u89e3\u51b3\u901f\u5ea6\u3002\u8fd9\u662f\u4e00\u79cd\u975e\u5e38\u9002\u5408<a href=\"https:\/\/docs.pingcode.com\/agile\" target=\"_blank\">\u654f\u6377\u5f00\u53d1<\/a>\u548c\u6301\u7eed\u96c6\u6210\/\u6301\u7eed\u90e8\u7f72\uff08<a href=\"https:\/\/docs.pingcode.com\/blog\/devops\/52691.html\" target=\"_blank\">CI\/CD<\/a>\uff09\u5b9e\u8df5\u7684\u7248\u672c\u7b56\u7565\u3002<\/p>\n<\/p>\n<p><p>\u7136\u800c\uff0c\u4f7f\u7528\u5feb\u7167\u7248\u672c\u4e5f\u9700\u8981\u5f00\u53d1\u8005\u4fdd\u6301\u8b66\u60d5\u3002\u56e0\u4e3a\u5feb\u7167\u7248\u672c\u53ef\u80fd\u4f1a\u968f\u65f6\u6539\u53d8\uff0c\u6240\u4ee5\u5728\u6784\u5efa\u548c\u90e8\u7f72\u65f6\u9700\u8981\u989d\u5916\u7684\u8c28\u614e\uff0c\u786e\u4fdd\u6240\u6709\u7684\u4f9d\u8d56\u90fd\u662f\u66f4\u65b0\u4e14\u517c\u5bb9\u7684\u3002\u4e3a\u6b64\uff0c\u5f88\u591a\u56e2\u961f\u4f1a\u5728\u81ea\u52a8\u5316\u6784\u5efa\u6d41\u7a0b\u4e2d\u52a0\u5165\u68c0\u67e5\u548c\u6d4b\u8bd5\u6b65\u9aa4\uff0c\u4fdd\u8bc1\u5feb\u7167\u7248\u672c\u7684\u53d8\u52a8\u4e0d\u4f1a\u5bf9\u9879\u76ee\u4ea7\u751f\u8d1f\u9762\u5f71\u54cd\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5feb\u7167\u7248\u672c\u4e0e\u7a33\u5b9a\u7248\u672c\u7684\u5bf9\u6bd4<\/h3>\n<\/p>\n<p><p>\u4e0e\u5feb\u7167\u7248\u672c\u76f8\u5bf9\u7684\u662f\u7a33\u5b9a\u7248\u672c\uff0c\u8fd9\u4e9b\u7248\u672c\u7ecf\u8fc7\u4e86\u5168\u9762\u7684\u6d4b\u8bd5\u548c\u9a8c\u8bc1\uff0c\u9002\u5408\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u3002\u7a33\u5b9a\u7248\u672c\u901a\u5e38\u4ee5\u7279\u5b9a\u7684\u7248\u672c\u53f7\u53d1\u5e03\uff0c\u4f8b\u5982\u201c2.3.1.RELEASE\u201d\uff0c\u800c\u4e0d\u662f\u201cSNAPSHOT\u201d\uff0c\u8fd9\u610f\u5473\u7740\u5176\u4ee3\u7801\u5e93\u5728\u8be5\u7248\u672c\u53d1\u5e03\u540e\u4e0d\u4f1a\u518d\u6709\u6539\u52a8\u3002<\/p>\n<\/p>\n<p><p>\u7a33\u5b9a\u7248\u672c\u63d0\u4f9b\u4e86\u4e00\u79cd\u786e\u5b9a\u6027\uff0c\u6709\u5229\u4e8e\u7a33\u5b9a\u6027\u548c\u517c\u5bb9\u6027\u7684\u9700\u6c42\u3002\u5b83\u4eec\u662f\u7ecf\u8fc7\u5145\u5206\u6d4b\u8bd5\u7684\uff0c\u786e\u4fdd\u4e0d\u4f1a\u5f15\u5165\u91cd\u5927\u9519\u8bef\u6216\u95ee\u9898\u3002\u5bf9\u4e8e\u9700\u8981\u9ad8\u5ea6\u7a33\u5b9a\u6027\u548c\u5b89\u5168\u6027\u7684\u9879\u76ee\u6765\u8bf4\uff0c\u9009\u62e9\u7a33\u5b9a\u7248\u672c\u662f\u660e\u667a\u7684\u51b3\u7b56\u3002<\/p>\n<\/p>\n<p><p>\u7136\u800c\uff0c\u5bf9\u4e8e\u90a3\u4e9b\u5e0c\u671b\u5229\u7528\u6700\u65b0\u529f\u80fd\uff0c\u6216\u53c2\u4e0e\u9879\u76ee\u6700\u65b0\u5f00\u53d1\u7684\u7528\u6237\u6216\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u5feb\u7167\u7248\u672c\u5219\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b9e\u65f6\u7684\u3001\u52a8\u6001\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u5feb\u7167\u7248\u672c\u7684\u6700\u4f73\u5b9e\u8df5<\/h3>\n<\/p>\n<p><p>\u8981\u6709\u6548\u5730\u4f7f\u7528\u5feb\u7167\u7248\u672c\uff0c\u5f00\u53d1\u56e2\u961f\u9700\u8981\u91c7\u53d6\u4e00\u4e9b\u7b56\u7565\u548c\u5b9e\u8df5\uff0c\u4ee5\u786e\u4fdd\u9879\u76ee\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u4e0d\u4f1a\u53d7\u5230\u5f71\u54cd\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c<strong>\u5728\u5f00\u53d1\u548c\u6d4b\u8bd5\u73af\u5883\u4e2d\u4f7f\u7528\u5feb\u7167\u7248\u672c<\/strong>\u800c\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u7a33\u5b9a\u7248\u672c\uff0c\u8fd9\u53ef\u4ee5\u786e\u4fdd\u751f\u4ea7\u73af\u5883\u7684\u7a33\u5b9a\u548c\u5b89\u5168\u3002\u5f00\u53d1\u73af\u5883\u4e0b\u4f7f\u7528\u5feb\u7167\u7248\u672c\u6709\u52a9\u4e8e\u5feb\u901f\u8fed\u4ee3\u548c\u6d4b\u8bd5\uff0c\u4f46\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u5f15\u5165\u672a\u7ecf\u5145\u5206\u6d4b\u8bd5\u7684\u4ee3\u7801\u662f\u4e0d\u53ef\u53d6\u7684\u3002<\/p>\n<\/p>\n<p><p>\u5176\u6b21\uff0c<strong>\u5b9a\u671f\u66f4\u65b0\u548c\u6d4b\u8bd5\u4f9d\u8d56<\/strong>\u3002\u7531\u4e8e\u5feb\u7167\u7248\u672c\u4f1a\u9891\u7e41\u66f4\u65b0\uff0c\u56e2\u961f\u9700\u8981\u786e\u4fdd\u4ed6\u4eec\u5b9a\u671f\u68c0\u67e5\u548c\u66f4\u65b0\u8fd9\u4e9b\u4f9d\u8d56\uff0c\u540c\u65f6\u8fdb\u884c\u76f8\u5e94\u7684\u6d4b\u8bd5\uff0c\u4ee5\u786e\u4fdd\u8fd9\u4e9b\u66f4\u65b0\u4e0d\u4f1a\u7834\u574f\u73b0\u6709\u7684\u529f\u80fd\u6216\u5f15\u5165\u65b0\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u603b\u800c\u8a00\u4e4b\uff0cSpring Boot\u6846\u67b6\u4e2d\u7684\u201cSNAPSHOT\u201d\u7248\u672c\u63d0\u4f9b\u4e86\u4e00\u79cd\u4fbf\u5229\u7684\u65b9\u5f0f\uff0c\u8ba9\u5f00\u53d1\u8005\u80fd\u591f\u63a5\u89e6\u548c\u6d4b\u8bd5\u6700\u65b0\u7684\u5f00\u53d1\u8fdb\u5c55\u3002\u7136\u800c\uff0c\u8fd9\u79cd\u4fbf\u5229\u6027\u4e5f\u5e26\u6765\u4e86\u98ce\u9669\u3002\u56e0\u6b64\uff0c\u5408\u7406\u5730\u5229\u7528\u5feb\u7167\u7248\u672c\uff0c\u5e76\u91c7\u53d6\u76f8\u5e94\u7684\u7b56\u7565\u6765\u7ba1\u7406\u8fd9\u4e9b\u98ce\u9669\uff0c\u662f\u786e\u4fdd\u9879\u76ee\u6210\u529f\u7684\u5173\u952e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>\u4ec0\u4e48\u662fSpring Boot\u6846\u67b6\u4e2d\u7684Snapshot\u7248\u672c\uff1f<\/strong><\/p>\n<p>Snapshot\u7248\u672c\u662fSpring Boot\u6846\u67b6\u7684\u4e00\u79cd\u7279\u6b8a\u7248\u672c\uff0c\u5b83\u901a\u5e38\u7528\u4e8e\u5f00\u53d1\u548c\u6d4b\u8bd5\u9636\u6bb5\u3002Snapshot\u7248\u672c\u662f\u6307\u5f00\u53d1\u4eba\u5458\u5728\u5b8c\u6210\u67d0\u4e2a\u529f\u80fd\u6216\u8005\u4fee\u590d\u67d0\u4e2abug\u540e\uff0c\u5c06\u5176\u4e0a\u4f20\u5230\u4ed3\u5e93\u4f9b\u5176\u4ed6\u5f00\u53d1\u4eba\u5458\u4f7f\u7528\u7684\u7248\u672c\u3002\u7531\u4e8eSnapshot\u7248\u672c\u5904\u4e8e\u5f00\u53d1\u9636\u6bb5\uff0c\u56e0\u6b64\u53ef\u80fd\u5b58\u5728\u4e00\u4e9b\u4e0d\u7a33\u5b9a\u6027\u548c\u672a\u7ecf\u5145\u5206\u6d4b\u8bd5\u7684\u95ee\u9898\u3002<\/p>\n<p><strong>Spring Boot\u6846\u67b6\u4e2d\u7684Snapshot\u7248\u672c\u6709\u54ea\u4e9b\u7279\u70b9\uff1f<\/strong><\/p>\n<ol>\n<li>\n<p>\u66f4\u65b0\u9891\u7e41\uff1aSnapshot\u7248\u672c\u4f1a\u7ecf\u5e38\u66f4\u65b0\uff0c\u901a\u5e38\u6bcf\u5929\u90fd\u6709\u65b0\u7684\u7248\u672c\u53d1\u5e03\uff0c\u56e0\u4e3a\u5f00\u53d1\u4eba\u5458\u4f1a\u4e0d\u65ad\u6dfb\u52a0\u65b0\u7684\u529f\u80fd\u548c\u4fee\u590d\u5df2\u77e5\u7684bug\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e0d\u7a33\u5b9a\u6027\uff1a\u7531\u4e8eSnapshot\u7248\u672c\u5904\u4e8e\u5f00\u53d1\u9636\u6bb5\uff0c\u6240\u4ee5\u65e0\u6cd5\u4fdd\u8bc1\u5176\u7a33\u5b9a\u6027\u3002\u5f00\u53d1\u4eba\u5458\u53ef\u80fd\u4f1a\u9891\u7e41\u4fee\u6539\u4ee3\u7801\uff0c\u9020\u6210\u4e00\u4e9b\u529f\u80fd\u6682\u65f6\u4e0d\u53ef\u7528\u6216\u8005\u51fa\u73b0\u4e0d\u53ef\u9884\u6d4b\u7684\u95ee\u9898\u3002<\/p>\n<\/li>\n<li>\n<p>\u98ce\u9669\u8f83\u9ad8\uff1a\u4f7f\u7528Snapshot\u7248\u672c\u5b58\u5728\u4e00\u5b9a\u7684\u98ce\u9669\uff0c\u56e0\u4e3a\u5b83\u53ef\u80fd\u5305\u542b\u4e00\u4e9b\u672a\u7ecf\u5145\u5206\u6d4b\u8bd5\u7684\u4ee3\u7801\u6216\u5b58\u5728\u6f5c\u5728\u7684bug\u3002\u56e0\u6b64\uff0c\u5efa\u8bae\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u5c3d\u91cf\u907f\u514d\u4f7f\u7528Snapshot\u7248\u672c\u3002<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u662f\u5426\u5e94\u8be5\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528Spring Boot\u6846\u67b6\u7684Snapshot\u7248\u672c\uff1f<\/strong><\/p>\n<p>\u4e0d\u63a8\u8350\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528Snapshot\u7248\u672c\u3002\u7531\u4e8eSnapshot\u7248\u672c\u5177\u6709\u4e0d\u7a33\u5b9a\u6027\u548c\u98ce\u9669\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5e94\u7528\u7a0b\u5e8f\u7684\u4e0d\u7a33\u5b9a\u6216\u4ea7\u751f\u672a\u77e5\u7684\u95ee\u9898\u3002\u63a8\u8350\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u7a33\u5b9a\u7684\u6b63\u5f0f\u7248\u672c\uff0c\u4ee5\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u7684\u5b89\u5168\u6027\u548c\u7a33\u5b9a\u6027\u3002\u800cSnapshot\u7248\u672c\u5219\u9002\u7528\u4e8e\u5f00\u53d1\u548c\u6d4b\u8bd5\u9636\u6bb5\uff0c\u7528\u4e8e\u5feb\u901f\u9a8c\u8bc1\u548c\u8bd5\u9a8c\u65b0\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Spring Boot\u6846\u67b6\u4e2d\uff0c\u7248\u672c\u53f7\u4e2d\u7684&quot;SNAPSHOT&quot;\u542b\u4e49\u4e3b\u8981\u8868\u793a\u5f53\u524d\u7248\u672c\u662f\u4e00\u4e2a\u5feb [&hellip;]","protected":false},"author":3,"featured_media":306175,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/306130"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=306130"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/306130\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/306175"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=306130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=306130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=306130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}