{"id":307,"date":"2024-07-11T19:41:08","date_gmt":"2024-07-11T11:41:08","guid":{"rendered":"https:\/\/forelink.top\/?p=307"},"modified":"2024-07-11T19:41:09","modified_gmt":"2024-07-11T11:41:09","slug":"spring%e6%a0%b8%e5%bf%83%e6%a6%82%e5%bf%b5","status":"publish","type":"post","link":"https:\/\/forelink.top\/index.php\/2024\/07\/11\/spring%e6%a0%b8%e5%bf%83%e6%a6%82%e5%bf%b5\/","title":{"rendered":"Spring\u6838\u5fc3\u6982\u5ff5"},"content":{"rendered":"\n<h2 class=\"wp-block-heading has-medium-font-size\">IOC(\u63a7\u5236\u53cd\u8f6c\uff09<\/h2>\n\n\n\n<p>Spring\u7684\u6838\u5fc3\u6982\u5ff5\u662f \u6709 IoC(Inversion of Control)\uff0c\u5728\u4f7f\u7528\u5bf9\u8c61\u65f6\uff0c\u7531\u7a0b\u5e8f\u521b\u5efa\u6539\u4e3a\u7531\u5916\u90e8\u521b\u5efa<br>Spring\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5bb9\u5668\uff0c\u6210\u4e3aIOC\u5bb9\u5668\u6765\u5b9e\u73b0IOC<br>IOC\u5bb9\u5668\u8d1f\u8d23\u5bf9\u8c61\u7684\u521b\u5efa\u3001\u521d\u59cb\u5316\u3002<\/p>\n\n\n\n<p><strong>\u88ab\u521b\u5efa\u3001\u88ab\u7ba1\u7406<\/strong>\u7684\u5bf9\u8c61\u7edf\u79f0\u4e3a <strong>Bean<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">DI\uff08\u4f9d\u8d56\u6ce8\u5165\uff09<\/h2>\n\n\n\n<p>DI\uff08dependency injection\uff09\u3001\u6307\u5728\u5bb9\u5668\u95f4\u521b\u9020\u4f9d\u8d56\u5173\u7cfb\uff0c\u79f0\u4e3a\u4f9d\u8d56\u6ce8\u5165\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\">\u603b\u7ed3<\/h2>\n\n\n\n<p>Spring\u7684\u6838\u5fc3\u6982\u5ff5\u662f IOC \u548c DI \uff0c\u5b9e\u73b0\u8fd9\u4e24\u4e2a\u7684\u76ee\u6807\u662f\uff1a<strong>\u5145\u5206\u89e3\u8026<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>IOC(\u63a7\u5236\u53cd\u8f6c\uff09 Spring\u7684\u6838\u5fc3\u6982\u5ff5\u662f \u6709 IoC(Inversion of Control)\uff0c\u5728\u4f7f\u7528\u5bf9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[28],"tags":[],"class_list":["post-307","post","type-post","status-publish","format-standard","hentry","category-spring"],"_links":{"self":[{"href":"https:\/\/forelink.top\/index.php\/wp-json\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/forelink.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/forelink.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/forelink.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/forelink.top\/index.php\/wp-json\/wp\/v2\/comments?post=307"}],"version-history":[{"count":1,"href":"https:\/\/forelink.top\/index.php\/wp-json\/wp\/v2\/posts\/307\/revisions"}],"predecessor-version":[{"id":308,"href":"https:\/\/forelink.top\/index.php\/wp-json\/wp\/v2\/posts\/307\/revisions\/308"}],"wp:attachment":[{"href":"https:\/\/forelink.top\/index.php\/wp-json\/wp\/v2\/media?parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/forelink.top\/index.php\/wp-json\/wp\/v2\/categories?post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/forelink.top\/index.php\/wp-json\/wp\/v2\/tags?post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}