{"id":7421,"date":"2023-11-28T18:59:20","date_gmt":"2023-11-28T10:59:20","guid":{"rendered":"https:\/\/wx.kaifamiao.info\/?p=7421"},"modified":"2023-12-05T15:30:19","modified_gmt":"2023-12-05T07:30:19","slug":"springboot-de-he-xin-te-xing-you-na-xie","status":"publish","type":"post","link":"http:\/\/wx.kaifamiao.info\/index.php\/2023\/11\/28\/springboot-de-he-xin-te-xing-you-na-xie\/","title":{"rendered":"SpringBoot\u7684\u6838\u5fc3\u7279\u6027\u6709\u54ea\u4e9b\uff1f"},"content":{"rendered":"<p>Spring Boot \u662f\u4e00\u4e2a\u7528\u4e8e\u7b80\u5316 Spring \u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u7684\u6846\u67b6\uff0c\u5b83\u57fa\u4e8e Spring \u6846\u67b6\uff0c\u65e8\u5728\u4f7f\u6574\u4e2a Spring \u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u3001\u5feb\u901f\u3002\u4ee5\u4e0b\u662f Spring Boot \u7684\u4e00\u4e9b\u6838\u5fc3\u7279\u6027\uff1a<\/p>\n<ol>\n<li>\n<strong>\u81ea\u52a8\u914d\u7f6e\uff08Auto-Configuration\uff09\uff1a<\/strong> Spring Boot \u63d0\u4f9b\u4e86\u5f88\u591a\u9ed8\u8ba4\u914d\u7f6e\uff0c\u51cf\u5c11\u4e86\u5f00\u53d1\u4eba\u5458\u7684\u914d\u7f6e\u5de5\u4f5c\u3002\u5b83\u901a\u8fc7\u5728 classpath \u4e0b\u67e5\u627e\u9700\u8981\u7684\u5e93\u3001\u7ec4\u4ef6\u548c\u914d\u7f6e\uff0c\u6765\u81ea\u52a8\u914d\u7f6e Spring \u5e94\u7528\u7a0b\u5e8f\u3002\n<\/li>\n<li>\n<strong>\u8d77\u6b65\u4f9d\u8d56\uff08Starter Dependencies\uff09\uff1a<\/strong> Spring Boot \u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684\u201c\u8d77\u6b65\u4f9d\u8d56\u201d\uff0c\u8fd9\u662f\u4e00\u7ec4\u9884\u5148\u914d\u7f6e\u597d\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u53ef\u4ee5\u5feb\u901f\u542f\u52a8\u7279\u5b9a\u7c7b\u578b\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5982Web\u5e94\u7528\u3001\u6570\u636e\u8bbf\u95ee\u5e94\u7528\u7b49\u3002\n<\/li>\n<li>\n<strong>\u72ec\u7acb\u8fd0\u884c\uff08Stand-alone\uff09\uff1a<\/strong> Spring Boot \u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u4ee5\u72ec\u7acb\u7684\u65b9\u5f0f\u8fd0\u884c\uff0c\u4e0d\u9700\u8981\u5916\u90e8\u7684\u5e94\u7528\u670d\u52a1\u5668\u3002\u5b83\u5185\u5d4c\u4e86 Tomcat\u3001Jetty \u6216 Undertow \u7b49 Servlet \u5bb9\u5668\uff0c\u4f7f\u5f97\u5e94\u7528\u7684\u6253\u5305\u548c\u8fd0\u884c\u975e\u5e38\u7b80\u4fbf\u3002\n<\/li>\n<li>\n<strong>\u7b80\u5316\u7684\u914d\u7f6e\uff08Simplified Configuration\uff09\uff1a<\/strong> Spring Boot \u4f7f\u7528\u7ea6\u5b9a\u4f18\u4e8e\u914d\u7f6e\u7684\u539f\u5219\uff0c\u901a\u8fc7\u9ed8\u8ba4\u503c\u548c\u81ea\u52a8\u914d\u7f6e\u5c3d\u91cf\u51cf\u5c11\u5f00\u53d1\u4eba\u5458\u9700\u8981\u7684\u914d\u7f6e\u3002\n<\/li>\n<li>\n<strong>\u5fae\u670d\u52a1\u652f\u6301\uff1a<\/strong> Spring Boot \u5f88\u597d\u5730\u652f\u6301\u6784\u5efa\u5fae\u670d\u52a1\u67b6\u6784\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u5f00\u53d1\u5355\u4f53\u5e94\u7528\u7a0b\u5e8f\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u591a\u4e2a\u5c0f\u578b\u670d\u52a1\u7684\u5206\u5e03\u5f0f\u7cfb\u7edf\u3002\n<\/li>\n<li>\n<strong>\u5d4c\u5165\u5f0f Web \u670d\u52a1\u5668\uff1a<\/strong> Spring Boot \u63d0\u4f9b\u4e86\u5bf9\u5d4c\u5165\u5f0f Web \u670d\u52a1\u5668\uff08\u5982Tomcat\u3001Jetty\u3001Undertow\uff09\u7684\u652f\u6301\uff0c\u4f7f\u5f97\u6784\u5efa\u548c\u8fd0\u884c Web \u5e94\u7528\u53d8\u5f97\u66f4\u52a0\u7b80\u5355\u3002\n<\/li>\n<li>\n<strong>\u751f\u4ea7\u5c31\u7eea\uff08Production-Ready\uff09\uff1a<\/strong> Spring Boot \u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684\u5de5\u5177\u548c\u7ea6\u5b9a\uff0c\u4f7f\u5f97\u5e94\u7528\u7a0b\u5e8f\u66f4\u5bb9\u6613\u8fdb\u884c\u76d1\u63a7\u3001\u7ba1\u7406\u548c\u90e8\u7f72\u3002\n<\/li>\n<li>\n<strong>Spring Boot CLI\uff1a<\/strong> \u63d0\u4f9b\u4e86\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5feb\u901f\u5f00\u53d1\u548c\u539f\u578b\u8bbe\u8ba1 Spring Boot \u5e94\u7528\u3002\n<\/li>\n<li>\n<strong>\u5927\u91cf\u7684\u6269\u5c55\uff1a<\/strong> Spring Boot \u96c6\u6210\u4e86\u5927\u91cf\u7684\u6269\u5c55\uff0c\u4f7f\u5f97\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u65b9\u4fbf\u5730\u96c6\u6210\u5404\u79cd\u670d\u52a1\uff0c\u5982\u5b89\u5168\u6027\u3001\u6570\u636e\u8bbf\u95ee\u3001\u6d88\u606f\u961f\u5217\u7b49\u3002\n<\/li>\n<\/ol>\n<p>\u603b\u4f53\u800c\u8a00\uff0cSpring Boot \u7684\u8bbe\u8ba1\u76ee\u6807\u662f\u63d0\u9ad8 Spring \u5f00\u53d1\u8005\u7684\u751f\u4ea7\u529b\uff0c\u901a\u8fc7\u7b80\u5316\u914d\u7f6e\u3001\u63d0\u4f9b\u9ed8\u8ba4\u503c\u548c\u5185\u5d4c\u670d\u52a1\u5668\u7b49\u624b\u6bb5\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u80fd\u591f\u66f4\u4e13\u6ce8\u4e8e\u4e1a\u52a1\u903b\u8f91\u7684\u5f00\u53d1\uff0c\u800c\u4e0d\u662f\u7e41\u7410\u7684\u914d\u7f6e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spring Boot \u662f\u4e00\u4e2a\u7528\u4e8e\u7b80\u5316 Spring \u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u7684\u6846\u67b6\uff0c\u5b83\u57fa\u4e8e Spring \u6846\u67b6\uff0c\u65e8\u5728\u4f7f\u6574 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[100],"tags":[],"class_list":["post-7421","post","type-post","status-publish","format-standard","hentry","category-springboot"],"_links":{"self":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/7421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/comments?post=7421"}],"version-history":[{"count":2,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/7421\/revisions"}],"predecessor-version":[{"id":16515,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/7421\/revisions\/16515"}],"wp:attachment":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/media?parent=7421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/categories?post=7421"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/tags?post=7421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}