{"id":12243,"date":"2023-11-28T22:48:14","date_gmt":"2023-11-28T14:48:14","guid":{"rendered":"https:\/\/wx.kaifamiao.info\/?p=12243"},"modified":"2023-12-11T16:11:14","modified_gmt":"2023-12-11T08:11:14","slug":"spring-zhong-he-xin-rong-qi-bao-kuocorebeans-conte","status":"publish","type":"post","link":"http:\/\/wx.kaifamiao.info\/index.php\/2023\/11\/28\/spring-zhong-he-xin-rong-qi-bao-kuocorebeans-conte\/","title":{"rendered":"Spring\u4e2d\u6838\u5fc3\u5bb9\u5668:\u5305\u62ecCore\u3001Beans, Context\u3001EL\u6a21\u5757\u4e86\u89e3\u5417\uff1f"},"content":{"rendered":"<p>\u662f\u7684\uff0cSpring\u6846\u67b6\u7684\u6838\u5fc3\u5bb9\u5668\u7531\u56db\u4e2a\u6a21\u5757\u7ec4\u6210\uff0c\u5206\u522b\u662fCore\u3001Beans\u3001Context\u548cExpression Language\uff08EL\uff09\u3002\u8ba9\u6211\u7b80\u8981\u4ecb\u7ecd\u4e00\u4e0b\u6bcf\u4e2a\u6a21\u5757\uff1a<\/p>\n<ol>\n<li>\n<strong>Core\u6a21\u5757\uff1a<\/strong><\/p>\n<ul>\n<li>Core\u6a21\u5757\u662fSpring\u6846\u67b6\u7684\u6838\u5fc3\uff0c\u63d0\u4f9b\u4e86Spring\u6846\u67b6\u7684\u57fa\u672c\u529f\u80fd\uff0c\u5305\u62ec\u4f9d\u8d56\u6ce8\u5165\uff08Dependency Injection\uff0cDI\uff09\u548c\u63a7\u5236\u53cd\u8f6c\uff08Inversion of Control\uff0cIoC\uff09\u7b49\u3002<\/li>\n<li>\u4e3b\u8981\u5305\u542b<code>org.springframework.core<\/code>\u5305\uff0c\u63d0\u4f9b\u4e86Spring\u6846\u67b6\u7684\u57fa\u7840\u5de5\u5177\u7c7b\u3001\u6570\u636e\u7ed3\u6784\u548c\u4e00\u4e9b\u6838\u5fc3\u63a5\u53e3\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Beans\u6a21\u5757\uff1a<\/strong><\/p>\n<ul>\n<li>Beans\u6a21\u5757\u662f\u5efa\u7acb\u5728Core\u6a21\u5757\u4e4b\u4e0a\u7684\uff0c\u5b83\u63d0\u4f9b\u4e86\u7528\u4e8e\u521b\u5efa\u548c\u7ba1\u7406Bean\u7684\u7c7b\u548c\u63a5\u53e3\u3002<\/li>\n<li>\u4e3b\u8981\u5305\u542b<code>org.springframework.beans<\/code>\u5305\uff0c\u5305\u62ecBeanFactory\u3001BeanDefinition\u3001BeanWrapper\u7b49\u63a5\u53e3\u548c\u7c7b\uff0c\u7528\u4e8e\u5b9a\u4e49\u548c\u64cd\u4f5cBean\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Context\u6a21\u5757\uff1a<\/strong><\/p>\n<ul>\n<li>Context\u6a21\u5757\u662fSpring\u6846\u67b6\u7684\u4e0a\u4e0b\u6587\u6a21\u5757\uff0c\u5b83\u5efa\u7acb\u5728Beans\u6a21\u5757\u4e4b\u4e0a\uff0c\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7ea7\u522b\u7684\u7279\u6027\uff0c\u5982\u56fd\u9645\u5316\u3001\u4e8b\u4ef6\u4f20\u64ad\u3001\u8d44\u6e90\u52a0\u8f7d\u7b49\u3002<\/li>\n<li>\u4e3b\u8981\u5305\u542b<code>org.springframework.context<\/code>\u5305\uff0c\u5305\u62ecApplicationContext\u63a5\u53e3\u3001AbstractApplicationContext\u7c7b\u7b49\uff0c\u7528\u4e8e\u52a0\u8f7d\u548c\u7ba1\u7406Bean\uff0c\u540c\u65f6\u63d0\u4f9b\u4e86\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Expression Language\uff08EL\uff09\u6a21\u5757\uff1a<\/strong><\/p>\n<ul>\n<li>EL\u6a21\u5757\u662fSpring\u6846\u67b6\u4e2d\u7684\u8868\u8fbe\u5f0f\u8bed\u8a00\u6a21\u5757\uff0c\u5f15\u5165\u4e86\u7c7b\u4f3c\u4e8eJSP\u8868\u8fbe\u5f0f\u8bed\u8a00\u7684\u529f\u80fd\uff0c\u5141\u8bb8\u5728\u8fd0\u884c\u65f6\u64cd\u4f5c\u5bf9\u8c61\u56fe\u3001\u8c03\u7528\u65b9\u6cd5\u3001\u8fdb\u884c\u7b97\u672f\u548c\u903b\u8f91\u8fd0\u7b97\u7b49\u3002<\/li>\n<li>\u4e3b\u8981\u5305\u542b<code>org.springframework.expression<\/code>\u5305\uff0c\u5305\u62ecExpression\u63a5\u53e3\u3001ExpressionParser\u63a5\u53e3\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u8fd9\u4e9b\u6838\u5fc3\u5bb9\u5668\u6a21\u5757\u534f\u540c\u5de5\u4f5c\uff0c\u63d0\u4f9b\u4e86\u4e00\u5957\u5f3a\u5927\u800c\u7075\u6d3b\u7684\u6846\u67b6\uff0c\u652f\u6301\u5f00\u53d1\u4f01\u4e1a\u7ea7Java\u5e94\u7528\u7a0b\u5e8f\u3002Core\u548cBeans\u63d0\u4f9b\u4e86IoC\u548cDI\u7684\u57fa\u7840\u8bbe\u65bd\uff0cContext\u6a21\u5757\u589e\u52a0\u4e86\u66f4\u9ad8\u7ea7\u522b\u7684\u7279\u6027\uff0c\u800cEL\u6a21\u5757\u5219\u4e3aSpring\u8868\u8fbe\u5f0f\u8bed\u8a00\u63d0\u4f9b\u4e86\u652f\u6301\u3002\u5728\u6574\u4e2a\u6846\u67b6\u4e2d\uff0c\u8fd9\u4e9b\u6a21\u5757\u5171\u540c\u4fc3\u4f7f\u4e86Spring\u6846\u67b6\u7684\u6210\u529f\u5e94\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u662f\u7684\uff0cSpring\u6846\u67b6\u7684\u6838\u5fc3\u5bb9\u5668\u7531\u56db\u4e2a\u6a21\u5757\u7ec4\u6210\uff0c\u5206\u522b\u662fCore\u3001Beans\u3001Context\u548cExpressio [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[121],"tags":[],"class_list":["post-12243","post","type-post","status-publish","format-standard","hentry","category-spring"],"_links":{"self":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/12243","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=12243"}],"version-history":[{"count":2,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/12243\/revisions"}],"predecessor-version":[{"id":47873,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/12243\/revisions\/47873"}],"wp:attachment":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/media?parent=12243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/categories?post=12243"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/tags?post=12243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}