{"id":8335,"date":"2023-11-28T20:25:17","date_gmt":"2023-11-28T12:25:17","guid":{"rendered":"https:\/\/wx.kaifamiao.info\/?p=8335"},"modified":"2023-12-06T10:21:40","modified_gmt":"2023-12-06T02:21:40","slug":"springboot-shi-yong-de-hao-chu-you-na-xie-ni-ge-re","status":"publish","type":"post","link":"http:\/\/wx.kaifamiao.info\/index.php\/2023\/11\/28\/springboot-shi-yong-de-hao-chu-you-na-xie-ni-ge-re\/","title":{"rendered":"SpringBoot\u4f7f\u7528\u7684\u597d\u5904\u6709\u54ea\u4e9b\uff0c\u4f60\u4e2a\u4eba\u5982\u4f55\u7406\u89e3\u7684\uff1f"},"content":{"rendered":"<p>Spring Boot\u662f\u4e00\u4e2a\u7528\u4e8e\u6784\u5efa\u57fa\u4e8eSpring\u6846\u67b6\u7684Java\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u6846\u67b6\u3002\u5b83\u5728\u7b80\u5316\u914d\u7f6e\u3001\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3001\u5185\u7f6e\u5e38\u7528\u529f\u80fd\u65b9\u9762\u63d0\u4f9b\u4e86\u8bb8\u591a\u4f18\u52bf\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9bSpring Boot\u7684\u4f7f\u7528\u597d\u5904\u4ee5\u53ca\u6211\u7684\u4e2a\u4eba\u7406\u89e3\uff1a<\/p>\n<ol>\n<li>\n<strong>\u7b80\u5316\u914d\u7f6e\uff1a<\/strong><\/p>\n<ul>\n<li>Spring Boot\u91c7\u7528\u7ea6\u5b9a\u4f18\u4e8e\u914d\u7f6e\u7684\u7406\u5ff5\uff0c\u901a\u8fc7\u9ed8\u8ba4\u503c\u548c\u81ea\u52a8\u914d\u7f6e\uff0c\u51cf\u5c11\u4e86\u5f00\u53d1\u8005\u9700\u8981\u624b\u52a8\u914d\u7f6e\u7684\u5de5\u4f5c\u3002\u8fd9\u4f7f\u5f97\u9879\u76ee\u914d\u7f6e\u66f4\u52a0\u7b80\u6d01\u3001\u6e05\u6670\uff0c\u51cf\u5c11\u4e86\u6837\u677f\u4ee3\u7801\u7684\u7f16\u5199\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>\u5feb\u901f\u5f00\u53d1\uff1a<\/strong><\/p>\n<ul>\n<li>Spring Boot\u63d0\u4f9b\u4e86\u5feb\u901f\u5f00\u53d1\u7684\u80fd\u529b\uff0c\u901a\u8fc7\u4f7f\u7528Spring Initializer\u521b\u5efa\u9879\u76ee\u9aa8\u67b6\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u8fc5\u901f\u642d\u5efa\u4e00\u4e2a\u57fa\u7840\u7684Spring Boot\u9879\u76ee\u3002\u81ea\u52a8\u914d\u7f6e\u548c\u5185\u5d4c\u7684Web\u670d\u52a1\u5668\u7b49\u7279\u6027\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u80fd\u591f\u4e13\u6ce8\u4e8e\u4e1a\u52a1\u903b\u8f91\u800c\u4e0d\u5fc5\u5173\u6ce8\u7e41\u7410\u7684\u914d\u7f6e\u548c\u90e8\u7f72\u95ee\u9898\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>\u96c6\u6210\u7b80\u4fbf\uff1a<\/strong><\/p>\n<ul>\n<li>Spring Boot\u96c6\u6210\u4e86\u5927\u91cf\u7684\u7b2c\u4e09\u65b9\u5e93\u548c\u6846\u67b6\uff0c\u901a\u8fc7Starter\u4f9d\u8d56\u7684\u65b9\u5f0f\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u5f15\u5165\u5404\u79cd\u529f\u80fd\uff0c\u5982\u6570\u636e\u5e93\u8bbf\u95ee\u3001\u7f13\u5b58\u3001\u6d88\u606f\u961f\u5217\u7b49\u3002\u8fd9\u7b80\u5316\u4e86\u96c6\u6210\u7684\u8fc7\u7a0b\uff0c\u63d0\u9ad8\u4e86\u5f00\u53d1\u6548\u7387\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>\u5185\u5d4cWeb\u670d\u52a1\u5668\uff1a<\/strong><\/p>\n<ul>\n<li>Spring Boot\u5185\u7f6e\u4e86\u5e38\u89c1\u7684Web\u670d\u52a1\u5668\uff08\u5982Tomcat\u3001Jetty\u3001Undertow\uff09\uff0c\u5f00\u53d1\u8005\u65e0\u9700\u624b\u52a8\u914d\u7f6e\uff0c\u5373\u53ef\u5feb\u901f\u542f\u52a8Web\u5e94\u7528\u3002\u8fd9\u964d\u4f4e\u4e86\u90e8\u7f72\u7684\u590d\u6742\u6027\uff0c\u4f7f\u5f97\u5f00\u53d1\u548c\u6d4b\u8bd5\u66f4\u52a0\u65b9\u4fbf\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>\u81ea\u52a8\u5316\u7684Spring Bean\u7ba1\u7406\uff1a<\/strong><\/p>\n<ul>\n<li>Spring Boot\u901a\u8fc7\u626b\u63cf\u548c\u81ea\u52a8\u914d\u7f6e\uff0c\u80fd\u591f\u81ea\u52a8\u53d1\u73b0\u548c\u6ce8\u518cSpring Bean\u3002\u8fd9\u51cf\u5c11\u4e86\u624b\u52a8\u914d\u7f6e\u7684\u9700\u6c42\uff0c\u63d0\u9ad8\u4e86\u4ee3\u7801\u7684\u53ef\u7ef4\u62a4\u6027\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>\u5065\u5eb7\u76d1\u6d4b\u548c\u8fd0\u7ef4\uff1a<\/strong><\/p>\n<ul>\n<li>Spring Boot\u63d0\u4f9b\u4e86Actuator\u6a21\u5757\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u96c6\u6210\u5065\u5eb7\u68c0\u67e5\u3001\u76d1\u63a7\u548c\u8fd0\u7ef4\u529f\u80fd\u3002\u901a\u8fc7\u66b4\u9732\u5404\u79cd\u7aef\u70b9\uff0c\u53ef\u4ee5\u5b9e\u65f6\u67e5\u770b\u5e94\u7528\u7a0b\u5e8f\u7684\u72b6\u6001\u3001\u6027\u80fd\u6307\u6807\u548c\u914d\u7f6e\u4fe1\u606f\uff0c\u6709\u52a9\u4e8e\u5b9e\u73b0\u66f4\u597d\u7684\u53ef\u89c2\u5bdf\u6027\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>\u5e7f\u6cdb\u7684\u793e\u533a\u652f\u6301\uff1a<\/strong><\/p>\n<ul>\n<li>Spring Boot\u662f\u7531Spring\u793e\u533a\u63d0\u4f9b\u548c\u7ef4\u62a4\u7684\uff0c\u62e5\u6709\u5e9e\u5927\u7684\u793e\u533a\u652f\u6301\u3002\u8fd9\u610f\u5473\u7740\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u793e\u533a\u83b7\u53d6\u4e30\u5bcc\u7684\u6587\u6863\u3001\u793a\u4f8b\u548c\u89e3\u51b3\u65b9\u6848\uff0c\u5feb\u901f\u89e3\u51b3\u95ee\u9898\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>\u5fae\u670d\u52a1\u652f\u6301\uff1a<\/strong><\/p>\n<ul>\n<li>Spring Boot\u4e3a\u6784\u5efa\u5fae\u670d\u52a1\u63d0\u4f9b\u4e86\u826f\u597d\u7684\u652f\u6301\u3002\u901a\u8fc7Spring Cloud\u7b49\u76f8\u5173\u9879\u76ee\uff0c\u53ef\u4ee5\u8f7b\u677e\u6784\u5efa\u548c\u7ba1\u7406\u5206\u5e03\u5f0f\u7cfb\u7edf\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u603b\u7684\u6765\u8bf4\uff0cSpring Boot\u7684\u597d\u5904\u5728\u4e8e\u7b80\u5316\u4e86\u5f00\u53d1\u6d41\u7a0b\u3001\u63d0\u9ad8\u4e86\u5f00\u53d1\u6548\u7387\u3001\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u548c\u96c6\u6210\u652f\u6301\uff0c\u4f7f\u5f97Java\u5f00\u53d1\u8005\u80fd\u591f\u66f4\u4e13\u6ce8\u4e8e\u4e1a\u52a1\u903b\u8f91\u7684\u5b9e\u73b0\u800c\u4e0d\u5fc5\u8fc7\u591a\u5173\u5fc3\u6846\u67b6\u548c\u57fa\u7840\u8bbe\u65bd\u7684\u914d\u7f6e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spring Boot\u662f\u4e00\u4e2a\u7528\u4e8e\u6784\u5efa\u57fa\u4e8eSpring\u6846\u67b6\u7684Java\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u6846\u67b6\u3002\u5b83\u5728\u7b80\u5316\u914d\u7f6e\u3001\u63d0\u9ad8\u5f00\u53d1\u6548 [&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-8335","post","type-post","status-publish","format-standard","hentry","category-springboot"],"_links":{"self":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/8335","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=8335"}],"version-history":[{"count":2,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/8335\/revisions"}],"predecessor-version":[{"id":16598,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/8335\/revisions\/16598"}],"wp:attachment":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/media?parent=8335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/categories?post=8335"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/tags?post=8335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}