{"id":4212,"date":"2021-12-02T12:51:03","date_gmt":"2021-12-02T04:51:03","guid":{"rendered":"http:\/\/123.57.164.21\/?p=4212"},"modified":"2021-12-02T12:51:03","modified_gmt":"2021-12-02T04:51:03","slug":"spring-boot%e6%98%af%e4%bb%80%e4%b9%88","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=4212","title":{"rendered":"Spring Boot\u662f\u4ec0\u4e48"},"content":{"rendered":"\n<p>\u4f17\u6240\u5468\u77e5 Spring \u5e94\u7528\u9700\u8981\u8fdb\u884c\u5927\u91cf\u7684\u914d\u7f6e\uff0c\u5404\u79cd XML \u914d\u7f6e\u548c\u6ce8\u89e3\u914d\u7f6e\u8ba9\u4eba\u773c\u82b1\u7f2d\u4e71\uff0c\u4e14\u6781\u5bb9\u6613\u51fa\u9519\uff0c\u56e0\u6b64 Spring \u4e00\u5ea6\u88ab\u79f0\u4e3a\u201c\u914d\u7f6e\u5730\u72f1\u201d\u3002<\/p>\n\n\n\n<p>\u4e3a\u4e86\u7b80\u5316 Spring \u5e94\u7528\u7684\u642d\u5efa\u548c\u5f00\u53d1\u8fc7\u7a0b\uff0cPivotal \u56e2\u961f\u5728 Spring \u57fa\u7840\u4e0a\u63d0\u4f9b\u4e86\u4e00\u5957\u5168\u65b0\u7684\u5f00\u6e90\u7684\u6846\u67b6\uff0c\u5b83\u5c31\u662f Spring Boot\u3002<\/p>\n\n\n\n<p>Spring Boot \u5177\u6709 Spring \u4e00\u5207\u4f18\u79c0\u7279\u6027\uff0cSpring \u80fd\u505a\u7684\u4e8b\uff0cSpring Boot \u90fd\u53ef\u4ee5\u505a\uff0c\u800c\u4e14\u4f7f\u7528\u66f4\u52a0\u7b80\u5355\uff0c\u529f\u80fd\u66f4\u52a0\u4e30\u5bcc\uff0c\u6027\u80fd\u66f4\u52a0\u7a33\u5b9a\u800c\u5065\u58ee\u3002\u968f\u7740\u8fd1\u4e9b\u5e74\u6765\u5fae\u670d\u52a1\u6280\u672f\u7684\u6d41\u884c\uff0cSpring Boot \u4e5f\u6210\u4e3a\u4e86\u65f6\u4e0b\u7099\u624b\u53ef\u70ed\u7684\u6280\u672f\u3002<\/p>\n\n\n\n<p>Spring Boot \u63d0\u4f9b\u4e86\u5927\u91cf\u5f00\u7bb1\u5373\u7528\uff08out-of-the-box\uff09\u7684\u4f9d\u8d56\u6a21\u5757\uff0c\u4f8b\u5982 spring-boot-starter-redis\u3001spring-boot-starter-data-mongodb \u548c spring-boot-starter-data-elasticsearch \u7b49\u3002\u8fd9\u4e9b\u4f9d\u8d56\u6a21\u5757\u4e3a Spring Boot \u5e94\u7528\u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u81ea\u52a8\u914d\u7f6e\uff0c\u4f7f\u5f97\u00a0Spring Boot \u5e94\u7528\u53ea\u9700\u8981\u975e\u5e38\u5c11\u91cf\u7684\u914d\u7f6e\u751a\u81f3\u96f6\u914d\u7f6e\uff0c\u4fbf\u53ef\u4ee5\u8fd0\u884c\u8d77\u6765\uff0c\u8ba9\u5f00\u53d1\u4eba\u5458\u4ece Spring \u7684\u201c\u914d\u7f6e\u5730\u72f1\u201d\u4e2d\u89e3\u653e\u51fa\u6765\uff0c\u6709\u66f4\u591a\u7684\u7cbe\u529b\u4e13\u6ce8\u4e8e\u4e1a\u52a1\u903b\u8f91\u7684\u5f00\u53d1\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Spring Boot \u7684\u7279\u70b9<\/h5>\n\n\n\n<p>Spring Boot \u5177\u6709\u4ee5\u4e0b\u7279\u70b9\uff1a<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. \u72ec\u7acb\u8fd0\u884c\u7684 Spring \u9879\u76ee<\/h4>\n\n\n\n<p>Spring Boot \u53ef\u4ee5\u4ee5 jar \u5305\u7684\u5f62\u5f0f\u72ec\u7acb\u8fd0\u884c\uff0cSpring Boot \u9879\u76ee\u53ea\u9700\u901a\u8fc7\u547d\u4ee4\u201c&nbsp;java\u2013jar xx.jar\u201d \u5373\u53ef\u8fd0\u884c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. \u5185\u5d4c Servlet \u5bb9\u5668<\/h4>\n\n\n\n<p>Spring Boot \u4f7f\u7528\u5d4c\u5165\u5f0f\u7684 Servlet \u5bb9\u5668\uff08\u4f8b\u5982 Tomcat\u3001Jetty \u6216\u8005 Undertow \u7b49\uff09\uff0c\u5e94\u7528\u65e0\u9700\u6253\u6210 WAR \u5305 \u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3. \u63d0\u4f9b starter \u7b80\u5316 Maven \u914d\u7f6e<\/h4>\n\n\n\n<p>Spring Boot \u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684\u201cstarter\u201d\u9879\u76ee\u5bf9\u8c61\u6a21\u578b\uff08POMS\uff09\u6765\u7b80\u5316 Maven \u914d\u7f6e\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4. \u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u81ea\u52a8\u914d\u7f6e<\/h4>\n\n\n\n<p>Spring Boot \u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u9ed8\u8ba4\u81ea\u52a8\u914d\u7f6e\uff0c\u6765\u7b80\u5316\u9879\u76ee\u7684\u5f00\u53d1\uff0c\u5f00\u53d1\u4eba\u5458\u4e5f\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u4fee\u6539\u9ed8\u8ba4\u914d\u7f6e\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5. \u81ea\u5e26\u5e94\u7528\u76d1\u63a7<\/h4>\n\n\n\n<p>Spring Boot \u53ef\u4ee5\u5bf9\u6b63\u5728\u8fd0\u884c\u7684\u9879\u76ee\u63d0\u4f9b\u76d1\u63a7\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">6. \u65e0\u4ee3\u7801\u751f\u6210\u548c xml \u914d\u7f6e<\/h4>\n\n\n\n<p>Spring Boot \u4e0d\u9700\u8981\u4efb\u4f55 xml \u914d\u7f6e\u5373\u53ef\u5b9e\u73b0 Spring \u7684\u6240\u6709\u914d\u7f6e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f17\u6240\u5468\u77e5 Spring \u5e94\u7528\u9700\u8981\u8fdb\u884c\u5927\u91cf\u7684\u914d\u7f6e\uff0c\u5404\u79cd XML \u914d\u7f6e\u548c\u6ce8\u89e3\u914d\u7f6e\u8ba9\u4eba\u773c\u82b1\u7f2d\u4e71\uff0c\u4e14\u6781\u5bb9\u6613\u51fa\u9519\uff0c\u56e0\u6b64  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,27],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/4212"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4212"}],"version-history":[{"count":1,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/4212\/revisions"}],"predecessor-version":[{"id":4213,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/4212\/revisions\/4213"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}