{"id":1916,"date":"2023-06-19T18:07:57","date_gmt":"2023-06-19T10:07:57","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=1916"},"modified":"2023-06-19T18:07:57","modified_gmt":"2023-06-19T10:07:57","slug":"spring%e4%b8%adbean%e7%9a%84%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring\/spring%e4%b8%adbean%e7%9a%84%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f\/","title":{"rendered":"Spring\u4e2dBean\u7684\u751f\u547d\u5468\u671f"},"content":{"rendered":"<div class='wxsyncmain'>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 1em;margin-bottom: 24px;font-weight: bold;font-size: 22px;white-space: normal;max-width: 100%;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;background: url(&quot;https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050115132.png&quot;) center center \/ 50px no-repeat rgb(255, 255, 255);color: black;text-align: center;visibility: visible;overflow-wrap: break-word !important;box-sizing: border-box !important;\"><span style=\"margin-top: 38px;margin-bottom: 10px;max-width: 100%;outline: 0px;display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;visibility: visible;font-size: 18px;overflow-wrap: break-word !important;box-sizing: border-box !important;\">Spring Bean\u7684\u751f\u547d\u5468\u671f<\/span><\/h2>\n<section style=\"white-space: normal;\"><span style=\"font-size: 15px;\">\u6211\u4eec\u5728\u5177\u4f53\u804aSpring Bean\u7684\u751f\u547d\u5468\u671f\u4e4b\u524d\uff0c\u6211\u4eec\u5148\u804a\u4e00\u4e2a\u6982\u5ff5\uff1aSpring Bean\u7684\u4f5c\u7528\u57df\u3002<span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u5b83\u662f\u4ec0\u4e48\uff1f\u80fd\u88ab\u7528\u6765\u5e72\u561b\uff1f\u4e0d\u61c2\u5c31\u67e5\u3002<\/span><\/span><\/section>\n<blockquote class=\"js_blockquote_wrap\" data-type=\"2\" data-url=\"\" data-author-name=\"\" data-content-utf8-length=\"113\" data-source-title=\"\">\n<section class=\"js_blockquote_digest\">\n<p><span style=\"font-size: 15px;\">Bean \u7684\u4f5c\u7528\u57df\u662f\u6307 Bean \u5728 Spring \u6574\u4e2a\u6846\u67b6\u4e2d\u7684\u67d0\u79cd\u884c\u4e3a\u6a21\u5f0f\u3002<\/span><\/p>\n<p><span style=\"font-size: 15px;\">\u6bd4\u5982 singleton \u5355\u4f8b\u4f5c\u7528\u57df\uff0c\u5c31\u8868\u793a Bean \u5728\u6574\u4e2a Spring \u4e2d\u53ea\u6709\u4e00\u4efd\uff0c\u5b83\u662f\u5168\u5c40\u5171\u4eab\u7684\uff0c\u5f53\u6709\u4eba\u4fee\u6539\u4e86\u8fd9\u4e2a\u503c\u4e4b\u540e\uff0c\u90a3\u4e48\u53e6\u4e00\u4e2a\u4eba\u8bfb\u53d6\u5230\u7684\u5c31\u662f\u88ab\u4fee\u6539\u540e\u7684\u503c\u3002<\/span><\/p>\n<\/section>\n<\/blockquote>\n<p><span style=\"font-size: 15px;\">Spring\u6846\u67b6\u652f\u6301\u4ee5\u4e0b\u4e94\u79cdBean\u7684\u4f5c\u7528\u57df\uff1a<\/span><\/p>\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: disc;\">\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: square;\">\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: circle;\">\n<li>\n<p><code style=\"padding: 2px 4px;white-space: normal;box-sizing: border-box;outline: 0px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;font-size: 14px;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);border-radius: 2px;overflow-wrap: break-word;\"><span style=\"font-size: 15px;\">singleton<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;: \u552f\u4e00 bean \u5b9e\u4f8b\uff0cSpring \u4e2d\u7684 bean \u9ed8\u8ba4\u90fd\u662f\u5355\u4f8b\u7684\u3002<\/span><\/p>\n<\/li>\n<li>\n<p><code style=\"padding: 2px 4px;white-space: normal;box-sizing: border-box;outline: 0px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;font-size: 14px;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);border-radius: 2px;overflow-wrap: break-word;\"><span style=\"font-size: 15px;\">prototype<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;: \u6bcf\u6b21\u8bf7\u6c42\u90fd\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 bean \u5b9e\u4f8b\u3002<\/span><\/p>\n<\/li>\n<li>\n<p><code style=\"box-sizing: border-box;outline: 0px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;font-size: 14px;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);border-radius: 2px;padding: 2px 4px;overflow-wrap: break-word;font-variant-ligatures: no-common-ligatures;text-align: left;white-space: normal;\"><span style=\"font-size: 15px;\">request<\/span><\/code><span style=\"color: rgba(0, 0, 0, 0.75);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: left;background-color: rgb(255, 255, 255);font-size: 15px;\">&nbsp;: \u6bcf\u4e00\u6b21 HTTP \u8bf7\u6c42\u90fd\u4f1a\u4ea7\u751f\u4e00\u4e2a\u65b0\u7684 bean\uff0c\u8be5 bean \u4ec5\u5728\u5f53\u524d HTTP request \u5185\u6709\u6548<\/span><\/p>\n<\/li>\n<li>\n<p><br  \/><\/p>\n<p><code style=\"box-sizing: border-box;outline: 0px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;font-size: 14px;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);border-radius: 2px;padding: 2px 4px;overflow-wrap: break-word;\"><span style=\"font-size: 15px;\">session<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;: \u6bcf\u4e00\u6b21 HTTP \u8bf7\u6c42\u90fd\u4f1a\u4ea7\u751f\u4e00\u4e2a\u65b0\u7684 bean\uff0c\u8be5 bean \u4ec5\u5728\u5f53\u524d HTTP session \u5185\u6709\u6548\u3002<\/span><\/p>\n<\/li>\n<li style=\"font-size: 15px;\">\n<p><span style=\"font-size: 15px;\"><span style=\"color: rgb(199, 37, 78);font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: left;background-color: rgb(249, 242, 244);\">global-session<\/span>\uff1a<span style=\"color: rgba(0, 0, 0, 0.75);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: left;background-color: rgb(255, 255, 255);\">\u5728\u4e00\u4e2a\u5168\u5c40\u7684HTTP Session\u4e2d\uff0c\u4e00\u4e2abean\u5b9a\u4e49\u5bf9\u5e94\u4e00\u4e2a\u5b9e\u4f8b\u3002\u8be5\u4f5c\u7528\u57df\u4ec5\u5728\u57fa\u4e8eweb\u7684Spring ApplicationContext\u60c5\u5f62\u4e0b\u6709\u6548\u3002\u7f3a\u7701\u7684Spring bean \u7684\u4f5c\u7528\u57df\u662fSingleton\u3002<\/span><\/span><\/p>\n<p><br  \/><\/p>\n<\/li>\n<\/ul>\n<p><br  \/><\/p>\n<\/ul>\n<\/ul>\n<section style=\"white-space: normal;\"><span style=\"font-size: 15px;\"><span style=\"color: rgba(0, 0, 0, 0.75);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: left;background-color: rgb(255, 255, 255);\">\u800c\u6211\u4eec\u4eca\u5929\u8981\u804a\u7684Spring Bean\u7684\u751f\u547d\u5468\u671f\uff0c\u4e3b\u8981\u662f\u6307&nbsp;<\/span><strong style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;white-space: normal;\"><span style=\"color: rgb(255, 0, 0);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: left;background-color: rgb(255, 255, 255);\">singleton bean\u3002<\/span><\/strong><\/span><\/section>\n<section style=\"white-space: normal;\"><span style=\"font-size: 15px;\"><strong>\u90a3\u4ec0\u4e48\u662fSpring Bean\u7684\u751f\u547d\u5468\u671f\u5462\uff1f<\/strong><\/span><\/section>\n<section style=\"white-space: normal;\"><span style=\"color: rgb(40, 37, 37);font-size: 15px;\">\u5bf9\u4e8e\u666e\u901a\u7684 Java \u5bf9\u8c61\uff0c\u5f53 new \u7684\u65f6\u5019\u521b\u5efa\u5bf9\u8c61\uff0c\u7136\u540e\u8be5\u5bf9\u8c61\u5c31\u80fd\u591f\u4f7f\u7528\u4e86\u3002\u4e00\u65e6\u8be5\u5bf9\u8c61\u4e0d\u518d\u88ab\u4f7f\u7528\uff0c\u5219\u7531 Java \u81ea\u52a8\u8fdb\u884c\u5783\u573e\u56de\u6536\u3002<\/span><\/section>\n<section style=\"white-space: normal;\"><span style=\"font-size: 15px;\">\u90a3\u5b83\u7684\u751f\u547d\u5468\u671f\u5c31\u662f\uff1a\u5b9e\u4f8b\u5316\u3001\u4e0d\u88ab\u4f7f\u7528\u65f6\u88ab\u5783\u573e\u673a\u5236\u56de\u6536\u3002<\/span><\/section>\n<p style=\"white-space: normal;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(40, 37, 37);font-size: 15px;\">\u800c Spring \u4e2d\u7684\u5bf9\u8c61\u662f bean\uff0cbean \u548c\u666e\u901a\u7684 Java \u5bf9\u8c61\u6ca1\u4ec0\u4e48\u533a\u522b\uff0c\u53ea\u4e0d\u8fc7 Spring \u4e0d\u518d\u81ea\u5df1\u53bb new \u5bf9\u8c61\u4e86\uff0c\u800c\u662f\u7531 IOC \u5bb9\u5668\u53bb\u5e2e\u52a9\u6211\u4eec\u5b9e\u4f8b\u5316\u5bf9\u8c61\u5e76\u4e14\u7ba1\u7406\u5b83\uff0c\u6211\u4eec\u9700\u8981\u54ea\u4e2a\u5bf9\u8c61\uff0c\u53bb\u95ee IOC \u5bb9\u5668\u8981\u5373\u53ef\uff0cSpring Bean \u7684\u751f\u547d\u5468\u671f\u5b8c\u5168\u7531\u5bb9\u5668\u63a7\u5236\u3002<\/span><\/p>\n<p style=\"white-space: normal;\"><span style=\"font-size: 15px;\"><strong><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(255, 0, 0);\">\u5b83\u5206\u4e3a\u56db\u4e2a\u9636\u6bb5\uff1a<\/span><\/strong><span style=\"color: rgb(255, 0, 0);\"><strong><span style=\"color: rgb(255, 0, 0);font-variant-ligatures: no-common-ligatures;text-align: start;letter-spacing: normal;text-decoration: none solid rgb(40, 37, 37);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u5b9e\u4f8b\u5316 -&gt; \u5c5e\u6027\u8d4b\u503c -&gt; \u521d\u59cb\u5316 -&gt; \u9500\u6bc1<\/span><\/strong><\/span><\/span><\/p>\n<section style=\"white-space: normal;line-height: normal;\"><span style=\"font-size: 15px;\">&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(40, 37, 37);\">1\uff09\u5b9e\u4f8b\u5316&nbsp;<span style=\"color: rgba(0, 0, 0, 0.75);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: left;background-color: rgb(255, 255, 255);\">Instantiation<\/span><br  \/><\/span><\/span><\/section>\n<section style=\"white-space: normal;line-height: normal;\"><span style=\"font-size: 15px;\">&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(40, 37, 37);\">2\uff09\u5c5e\u6027\u8d4b\u503c&nbsp;<span style=\"color: rgba(0, 0, 0, 0.75);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: left;background-color: rgb(255, 255, 255);\">Populate<\/span><br  \/><\/span><\/span><\/section>\n<section style=\"white-space: normal;line-height: normal;\"><span style=\"font-size: 15px;\">&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(40, 37, 37);\">3\uff09\u521d\u59cb\u5316&nbsp;<span style=\"color: rgba(0, 0, 0, 0.75);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: left;background-color: rgb(255, 255, 255);\">Initialization<\/span><br  \/><\/span><\/span><\/section>\n<section style=\"white-space: normal;line-height: normal;\"><span style=\"font-size: 15px;\">&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(40, 37, 37);\">4\uff09\u9500\u6bc1&nbsp;<span style=\"color: rgba(0, 0, 0, 0.75);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: left;background-color: rgb(255, 255, 255);\">Destruction<\/span><\/span><\/span><\/section>\n<section style=\"white-space: normal;\"><span style=\"font-size: 15px;\">\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u7ed3\u5408\u6e90\u7801\u6765\u5bf9Bean\u7684\u751f\u547d\u5468\u671f\u8fd9\u4e2a\u8fc7\u7a0b\u8fdb\u884c\u63a2\u7a76\u3002<\/span><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"sql\"><code><span class=\"code-snippet_outer\"><span style=\"font-size: 15px;\">org.springframework.context.support.AbstractApplicationContext.refresh()<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span style=\"font-size: 15px;\">--&gt; org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization \/\/ \u521d\u59cb\u5316bean\uff08\u5ef6\u8fdf\u52a0\u8f7d\u9664\u5916\uff09<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span style=\"font-size: 15px;\">--&gt; org.springframework.beans.factory.config.ConfigurableListableBeanFactory.preInstantiateSingletons()<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span style=\"font-size: 15px;\">--&gt; org.springframework.beans.factory.support.AbstractBeanFactory.getBean<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span style=\"font-size: 15px;\">--&gt; org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span style=\"font-size: 15px;\">--&gt; org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean \/\/ \u521b\u5efa bean\uff08\u5b9e\u4f8b\u5316 bean\uff09<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span style=\"font-size: 15px;\">--&gt; org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean<\/span><\/span><\/code><\/pre>\n<\/section>\n<section style=\"white-space: normal;\"><br  \/><\/section>\n<section style=\"white-space: normal;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(255, 0, 0);\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">Spring Bean\u7684\u521d\u59cb\u5316<\/span><span style=\"font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: start;background-color: rgb(255, 255, 255);\">\u662f\u5728Spring \u5bb9\u5668 refresh() \u65f6\u8fdb\u884c\u7684\uff0cSpring \u5bb9\u5668 refresh \u65f6\u4f1a\u8c03\u7528 finishBeanFactoryInitialization() \u6765\u521d\u59cb\u5316\u6240\u6709\u975e\u5ef6\u8fdf\u52a0\u8f7d\u7684 bean<\/span><\/span><span style=\"color: rgb(77, 77, 77);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: start;background-color: rgb(255, 255, 255);\">\u3002<\/span><br  \/><\/span><\/section>\n<section style=\"white-space: normal;\"><span style=\"color: rgb(77, 77, 77);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: start;background-color: rgb(255, 255, 255);font-size: 15px;\">\u6211\u4eec\u542f\u52a8\u672c\u5730\u9879\u76ee\uff0c\u5728\u4e0a\u8ff0\u5c42\u7ea7\u7ed3\u6784\u4e0a\u6253\u4e0a\u7aef\u70b9\uff0c\u7ed3\u5408\u6e90\u7801\uff0c\u6211\u4eec\u6765\u770b\u4e0bBean\u7684\u521b\u5efa\u8fc7\u7a0b\u3002<\/span><\/section>\n<section style=\"white-space: normal;\"><span style=\"font-size: 15px;background-color: rgb(255, 255, 255);color: rgb(77, 77, 77);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: start;\">\u4f60\u4f1a\u53d1\u73b0\uff0c\u5728\u771f\u6b63createBean\u4e4b\u524d\uff0c\u8fd8\u6709\u4e00\u4e2a\u65b9\u6cd5doGetBean\uff0c\u5b83\u662f\u5e72\u561b\u7684\uff1f<\/span><\/section>\n<section style=\"white-space: normal;\"><span style=\"background-color: rgb(255, 255, 255);color: rgb(77, 77, 77);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: start;font-size: 15px;\">\u6211\u4eec\u8fdb\u4e00\u6b65\u6df1\u5165\u5206\u6790\u770b\u4e0b\uff1a<\/span><\/section>\n<section style=\"white-space: normal;\"><span style=\"font-size: 15px;\"><strong style=\"font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-size: 15px;font-variant-ligatures: no-common-ligatures;text-align: start;color: rgb(0, 0, 0);\"><span style=\"white-space: pre-wrap;font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-style: italic;text-decoration-style: solid;text-decoration-color: rgb(61, 167, 66);\">1\u3001doGetBean<\/span>&nbsp;\u83b7\u53d6Bean<\/strong><\/span><\/section>\n<section style=\"text-align: start;\"><br  \/><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-ratio=\"0.5668449197860963\" data-s=\"300,640\"  data-type=\"png\" data-w=\"748\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050050914.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.5668449197860963\" data-s=\"300,640\"  data-type=\"png\" data-w=\"748\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050050914.png\"  \/><\/noscript><\/p>\n<section style=\"text-align: start;\"><span style=\"font-size: 15px;\">\u4ee5\u4e0adoGetBean\u65b9\u6cd5\u7b80\u5355\u7684\u6d41\u7a0b\u56fe\uff0c\u7ed3\u5408\u6e90\u7801\u5177\u4f53\u8bf4\u660e\u5982\u4e0b\uff1a<\/span><\/section>\n<p style=\"text-align: start;margin-bottom: 16px;\"><span style=\"font-size: 15px;\">1\u3001\u83b7\u53d6\u771f\u6b63\u7684BeanName\uff1a\u65b9\u6cd5<strong>transformedBeanName()<\/strong><\/span><\/p>\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: disc;\">\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: square;\">\n<section style=\"line-height: 1.6em;text-align: left;margin: 0px 0px 16px;text-indent: 0em;\"><span style=\"color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);font-size: 15px;\">\u53c2\u6570 name\uff0c\u4e0d\u4e00\u5b9a\u662f beanName\uff0c\u53ef\u80fd\u662f aliasName\uff0c\u4e5f\u6709\u53ef\u80fd\u662f FactoryBean(\u5e26\u201c&amp;\u201d\u524d\u7f00)\uff0c\u6240\u4ee5\u8fd9\u91cc\u9700\u8981\u8c03\u7528 transformedBeanName()\u65b9\u6cd5\u5bf9 name \u8fdb\u884c\u4e00\u756a\u8f6c\u6362\u3002<\/span><\/section>\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: circle;\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.6em;text-align: left;margin: 0px 0px 16px;text-indent: 0em;\"><span style=\"color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);font-size: 15px;\">\u53bb\u9664 FactoryBean \u7684\u4fee\u9970\u7b26\u3002\u5982\u679c name \u4ee5 \u201c&amp;\u201d \u4e3a\u524d\u7f00\uff0c\u90a3\u4e48\u4f1a\u53bb\u6389\u8be5 \u201c&amp;\u201d\uff0c\u4f8b\u5982\uff0cname = \"&amp;amp;studentService\"\uff0c\u5219\u4f1a\u662f name = \"studentService<\/span><\/section>\n<\/li>\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.6em;text-align: left;margin: 0px;text-indent: 0em;\"><span style=\"color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none;font-size: 15px;\">canonicalName\u65b9\u6cd5\uff1a\u53d6\u6307\u5b9a\u7684 alias \u6240\u8868\u793a\u7684\u6700\u7ec8 beanName\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"line-height: 1.6em;text-align: left;margin: 0px;text-indent: 0em;\"><br  \/><\/section>\n<section style=\"line-height: 1.6em;text-align: left;margin: 0px 0px 24px;text-indent: 0em;\"><br  \/><\/section>\n<\/ul>\n<\/ul>\n<p style=\"text-align: start;margin-bottom: 24px;\"><span style=\"font-size: 15px;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;text-align: start;\">&nbsp; &nbsp; &nbsp; &nbsp;\u8fd9\u91cc\u5f15\u5165\u4e00\u4e2a\u6269\u5c55\u70b9\uff0cBean\u7684alias\u662f\u5982\u4f55\u751f\u6210\uff1fkey\u4e3a\u522b\u540d\u3001value\u662fbeanName<\/span>&nbsp; \uff0c\u800cbeanName\u7684\u8bbe\u7f6e\uff0c\u6e90\u7801\u5982\u4e0b\uff1a&nbsp;<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-ratio=\"0.1712962962962963\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050051294.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.1712962962962963\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050051294.png\"  \/><\/noscript><\/p>\n<section style=\"text-align: start;margin-bottom: 16px;\"><span style=\"font-size: 15px;\">\u5982\u679c\u7c7bwhiteApple\u7684Bean \u5b58\u5728 \u522b\u540d\uff1awhiteApple3\u3001<span style=\"text-align: start;\">whiteApple2\u3001<span style=\"text-align: start;\">whiteApple1<\/span><\/span><br  \/><\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-ratio=\"0.2623574144486692\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1052\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050053699.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.2623574144486692\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1052\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050053699.png\"  \/><\/noscript><\/p>\n<p style=\"text-align: start;margin-bottom: 24px;\"><span style=\"font-size: 15px;\">\u90a3\u4e48<span style=\"text-align: left;\">alias\u6700\u7ec8\u4f1a\u662f\uff1a{\"<span style=\"text-align: start;\">whiteApple3<\/span>\":\"<span style=\"text-align: start;\">whiteApple2<\/span>\"}&nbsp;<span style=\"text-align: left;\">{\"<\/span><span style=\"text-align: start;\">whiteApple3<\/span><span style=\"text-align: left;\">\":\"<\/span><span style=\"text-align: start;\">whiteApple1<\/span><span style=\"text-align: left;\">\"}<\/span><\/span><\/span><\/p>\n<p style=\"text-align: start;margin-bottom: 24px;\"><span style=\"font-size: 15px;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">2\u3001\u83b7\u53d6\u7f13\u5b58\u4e2d\u7684\u5355\u4f8b\uff1a<\/span><strong style=\"font-size: 15px;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">getSingleton()<\/strong><br  \/><\/span><\/p>\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: disc;\">\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: square;\">\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: circle;\">\n<li style=\"font-size: 15px;\">\n<section style=\"text-align: start;\"><span style=\"font-size: 15px;\">\u5982\u679c\u5728\u7f13\u5b58\u4e2d\u53ef\u4ee5\u5355\u4f8b\uff0c&nbsp;<span style=\"font-family: Avenir, -apple-system-font, \u5fae\u8f6f\u96c5\u9ed1, sans-serif;text-align: start;white-space: pre-line;widows: 1;color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);\">\u6709\u5219\u8fdb\u4e00\u6b65\u5224\u65ad\u8fd9\u4e2aBean\u662f\u4e0d\u662f\u5728\u521b\u5efa\u4e2d\uff0c\u5982\u679c\u662f\u7684\u5c31\u7b49\u5f85\u521b\u5efa\u5b8c\u6bd5\uff0c\u5426\u5219\u76f4\u63a5<\/span>\u8c03\u7528<strong>getObjectForBeanInstance<\/strong>()\u65b9\u6cd5\u8fd4\u56de<\/span><\/section>\n<\/li>\n<li style=\"font-size: 15px;\">\n<section style=\"text-align: start;\"><span style=\"font-size: 15px;\">\u5982\u679c\u5728\u7f13\u5b58\u4e2d\u672a\u5b58\u5728\u5355\u4f8b\uff0c\u5219\u7ee7\u7eed\u4e0b\u4e00\u6b65<\/span><\/section>\n<section style=\"text-align: start;\"><br  \/><\/section>\n<\/li>\n<\/ul>\n<\/ul>\n<\/ul>\n<section style=\"text-align: start;\"><span style=\"font-size: 15px;\">3\u3001<strong><span style=\"white-space: pre-wrap;color: rgb(56, 58, 66);font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;text-align: left;background-color: rgb(250, 250, 250);\">isPrototypeCurrentlyInCreation<\/span><\/strong><span style=\"white-space: pre-wrap;color: rgb(56, 58, 66);font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;text-align: left;background-color: rgb(250, 250, 250);\">\u65b9\u6cd5\uff1a\u5982\u679cscope\u662fprototype \u5e76\u4e14\u8fd8\u5728\u521b\u5efa\u4e2d\uff0c\u76f4\u63a5\u629b\u51fa\u5f02\u5e38<\/span><\/span><\/section>\n<section style=\"text-align: start;\"><span style=\"white-space: pre-wrap;color: rgb(56, 58, 66);font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;text-align: left;background-color: rgb(250, 250, 250);font-size: 15px;\">4\u3001<strong>getParentBeanFactory<\/strong>() \u83b7\u53d6\u5f53\u524dBeanFactory\u7684parentBeanFactory<\/span><\/section>\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: disc;\">\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: square;\">\n<ul class=\"list-paddingleft-1\" style=\"list-style-type: circle;\">\n<li style=\"font-size: 15px;\">\n<section style=\"text-align: start;\"><span style=\"white-space: pre-wrap;color: rgb(56, 58, 66);font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;text-align: left;background-color: rgb(250, 250, 250);font-size: 15px;\">parentBeanFactory\u4e0d\u4e3a\u7a7a\uff0c\u5e76\u4e14<span style=\"white-space: pre-wrap;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;text-align: left;color: rgb(56, 58, 66);background-color: rgb(250, 250, 250);letter-spacing: normal;text-decoration: none solid rgb(56, 58, 66);\">containsBeanDefinition(beanName)<\/span> \u4e3afalse \u5219\u8c03\u7528parentBeanFactory.doGetBean \u8fd4\u56deBean<\/span><\/section>\n<\/li>\n<li style=\"font-size: 15px;\">\n<p style=\"text-align: start;margin-bottom: 24px;\"><span style=\"white-space: pre-wrap;color: rgb(56, 58, 66);font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;text-align: left;background-color: rgb(250, 250, 250);font-size: 15px;\">\u53cd\u4e4b \u7ee7\u7eed\u4e0b\u4e00\u6b65<br  \/><\/span><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<\/ul>\n<p style=\"text-align: start;margin-bottom: 24px;\"><span style=\"font-size: 15px;\"><span style=\"background-color: rgb(250, 250, 250);color: rgb(56, 58, 66);font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;white-space: pre-wrap;\">5\u3001<\/span><strong><span style=\"white-space: pre-wrap;color: rgb(56, 58, 66);font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;text-align: left;background-color: rgb(250, 250, 250);\">getMergedLocalBeanDefinition<\/span><\/strong><span style=\"background-color: rgb(250, 250, 250);color: rgb(56, 58, 66);font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;white-space: pre-wrap;\">() <span style=\"white-space: pre-wrap;color: rgb(56, 58, 66);font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;text-align: left;background-color: rgb(250, 250, 250);\">\u5c06\u7236\u7c7b\u7684BeanDefinition\u4e0e\u5b50\u7c7b\u7684BeanDefinition\u8fdb\u884c\u5408\u5e76\u8986\u76d6<\/span><\/span><br  \/><\/span><\/p>\n<p style=\"text-align: start;margin-bottom: 24px;\"><span style=\"text-align: left;background-color: rgb(250, 250, 250);color: rgb(56, 58, 66);font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;white-space: pre-wrap;font-size: 15px;\">6\u3001\u5982\u679cBean\u662f\u5355\u4f8b\uff08singleton\uff09\uff0c\u5219\u8c03\u7528<strong>createBean() <\/strong>\u521b\u5efabean<\/span><\/p>\n<p><span style=\"font-size: 15px;\">\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u7ee7\u7eed\u770b&nbsp;<span style=\"background-color: rgb(255, 255, 255);color: rgb(77, 77, 77);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: start;\">createBean\u3002<\/span><br  \/><\/span><\/p>\n<section style=\"text-align: start;\"><span style=\"background-color: rgb(255, 255, 255);color: rgb(77, 77, 77);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;font-size: 15px;\"><strong style=\"color: rgb(0, 0, 0);text-align: start;white-space: normal;\">2\u3001<strong><strong><span style=\"background-color: rgb(255, 255, 255);font-variant-ligatures: no-common-ligatures;white-space: pre-wrap;font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-style: italic;text-align: left;color: rgb(0, 0, 0);letter-spacing: normal;text-decoration: none solid rgb(61, 167, 66);\">doCreateBean<\/span> \u521b\u5efaBean<\/strong><\/strong><\/strong><\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-ratio=\"0.7351851851851852\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050055643.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.7351851851851852\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050055643.png\"  \/><\/noscript><\/p>\n<section style=\"text-align: start;white-space: normal;\"><span style=\"text-align: start;font-size: 15px;\">\u4ee5\u4e0adoCreateBean\u65b9\u6cd5\u7b80\u5355\u7684\u6d41\u7a0b\u56fe\uff0c\u7ed3\u5408\u6e90\u7801\u5177\u4f53\u8bf4\u660e\u5982\u4e0b\uff1a<\/span><\/section>\n<pre><section style=\"margin-bottom: 24px;\"><span style=\"font-size: 15px;\">1\u3001mbd.isSingleton() \u5224\u65ad\u662f\u5426\u662f\u5355\u4f8b\uff0c\u5982\u679c\u662f\uff0c\u5219\u9700\u8981\u5728\u7f13\u5b58<span style=\"font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;;text-align: start;white-space: pre-line;widows: 1;color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);\">factoryBeanInstanceCache \u4e2d\u628abeanName\u5bf9\u5e94\u7684\u6570\u636eremove\u6389\u3002<\/span><\/span><\/section><section style=\"margin-bottom: 24px;\"><span style=\"font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;;text-align: start;white-space: pre-line;widows: 1;color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);font-size: 15px;\">2\u3001BeanWrapper\u4e3a\u7a7a\u7684\u60c5\u51b5\u4e0b&nbsp;\u8c03\u7528createBeanInstance\u521b\u5efabean\u5b9e\u4f8b\u3002<\/span><\/section><ul class=\"list-paddingleft-1\" style=\"list-style-type: disc;\"><ul class=\"list-paddingleft-1\" style=\"list-style-type: square;\"><section style=\"margin-bottom: 24px;\"><br  \/><\/section><ul class=\"list-paddingleft-1\" style=\"list-style-type: circle;\"><li style=\"font-size: 15px;\"><section style=\"margin-bottom: 24px;\"><span style=\"font-variant-ligatures: no-common-ligatures;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;;text-align: start;white-space: pre-line;widows: 1;color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);font-size: 15px;\">\u5982\u679c\u662f@Bean\u65b9\u5f0f\u58f0\u660ebean\u7684\u521b\u5efa<span style=\"color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);text-align: start;widows: 1;font-variant-ligatures: no-common-ligatures;white-space: pre-wrap;font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;\">\uff0c\u8be6\u89c1<span style=\"font-variant-ligatures: no-common-ligatures;text-align: start;white-space: pre-line;widows: 1;letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);color: rgb(199, 37, 78);font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;background-color: rgb(249, 242, 244);\">createBeanInstance \u2013 <\/span><\/span><span style=\"font-variant-ligatures: no-common-ligatures;text-align: start;widows: 1;letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);white-space: pre-wrap;text-indent: 0em;background-color: rgb(249, 242, 244);color: rgb(199, 37, 78);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">instantiateUsingFactoryMethod <\/span><span style=\"font-variant-ligatures: no-common-ligatures;text-align: start;widows: 1;letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);white-space: pre-wrap;text-indent: 0em;background-color: rgb(249, 242, 244);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(0, 0, 0);\">\u65b9\u6cd5\u3002<\/span><\/span><\/section><\/li><li><section style=\"margin-bottom: 24px;\"><span style=\"font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;;text-align: start;white-space: pre-line;widows: 1;text-decoration-style: solid;text-decoration-color: rgb(51, 51, 51);font-size: 15px;\">bean\u5982\u679c\u6ca1\u6709\u6709\u53c2\u6784\u9020\u5668\uff0c<span style=\"text-align: start;white-space: pre-line;widows: 1;font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-decoration-style: solid;text-decoration-color: rgb(51, 51, 51);\">\u9ed8\u8ba4\u4f7f\u7528\u65e0\u53c2\u7684\u6784\u9020\u65b9\u6cd5\u53cd\u5c04\u521b\u5efa\u5b9e\u4f8b\uff0c\u8be6\u60c5\u89c1<\/span><span style=\"font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;;text-align: start;white-space: pre-line;widows: 1;text-decoration-style: solid;text-decoration-color: rgb(51, 51, 51);color: rgb(255, 0, 0);\"><code style=\"padding: 2px 4px;box-sizing: border-box;outline: 0px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;font-size: 14px;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);border-radius: 2px;overflow-wrap: break-word;font-variant-ligatures: no-common-ligatures;white-space: normal;\">createBeanInstance \u2013 instantiateBean<\/code><\/span><\/span><span style=\"font-variant-ligatures: no-common-ligatures;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;;text-align: start;white-space: pre-line;widows: 1;text-decoration-style: solid;text-decoration-color: rgb(51, 51, 51);font-size: 15px;\">\u65b9\u6cd5\u3002<\/span><\/section><\/li><ul class=\"list-paddingleft-1\" style=\"list-style-type: disc;\"><li style=\"font-size: 15px;\"><section style=\"margin-bottom: 24px;\"><span style=\"font-size: 15px;\"><span style=\"text-decoration-style: solid;text-decoration-color: rgb(51, 51, 51);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: start;white-space: pre-line;widows: 1;\">\u9ed8\u8ba4\u4f7f\u7528\u65e0\u53c2\u7684\u6784\u9020\u65b9\u6cd5\uff1a<\/span><span style=\"text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(217, 33, 66);\">clazz.getDeclaredConstructor()<\/span><\/span><\/section><\/li><li style=\"font-size: 15px;\"><section style=\"margin-bottom: 24px;\"><span style=\"font-size: 15px;\">\u901a\u8fc7<span style=\"color: rgba(0, 0, 0, 0.9);font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);\">\u53cd\u5c04\u8c03\u7528\u6784\u9020\u5668\u521b\u5efa\u5bf9\u8c61<\/span><span style=\"letter-spacing: 0.544px;background-color: rgb(255, 255, 255);\">\uff1a<\/span><span style=\"color: rgb(217, 33, 66);\"><span style=\"text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">BeanUtils.<\/span><span style=\"text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-style: italic;\">instantiateClass<\/span><span style=\"text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">(constructorToUse) <\/span><\/span><span style=\"text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u5b9e\u4f8b\u5316\u5bf9\u8c61<\/span><\/span><\/section><\/li><\/ul><li><section style=\"margin-bottom: 24px;\"><span style=\"font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;;text-align: start;white-space: pre-line;widows: 1;color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);font-size: 15px;\"><span style=\"font-variant-ligatures: no-common-ligatures;text-align: start;widows: 1;color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);white-space: pre-wrap;font-family: monospace;\">bean\u5982\u679c\u6709\u552f\u4e00\u7684\u6709\u53c2\u6784\u9020\u5668\uff0c\u5e76\u4e14\u53c2\u6570\u80fd\u5728Spring\u5bb9\u5668\u4e2d\u627e\u5230\uff0c\u5219\u901a\u8fc7\u6709\u53c2\u6784\u9020\u5668\u53cd\u5c04\u3002<span style=\"text-align: start;white-space: pre-line;widows: 1;color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;\">\u8be6\u60c5\u89c1<\/span><\/span><span style=\"letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);font-variant-ligatures: no-common-ligatures;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;;text-align: start;white-space: pre-line;widows: 1;color: rgb(255, 0, 0);\"><code style=\"padding: 2px 4px;box-sizing: border-box;outline: 0px;font-family: &quot;Source Code Pro&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Ubuntu Mono&quot;, &quot;Anonymous Pro&quot;, &quot;Droid Sans Mono&quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, sans-serif;font-size: 14px;line-height: 22px;color: rgb(199, 37, 78);background-color: rgb(249, 242, 244);border-radius: 2px;overflow-wrap: break-word;white-space: normal;\">createBeanInstance \u2013 autowireConstructor<\/code><\/span><\/span><span style=\"font-variant-ligatures: no-common-ligatures;font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;;text-align: start;white-space: pre-line;widows: 1;color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);font-size: 15px;\">\u65b9\u6cd5\u3002<\/span><\/section><\/li><\/ul><p style=\"margin-bottom: 0px;\"><br  \/><\/p><\/ul><\/ul><p style=\"margin-bottom: 0px;\"><span style=\"font-size: 15px;\"><span style=\"font-family: consolas, menlo, courier, monospace, &quot;Microsoft Yahei&quot;;text-align: start;white-space: pre-line;widows: 1;text-decoration-style: solid;text-decoration-color: rgb(51, 51, 51);\">3\u3001<\/span><span style=\"white-space: pre-wrap;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">applyMergedBeanDefinitionPostProcessors\uff1aBean\u540e\u7f6e\u5904\u7406\u5668<\/span><\/span><\/p><ul class=\"list-paddingleft-1\" style=\"list-style-type: disc;\"><ul class=\"list-paddingleft-1\" style=\"list-style-type: square;\"><p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-ratio=\"0.1814814814814815\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050059503.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.1814814814814815\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050059503.png\"  \/><\/noscript><\/p><section style=\"margin-bottom: 24px;\"><span style=\"font-size: 15px;\">\u5728debug\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u53d1\u73b0\u4e86\u4e09\u4e2a\u540e\u7f6e\u5904\u7406\u5668\uff0c\u90a3\u4ed6\u4eec\u5206\u522b\u90fd\u5e72\u4ec0\u4e48\u4e86\u5462\uff1f<span style=\"color: rgb(217, 33, 66);\">\u6ce8\u89e3\u626b\u63cf<\/span><\/span><\/section><ul class=\"list-paddingleft-1\" style=\"list-style-type: disc;\"><li style=\"font-size: 15px;\"><section style=\"margin-bottom: 24px;\"><span style=\"font-family: &quot;Microsoft Yahei&quot;, \u5fae\u8f6f\u96c5\u9ed1, arial, \u5b8b\u4f53, sans-serif;text-align: left;background-color: rgb(255, 255, 255);font-size: 15px;\">CommonAnnotationBeanPostProcessor\uff1a\u8d1f\u8d23@PostConstruct\u3001@PreDestroy<\/span><\/section><\/li><li style=\"font-size: 15px;\"><section style=\"margin-bottom: 24px;\"><span style=\"font-family: &quot;Microsoft Yahei&quot;, \u5fae\u8f6f\u96c5\u9ed1, arial, \u5b8b\u4f53, sans-serif;text-align: left;background-color: rgb(255, 255, 255);font-size: 15px;\">AutowiredAnnotationBeanPostProcessor \uff1a@Autowired\u3001@Value<\/span><\/section><\/li><li style=\"font-size: 15px;\"><section style=\"margin-bottom: 24px;\"><span style=\"font-family: &quot;Microsoft Yahei&quot;, \u5fae\u8f6f\u96c5\u9ed1, arial, \u5b8b\u4f53, sans-serif;text-align: left;background-color: rgb(255, 255, 255);font-size: 15px;\">ApplicationListenerDetector \u6682\u4e0d\u5206\u6790<\/span><\/section><\/li><\/ul><section style=\"margin-bottom: 24px;\"><span style=\"font-family: &quot;Microsoft Yahei&quot;, \u5fae\u8f6f\u96c5\u9ed1, arial, \u5b8b\u4f53, sans-serif;text-align: left;background-color: rgb(255, 255, 255);font-size: 15px;\">\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/span><\/section><section style=\"margin-bottom: 24px;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-ratio=\"0.7111111111111111\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"text-align: center;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 17px;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050102224.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.7111111111111111\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"text-align: center;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 17px;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050102224.png\"  \/><\/noscript><br  \/><\/section><\/ul><\/ul><section style=\"margin-bottom: 24px;\"><span style=\"font-size: 15px;\"><span style=\"white-space: pre-wrap;\">  \u67e5\u5230\u6307\u5b9a\u7684\u6ce8\u89e3\u6ce8\u91ca\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\uff0c\u6700\u540e\u90fd\u5c01\u88c5\u5230<\/span><span style=\"white-space: pre-wrap;color: rgb(217, 33, 66);\">InjectionMetadata<\/span><span style=\"white-space: pre-wrap;\">\u8fd4\u56de\u3002<\/span><\/span><\/section><section style=\"margin-bottom: 24px;\"><span style=\"font-size: 15px;text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">4\u3001\u5982\u679c<span style=\"color: rgb(51, 51, 51);white-space: pre-wrap;letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);\">earlySingletonExposure\u4e3atrue\uff0c\u8c03\u7528<span style=\"white-space: pre-wrap;\">addSingletonFactory\u7f13\u5b58\u6570\u636e\u3002\u54c8\u54c8\u54c8\u54c8\u54c8\u54c8\u54c8\u54c8\u54c8\u54c8\u54c8\u54c8\u54c8<\/span><\/span><\/span><\/section><ul class=\"list-paddingleft-1\" style=\"list-style-type: disc;\"><ul class=\"list-paddingleft-1\" style=\"list-style-type: square;\"><ul class=\"list-paddingleft-1\" style=\"list-style-type: circle;\"><li style=\"font-size: 15px;\"><section style=\"margin-bottom: 24px;\"><span style=\"font-size: 15px;\"><span style=\"white-space: pre-wrap;\">\u4e3a\u4e86<\/span><span style=\"white-space: pre-wrap;color: rgb(217, 33, 66);\">\u89e3\u51b3\u5faa\u73af\u5f15\u7528<\/span><span style=\"white-space: pre-wrap;\">\u95ee\u9898\uff0c\u540e\u7eed\u5728\u5355\u5199\u7ae0\u8282\u804a\u8fd9\u4e2a\u70b9\u3002<\/span><\/span><\/section><\/li><\/ul><\/ul><\/ul><p style=\"margin-bottom: 16px;\"><span style=\"color: rgb(51, 51, 51);white-space: pre-wrap;letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;\">5\u3001\u8c03\u7528populateBean\u65b9\u6cd5\u8fdb\u884c\u5c5e\u6027\u8d4b\u503c<\/span><\/p><ul class=\"list-paddingleft-1\" style=\"list-style-type: disc;\"><ul class=\"list-paddingleft-1\" style=\"list-style-type: square;\"><ul class=\"list-paddingleft-1\" style=\"list-style-type: circle;\"><li style=\"font-size: 15px;\"><p style=\"margin-bottom: 16px;\"><span style=\"color: rgb(51, 51, 51);white-space: pre-wrap;letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;\"><span style=\"color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);text-indent: 0em;white-space: pre-wrap;font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: start;\">\u56e0\u4e3a\u6b65\u9aa43\u4e2d<\/span><span style=\"color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);text-indent: 0em;font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: start;white-space: pre-wrap;\">applyMergedBeanDefinitionPostProcessors\u65b9\u6cd5\u4e2d\uff0c\u5df2\u7ecf\u5b8c\u6210\u4e86\u5c5e\u6027\u6570\u636e\u7684\u89e3\u6790\uff0c\u5f53\u524d\u6b64\u65b9\u6cd5\u76f4\u63a5\u83b7\u53d6\u5c01\u88c5\u597d\u7684\u6570\u636e\uff0c\u8fdb\u884c\u5904\u7406\u5373\u53ef\u3002<\/span><\/span><\/p><\/li><\/ul><section style=\"margin-bottom: 24px;\"><span style=\"font-size: 15px;\"><span style=\"font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;font-variant-ligatures: no-common-ligatures;text-align: start;color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none;white-space: pre-wrap;\">\u4f8b\u5982\uff1aCommonAnnotationBeanPostProcessor.<\/span><span style=\"text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">postProcessProperties()<\/span><\/span><\/section><section data-mpa-preserve-tpl-color=\"t\" data-mpa-template=\"t\" mpa-preserve=\"t\" mpa-from-tpl=\"t\"><pre style=\"margin:0;padding:0;border-radius:none;background:none;\"><p style=\"border-radius: 4px;font-size: 0.85em;margin: 0px 0.15em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 5.95px;overflow-x: auto;white-space: nowrap;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 43px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">public<\/span>&nbsp;PropertyValues postProcessProperties(PropertyValues pvs, <span style=\"color: rgb(230, 192, 123);background: rgba(0, 0, 0, 0);display: inline;width: 43px;text-decoration: none solid rgb(230, 192, 123);font-weight: 400;font-style: normal;\">Object<\/span>&nbsp;bean, <span style=\"color: rgb(230, 192, 123);background: rgba(0, 0, 0, 0);display: inline;width: 43px;text-decoration: none solid rgb(230, 192, 123);font-weight: 400;font-style: normal;\">String<\/span>&nbsp;beanName) {<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(92, 99, 112);background: rgba(0, 0, 0, 0);display: inline;width: 170px;text-decoration: none solid rgb(92, 99, 112);font-weight: 400;font-style: italic;\">\/\/\u83b7\u53d6\u7c7b\u4e2d\u5c01\u88c5\u597d\u7684\u5c5e\u6027\u5143\u6570\u636e<\/span><br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;InjectionMetadata metadata = <span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 29px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">this<\/span>.findResourceMetadata(beanName, bean.getClass(), pvs);<br mpa-from-tpl=\"t\"  \/><br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 22px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">try<\/span>&nbsp;{<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;metadata.inject(bean, beanName, pvs);<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 43px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">return<\/span>&nbsp;pvs;<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 36px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">catch<\/span>&nbsp;(Throwable var6) {<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 36px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">throw<\/span>&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 22px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">new<\/span>&nbsp;BeanCreationException(beanName, <span style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 311px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"Injection of resource dependencies failed\"<\/span>, var6);<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<\/span><\/p><\/pre>\n<\/section>\n<\/ul>\n<\/ul>\n<p style=\"margin-bottom: 0px;\"><span style=\"font-size: 15px;\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/p>\n<p style=\"margin-bottom: 24px;\"><span style=\"font-size: 15px;\"><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;text-indent: 0em;white-space: pre-wrap;\">6\u3001<span style=\"white-space: pre-wrap;\">\u8c03\u7528initializeBean\u65b9\u6cd5\u8fdb\u884c\u521d\u59cb\u5316<\/span><\/span><\/span><\/p>\n<section style=\"margin-bottom: 24px;\"><span style=\"color: rgb(51, 51, 51);white-space: pre-wrap;letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);text-indent: 0em;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;\">7\u3001bean\u7684\u9500\u6bc1\uff1a<span style=\"white-space: pre-wrap;text-indent: 0em;color: rgb(51, 51, 51);font-family: monospace;font-style: italic;letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);\">ConfigurableApplicationContext.close()<\/span><\/span><\/section>\n<section data-mpa-preserve-tpl-color=\"t\" data-mpa-template=\"t\" mpa-preserve=\"t\" mpa-from-tpl=\"t\">\n<pre style=\"margin:0;padding:0;border-radius:none;background:none;\"><code style=\"border-radius: 4px;font-size: 0.85em;margin: 0px 0.15em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 5.95px;overflow-x: auto;white-space: nowrap;\"><span style=\"font-size: 15px;\">&nbsp;&nbsp;<span style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 145px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\"><span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 43px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">public<\/span>&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 29px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">void<\/span>&nbsp;<span style=\"color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);display: inline;width: 36px;text-decoration: none solid rgb(97, 174, 238);font-weight: 400;font-style: normal;\">close<\/span><span style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 14px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">()<\/span>&nbsp;<\/span>{<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 87px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">synchronized<\/span>(<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 29px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">this<\/span>.startupShutdownMonitor) {<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 29px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">this<\/span>.doClose();<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 14px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">if<\/span>&nbsp;(<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 29px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">this<\/span>.shutdownHook != <span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 29px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">null<\/span>) {<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 22px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">try<\/span>&nbsp;{<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Runtime.getRuntime().removeShutdownHook(<span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 29px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">this<\/span>.shutdownHook);<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <span style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 36px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">catch<\/span>&nbsp;(IllegalStateException var4) {<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\"  \/><br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br mpa-from-tpl=\"t\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<\/span><\/code><\/pre>\n<\/section>\n<p><span style=\"font-size: 15px;\">8\u3001<span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u6269\u5c55\u70b9\uff1aBeanPostProcessor<\/span><\/span><\/p>\n<p><span style=\"font-size: 15px;\">\u6211\u4eec\u5728\u5b66\u4e60\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53d1\u73b0\u4e86\u5f88\u591a\u7ee7\u627fBeanPostProcessor\u7c7b\u7684\u5b50\u7c7b\uff0c<span style=\"font-family: system-ui, -apple-system, &quot;system-ui&quot;, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(51, 51, 51);letter-spacing: normal;text-decoration: none solid rgb(51, 51, 51);\">\u56e0\u4e3aspring bean\u5728\u521b\u5efa\u8fc7\u7a0b\u4e2d\u4e0d\u540c\u7684\u9636\u6bb5\u90fd\u4f1a\u56de\u8c03BeanPostProcessor\u7ec4\u4ef6\u7684\u65b9\u6cd5\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u8fbe\u5230\u6269\u5c55\u7684\u76ee\u7684\u3002\u56e0\u4e3a\u53ea\u8981\u4f60\u81ea\u5df1\u5b9e\u73b0\u4e86BeanPostProcessor\u7ec4\u4ef6\uff0c\u5c31\u53ef\u4ee5\u5728\u751f\u547d\u5468\u671f\u7684\u4e0d\u540c\u9636\u6bb5\u53ef\u4ee5\u5bf9\u4f60\u7684bean\u8fdb\u884c\u4e0d\u540c\u7684\u64cd\u4f5c\uff0c\u8fbe\u5230\u81ea\u5df1\u7684\u76ee\u7684\u3002<\/span><br  \/><\/span><\/p>\n<p><span style=\"font-size: 15px;\"><strong>\u4ee5\u4e0a\u7684\u5206\u6790\uff0c\u5e76\u6ca1\u6709\u5f88\u8be6\u7ec6\uff0c\u53ea\u662f\u63cf\u8ff0\u4e2a\u5927\u6982\uff0c\u6bcf\u4e00\u4e2a\u6b65\u9aa4\u7684\u65b9\u6cd5\u7684\u80cc\u540e\u9700\u8981\u6df1\u6316\u7684\u70b9\uff0c\u90fd\u6709\u5f88\u591a\uff0c\u611f\u5174\u8da3\u7684\u5c0f\u4f19\u4f34\uff0c\u53ef\u81ea\u884c\u67e5\u9605\u3002<\/strong><\/span><\/p>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 \u6280\u672f\u5c0f\u767d\u9006\u88ad\u6307\u5357              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>Spring Bean\u7684\u751f\u547d\u5468\u671f \u6211\u4eec\u5728\u5177\u4f53\u804aSpring Bean\u7684\u751f\u547d\u5468\u671f\u4e4b\u524d\uff0c\u6211\u4eec\u5148\u804a\u4e00\u4e2a\u6982\u5ff5\uff1aSpring Bean\u7684\u4f5c\u7528 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":1905,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-1916","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050047388-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050050914.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050047388-300x300.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050047388-1022x1024.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050050914.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050047388-300x300.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050047388-1022x1024.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050047388.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050050914.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050050914.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050051294.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050051294.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050053699.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050053699.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050055643.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050055643.png","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050059503.png","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050059503.png","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050102224.png","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528050102224.png","id":"image11"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring","post_date":"2023-06-19","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":255,"next_post_id":1955,"next_post_title":"Spring\uff1a\u5faa\u73af\u4f9d\u8d56\u95ee\u9898","previous_post_id":1923,"previous_post_title":"\u8be6\u89e3Spring Bean\u751f\u547d\u5468\u671f","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1916"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1916\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/1905"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}