{"id":768,"date":"2023-05-28T02:11:03","date_gmt":"2023-05-27T18:11:03","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=768"},"modified":"2023-05-28T02:11:03","modified_gmt":"2023-05-27T18:11:03","slug":"spring%e6%ba%90%e7%a0%81%e7%b3%bb%e5%88%97%ef%bc%9a%e6%a0%b8%e5%bf%83%e6%a6%82%e5%bf%b5%e8%a7%a3%e6%9e%90","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring%e6%ba%90%e7%a0%81%e7%b3%bb%e5%88%97%ef%bc%9a%e6%a0%b8%e5%bf%83%e6%a6%82%e5%bf%b5%e8%a7%a3%e6%9e%90\/","title":{"rendered":"Spring\u6e90\u7801\u7cfb\u5217\uff1a\u6838\u5fc3\u6982\u5ff5\u89e3\u6790"},"content":{"rendered":"<div class='wxsyncmain'>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-ratio=\"0.2777777777777778\"  data-type=\"gif\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020025876.gif\" 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.2777777777777778\"  data-type=\"gif\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020025876.gif\"  \/><\/noscript><\/p>\n<section label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"box-sizing: border-box;\">\n<section label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"box-sizing: border-box;\">\n<section label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin-top: 10px;margin-bottom: 10px;box-sizing: border-box;\">\n<section label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"box-sizing: border-box;text-align: center;\">\n<section label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"display: inline-block;vertical-align: top;padding: 8px 5px 5px 3px;width: 50%;box-sizing: border-box;border-right: 1px solid #a6bde7;\">\n<section style=\"box-sizing: border-box;\">\n<section label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin-top: 0.5em;margin-bottom: 0.5em;box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;width: 4em;height: 4em;display: inline-block;vertical-align: bottom;border-radius: 100%;font-family: PingfangSC-LIGHT,sans-serif;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020023404.jpeg');background-size: cover;background-position: 50% 50%;background-repeat: no-repeat;\"><br  \/><\/section>\n<p><span style=\"font-size: 14px;color: #a6bde7;line-height: 1.6;font-family: PingfangSC-LIGHT,sans-serif;\">JAVA \u5f00\u53d1\u5fae\u6307\u5357<\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<section label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"display: inline-block;vertical-align: top;padding: 6px;width: 50%;box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;border-width: 1px;border-style: solid;border-color: rgb(166, 189, 231);padding: 8px 5px;width: 120px;color: rgb(166, 189, 231);margin: auto;line-height: 20px;font-size: 14px;border-radius: 4px;\">\n<p>\u8bfb\u5b8c\u9700\u8981<\/p>\n<section style=\"font-size: 30px;color:#666;line-height: 32px;\">18<\/section>\n<p>\u5206\u949f<\/p>\n<p style=\"font-size: 11px;color:#aaa;padding-top:3px;\">\u901f\u8bfb\u4ec5\u9700 6 \u5206\u949f<\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(0, 0, 0);text-align: center;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingfangSC-Ultralight,sans-serif;\"><strong style=\"color:rgb(32, 91, 195);\">\/ <\/strong>\u524d\u8a00<strong style=\"color:rgb(32, 91, 195);\"> \/<\/strong><\/span><\/span><\/span><\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u672c\u6587\u65e8\u5728\u4e3a\u8bfb\u8005\u89e3\u6790 Spring \u6e90\u7801\u4e2d\u7684\u5173\u952e\u7c7b\uff0c\u4ee5\u4fbf\u8bfb\u8005\u5728\u6df1\u5165\u9605\u8bfb\u6e90\u7801\u65f6\uff0c\u80fd\u591f\u4e86\u89e3\u5173\u952e\u7c7b\u7684\u4f5c\u7528\u548c\u7528\u9014\u3002\u5728\u9605\u8bfb Spring \u6e90\u7801\u65f6\uff0c\u7ecf\u5e38\u4f1a\u9047\u5230\u4e00\u4e9b\u4e0d\u719f\u6089\u7684\u6982\u5ff5\uff0c\u4e86\u89e3\u5173\u952e\u7c7b\u7684\u4f5c\u7528\u53ef\u4ee5\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u8fd9\u4e9b\u6982\u5ff5\u3002<\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(0, 0, 0);text-align: center;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingfangSC-Ultralight,sans-serif;\"><strong style=\"color:rgb(32, 91, 195);\">\/ <\/strong>BeanDefinition<strong style=\"color:rgb(32, 91, 195);\"> \/<\/strong><\/span><\/span><\/span><\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">BeanDefinition \u662f Spring \u6846\u67b6\u4e2d\u7684\u4e00\u4e2a\u91cd\u8981\u6982\u5ff5\uff0c\u5b83\u5b9a\u4e49\u4e86\u4e00\u4e2a Bean \u7684\u57fa\u672c\u5c5e\u6027\u548c\u884c\u4e3a\uff0c\u6bd4\u5982\uff1a<\/span><\/p>\n<blockquote label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;white-space: normal;border-left-width: 5px;border-left-color: rgb(77, 124, 207);margin-left: 32px;margin-right: 30px;\">\n<ol label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" class=\"list-paddingleft-1\" style=\"width: 515.844px;max-width: 100%;color: rgb(77, 124, 207);line-height: 25.6px;font-family: PingfangSC-LIGHT, sans-serif;overflow-wrap: break-word !important;\">\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">BeanClassName\uff0c\u5f53\u524d\u7684 bean \u540d\u5b57<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">Scope\uff0c\u662f\u5426\u5355\u4f8b\uff0c\u5177\u4f53\u679a\u4e3e\uff1a#SCOPE_SINGLETON\u3001#SCOPE_PROTOTYPE<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">LazyInit\uff0c\u662f\u5426\u61d2\u52a0\u8f7d\uff0c\u9ed8\u8ba4\u4e0d\u662f<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">DependsOn\uff0c\u662f\u5426\u4f9d\u8d56\u5176\u4ed6 bean\uff0c\u5982\u679c\u4f9d\u8d56\uff0c\u5219\u4f1a\u5148\u521b\u5efa\u4f9d\u8d56 bean<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">InitMethodName\uff0c\u521d\u59cb\u5316\u65b9\u6cd5\u540d\u79f0<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">DestroyMethodName\uff0c\u9500\u6bc1\u7c7b\u65b9\u6cd5\u540d\u79f0<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">......\u8fd8\u6709\u66f4\u591a\uff0c\u4f46\u662f\u8fd9\u51e0\u4e2a\u5927\u4f53\u5df2\u7ecf\u5dee\u4e0d\u591a\u4e86<\/span><\/p>\n<\/li>\n<\/ol>\n<\/blockquote>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">BeanDefinition \u7684\u4f5c\u7528\u975e\u5e38\u91cd\u8981\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9 Spring \u5bb9\u5668\u66f4\u597d\u5730\u7ba1\u7406 Bean \u7684\u751f\u547d\u5468\u671f\u548c\u4f9d\u8d56\u5173\u7cfb\u3002\u5728 Spring \u6846\u67b6\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u4f1a\u901a\u8fc7\u6ce8\u89e3\u65b9\u5f0f\u6765\u5b9a\u4e49 Bean\uff1a<\/span><\/p>\n<blockquote label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;white-space: normal;border-left-width: 5px;border-left-color: rgb(77, 124, 207);margin-left: 32px;margin-right: 30px;\">\n<ol label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" class=\"list-paddingleft-1\" style=\"width: 515.844px;max-width: 100%;color: rgb(77, 124, 207);line-height: 25.6px;font-family: PingfangSC-LIGHT, sans-serif;overflow-wrap: break-word !important;\">\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">&lt; bean\/&gt;<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">@Bean<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">@Component(@Controller\u3001@Service)<\/span><\/p>\n<\/li>\n<\/ol>\n<\/blockquote>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u8fd9\u4e9b\u90fd\u662f\u88ab\u79f0\u4e3a\u7533\u660e\u5f0f\u5b9a\u4e49 Bean\u3002\u5c31\u662f\u4f7f\u7528 Spring \u63d0\u4f9b\u597d\u7684\u5c01\u88c5\u3002<\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u9664\u4e86\u6ce8\u89e3\u65b9\u5f0f\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7\u7f16\u7a0b\u65b9\u5f0f\u6765\u5b9a\u4e49 Bean\uff0c\u8fd9\u65f6\u5c31\u9700\u8981\u76f4\u63a5\u4f7f\u7528 BeanDefinition \u6765\u521b\u5efa BeanDefinition \u5bf9\u8c61\uff0c\u5e76\u8bbe\u7f6e\u5bf9\u5e94\u7684\u5c5e\u6027\uff0c\u7136\u540e\u5c06\u5176\u6ce8\u518c\u5230 Spring \u5bb9\u5668\u4e2d\uff0c\u6bd4\u5982<\/span><\/p>\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<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\">    \/\/ \u521b\u5efa\u4e00\u4e2aSpring\u5bb9\u5668<\/span><\/code><code><span class=\"code-snippet_outer\">        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">        AbstractBeanDefinition beanDefinition = BeanDefinitionBuilder.genericBeanDefinition().getBeanDefinition();<\/span><\/code><code><span class=\"code-snippet_outer\">        beanDefinition.setBeanClass(UserService.class);<\/span><\/code><code><span class=\"code-snippet_outer\">        \/\/\u5f53\u7136\u8fd8\u53ef\u4ee5\u8bbe\u7f6e\u5176\u4ed6\u4e0a\u9762\u6211\u8bf4\u7684\u5176\u4ed6\u5c5e\u6027\uff1a\u61d2\u52a0\u8f7d\u4ec0\u4e48\u7684<\/span><\/code><code><span class=\"code-snippet_outer\">        applicationContext.registerBeanDefinition(\"userService\", beanDefinition);<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">        UserService userService = (UserService) applicationContext.getBean(\"userService\");<\/span><\/code><code><span class=\"code-snippet_outer\">        userService.test();<\/span><\/code><\/pre>\n<\/section>\n<p><br  \/><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u65e0\u8bba\u662f\u901a\u8fc7\u6ce8\u89e3\u65b9\u5f0f\u8fd8\u662f\u7f16\u7a0b\u65b9\u5f0f\u6765\u5b9a\u4e49 Bean\uff0c\u6700\u7ec8\u90fd\u662f\u9700\u8981\u4f7f\u7528 BeanDefinition \u6765\u63cf\u8ff0 Bean \u7684\u57fa\u672c\u5c5e\u6027\u548c\u884c\u4e3a\uff0c\u7136\u540e\u5c06\u5176\u653e\u5165 Spring \u5bb9\u5668\u4e2d\u8fdb\u884c\u7ba1\u7406\u3002<\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(0, 0, 0);text-align: center;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingfangSC-Ultralight,sans-serif;\"><strong style=\"color:rgb(32, 91, 195);\">\/ <\/strong>BeanDefinitionReader<strong style=\"color:rgb(32, 91, 195);\"> \/<\/strong><\/span><\/span><\/span><\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">BeanDefinitionReader \u662f Spring \u6846\u67b6\u4e2d\u7684\u4e00\u4e2a\u91cd\u8981\u7ec4\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u8bfb\u53d6\u548c\u64cd\u4f5c BeanDefinition \u5bf9\u8c61\u3002\u867d\u7136\u6211\u4eec\u5728\u4f7f\u7528 Spring \u6846\u67b6\u65f6\u5f88\u5c11\u76f4\u63a5\u4f7f\u7528 BeanDefinitionReader\uff0c\u4f46\u5728 Spring \u6e90\u7801\u4e2d\u5374\u626e\u6f14\u7740\u975e\u5e38\u91cd\u8981\u7684\u89d2\u8272\uff0c\u76f8\u5f53\u4e8e Spring \u6e90\u7801\u7684\u57fa\u7840\u8bbe\u65bd\u3002<\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">BeanDefinitionReader \u7684\u6838\u5fc3\u65b9\u6cd5\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\uff1a<\/span><\/p>\n<blockquote label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;white-space: normal;border-left-width: 5px;border-left-color: rgb(77, 124, 207);margin-left: 32px;margin-right: 30px;\">\n<ol label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" class=\"list-paddingleft-1\" style=\"width: 515.844px;max-width: 100%;color: rgb(77, 124, 207);line-height: 25.6px;font-family: PingfangSC-LIGHT, sans-serif;overflow-wrap: break-word !important;\">\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">BeanDefinitionRegistry\uff0c\u7528\u6765\u6ce8\u518c bean \u5b9a\u4e49\uff0c\u76f8\u5f53\u4e8e\u4e00\u4e2a\u5de5\u5382<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">BeanNameGenerator\uff0c\u7528\u6765\u751f\u6210 bean \u540d\u5b57\u7684\u751f\u6210\u5668<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">loadBeanDefinitions\uff0c\u4ece\u8d44\u6e90\u4e2d\u52a0\u8f7d bean<\/span><\/p>\n<\/li>\n<\/ol>\n<\/blockquote>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(32, 91, 195);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><em style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 24px;box-sizing: border-box !important;padding-left:4px;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\">1<\/span><\/em><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br  \/><\/p>\n<h2 label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin-top: -10px;font-family: PingfangSC-LIGHT, sans-serif;line-height: 9px;color: white;border-radius: 10px;background-image: linear-gradient(to right, rgb(32, 91, 195) 10%, rgb(166, 189, 231) 10%);background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;\">&nbsp; &nbsp;<\/h2>\n<p style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\"><jncounttag><\/jncounttag>XmlBeanDefinitionReader<\/span><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">XmlBeanDefinitionReader \u662f BeanDefinitionReader \u7684\u5b50\u7c7b\uff0c\u53ef\u4ee5\u7528\u4e8e\u4ece XML \u6587\u4ef6\u4e2d\u8bfb\u53d6 BeanDefinition \u5e76\u6ce8\u518c\u5230 Spring \u5bb9\u5668\u4e2d\u3002\u4f7f\u7528 XmlBeanDefinitionReader \u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/span><\/p>\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<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\">AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);<\/span><\/code><code><span class=\"code-snippet_outer\">XmlBeanDefinitionReader xmlBeanDefinitionReader = new XmlBeanDefinitionReader(context);<\/span><\/code><code><span class=\"code-snippet_outer\">\/\/\u52a0\u8f7dxml\u4e2d\u914d\u7f6e\u7684\u6240\u6709&lt;bean&gt;<\/span><\/code><code><span class=\"code-snippet_outer\">int i = xmlBeanDefinitionReader.loadBeanDefinitions(\"spring.xml\");<\/span><\/code><code><span class=\"code-snippet_outer\">System.out.println(context.getBean(\"userService\"))<\/span><\/code><\/pre>\n<\/section>\n<p><br  \/><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(32, 91, 195);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><em style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 24px;box-sizing: border-box !important;padding-left:4px;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\">2<\/span><\/em><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br  \/><\/p>\n<h2 label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin-top: -10px;font-family: PingfangSC-LIGHT, sans-serif;line-height: 9px;color: white;border-radius: 10px;background-image: linear-gradient(to right, rgb(32, 91, 195) 20%, rgb(166, 189, 231) 10%);background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;\">&nbsp; &nbsp;<\/h2>\n<p style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\"><jncounttag><\/jncounttag>AnnotatedBeanDefinitionReader<\/span><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u7ec6\u5fc3\u7684\u670b\u53cb\uff0c\u5e94\u8be5\u53ef\u4ee5\u53d1\u73b0 AnnotatedBeanDefinitionReader \u662f\u4e00\u4e2a\u5355\u72ec\u7684\u7c7b\uff0c\u4e0d\u662f BeanDefinitionReader \u7684\u5b50\u7c7b\uff0c\u4f46\u5b83\u7684\u65b9\u6cd5\u4e0e BeanDefinitionReader \u57fa\u672c\u76f8\u540c\uff0c\u5b98\u65b9\u8bf4\u662f\u65b9\u4fbf\u7684\u9002\u914d\u5668\uff0c\u7528\u4e8e\u7f16\u7a0b\u6ce8\u518c bean \u7c7b\uff0c\u4ed6\u53ef\u4ee5\u89e3\u6790@Conditional\uff0c@Scope\u3001@Lazy\u3001@Primary\u3001@DependsOn\u3001@Role\u3001@Description \u76f8\u5173\u6ce8\u89e3\uff0c\u5177\u4f53\u64cd\u4f5c\u5982\u4e0b\uff1a<\/span><\/p>\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<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\">\/\/ \u521b\u5efa\u4e00\u4e2aSpring\u5bb9\u5668<\/span><\/code><code><span class=\"code-snippet_outer\">        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">\/\/        AbstractBeanDefinition beanDefinition = BeanDefinitionBuilder.genericBeanDefinition().getBeanDefinition();<\/span><\/code><code><span class=\"code-snippet_outer\">\/\/        beanDefinition.setBeanClass(UserService.class);<\/span><\/code><code><span class=\"code-snippet_outer\">\/\/        applicationContext.registerBeanDefinition(\"userService\", beanDefinition);<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">        new AnnotatedBeanDefinitionReader(applicationContext).registerBean(UserService.class);<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">        UserService userService = (UserService) applicationContext.getBean(\"userService\");<\/span><\/code><code><span class=\"code-snippet_outer\">        userService.test();<\/span><\/code><\/pre>\n<\/section>\n<p><br  \/><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u540c\u6837\u7684\uff0c\u4ed6\u4e5f\u53ef\u4ee5\u8ba9\u6211\u4eec\u6ce8\u518c\u7684 bean \u8d70\u5b8c\u521b\u5efa\u7684\u6574\u4e2a\u751f\u547d\u5468\u671f\u8fc7\u7a0b\u3002<\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(32, 91, 195);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><em style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 24px;box-sizing: border-box !important;padding-left:4px;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\">3<\/span><\/em><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br  \/><\/p>\n<h2 label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin-top: -10px;font-family: PingfangSC-LIGHT, sans-serif;line-height: 9px;color: white;border-radius: 10px;background-image: linear-gradient(to right, rgb(32, 91, 195) 30%, rgb(166, 189, 231) 10%);background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;\">&nbsp; &nbsp;<\/h2>\n<p style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\"><jncounttag><\/jncounttag>ClassPathBeanDefinitionScanner<\/span><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">ClassPathBeanDefinitionScanner \u4e5f\u662f\u4e00\u4e2a\u7528\u4e8e\u6ce8\u518c BeanDefinition \u7684\u5de5\u5177\u7c7b\uff0c\u4e0e BeanDefinition \u63a5\u53e3\u6ca1\u6709\u76f4\u63a5\u5173\u7cfb\u3002ClassPathBeanDefinitionScanner \u53ef\u4ee5\u626b\u63cf\u6307\u5b9a\u5305\u8def\u5f84\u4e0b\u5e26\u6709\u7279\u5b9a\u6ce8\u89e3\u7684\u7c7b\uff0c\u5e76\u5c06\u5176\u89e3\u6790\u6210 BeanDefinition\uff0c\u6ce8\u518c\u5230 Spring \u5bb9\u5668\u4e2d\u3002\u4e3b\u8981\u662f\u4ed6\u6709\u4e2a scan \u65b9\u6cd5\u5bf9\u6211\u4eec\u5b9a\u4e49\u7684 basepackage \u5305\u8def\u5f84\u8fdb\u884c\u89e3\u6790\u626b\u63cf\u6240\u6709\u5e26\u6709@component\u3001@ManagedBean\uff08JSR-250 \u6807\u51c6\uff09\u3001@Named\uff08JSR-330 \u6807\u51c6\uff09\u4f7f\u7528 ClassPathBeanDefinitionScanner \u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/span><\/p>\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<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\">\/\/ \u521b\u5efa\u4e00\u4e2aSpring\u5bb9\u5668  <\/span><\/code><code><span class=\"code-snippet_outer\">AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);  <\/span><\/code><code><span class=\"code-snippet_outer\">  <\/span><\/code><code><span class=\"code-snippet_outer\">new ClassPathBeanDefinitionScanner(applicationContext).scan(\"com.xiaoyu\");  <\/span><\/code><code><span class=\"code-snippet_outer\">UserService userService = (UserService) applicationContext.getBean(\"userService\");  <\/span><\/code><code><span class=\"code-snippet_outer\">userService.test();<\/span><\/code><\/pre>\n<\/section>\n<p><br  \/><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(0, 0, 0);text-align: center;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingfangSC-Ultralight,sans-serif;\"><strong style=\"color:rgb(32, 91, 195);\">\/ <\/strong>BeanFactory<strong style=\"color:rgb(32, 91, 195);\"> \/<\/strong><\/span><\/span><\/span><\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">BeanFactory \u662f Spring \u6846\u67b6\u4e2d\u7684\u4e00\u4e2a\u91cd\u8981\u63a5\u53e3\uff0c\u4ed6\u5c31\u662f Spring \u7528\u4e8e\u7ba1\u7406 Bean \u5bf9\u8c61\u7684\u521b\u5efa\u548c\u7ba1\u7406\uff0c\u770b\u4ed6\u7684\u51e0\u4e2a\u4e3b\u8981\u65b9\u6cd5\u5c31\u77e5\u9053\u4e86\uff1a<\/span><\/p>\n<blockquote label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;white-space: normal;border-left-width: 5px;border-left-color: rgb(77, 124, 207);margin-left: 32px;margin-right: 30px;\">\n<ol label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" class=\"list-paddingleft-1\" style=\"width: 515.844px;max-width: 100%;color: rgb(77, 124, 207);line-height: 25.6px;font-family: PingfangSC-LIGHT, sans-serif;overflow-wrap: break-word !important;\">\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">getBean\uff0c\u53ef\u4ee5\u6839\u636e name\u3001type \u7b49\u83b7\u53d6 bean \u5bf9\u8c61<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">containsBean\uff0c\u662f\u5426 bean \u5de5\u5382\u4e2d\u6709\u67d0\u4e2a\u5bf9\u8c61<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">isSingleton\uff0c\u5224\u65ad\u662f\u5426\u662f\u5355\u4f8b<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">isTypeMatch\uff0c\u5224\u65ad\u6539 name \u662f\u5426\u5339\u914d\u7c7b\u578b<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">getType\uff0c\u6839\u636e bean \u540d\u5b57\u83b7\u53d6\u7c7b\u578b<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">getAliases\u3002\u83b7\u53d6\u522b\u540d\u6570\u7ec4\u770b\u7740\u4e3b\u8981\u51e0\u4e2a\u63a5\u53e3\u5b9e\u73b0\uff0c\u57fa\u672c\u90fd\u662f\u56f4\u7ed5 bean \u6240\u505a\u7684\uff0c\u7136\u540e\u6839\u636e\u63a5\u53e3\u518d\u770b\u4ed6\u7684\u5b9e\u73b0\u7c7b\u5c31\u65b9\u4fbf\u8bb8\u591a\u4e86\uff0c<\/span><\/p>\n<\/li>\n<\/ol>\n<\/blockquote>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(32, 91, 195);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><em style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 24px;box-sizing: border-box !important;padding-left:4px;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\">4<\/span><\/em><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br  \/><\/p>\n<h2 label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin-top: -10px;font-family: PingfangSC-LIGHT, sans-serif;line-height: 9px;color: white;border-radius: 10px;background-image: linear-gradient(to right, rgb(32, 91, 195) 40%, rgb(166, 189, 231) 10%);background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;\">&nbsp; &nbsp;<\/h2>\n<p style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\"><jncounttag><\/jncounttag>DefaultListableBeanFactory<\/span><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u5982\u679c\u770b\u8fc7\u6e90\u7801\u7684\u670b\u53cb\u80af\u5b9a\u5bf9\u8fd9\u4e2a\u5b9e\u73b0\u7c7b\u4e0d\u964c\u751f\uff0c\u5982\u679c\u5bf9\u8fd9\u4e2a\u5b9e\u73b0\u7c7b\u964c\u751f\u7684\u670b\u53cb\uff0c\u90a3\u8bf7\u8bb0\u4f4f\u8fd9\u4e2a\u91cd\u8981\u7684\u5b9e\u73b0\u7c7b\uff0c\u5b83\u5b9e\u73b0\u4e86\u5f88\u591a\u63a5\u53e3\u3001\u4e14\u7ee7\u627f\u4e86\u591a\u5c42\u7236\u7c7b\uff0c\u6240\u4ee5\u4ed6\u7684\u529f\u80fd\u4e5f\u662f\u76f8\u5f53\u4e4b\u591a\u3002\u6211\u4eec\u6765\u770b\u770b\u4ed6\u7684\u4e3b\u8981\u65b9\u6cd5\uff1a<\/span><\/p>\n<blockquote label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;white-space: normal;border-left-width: 5px;border-left-color: rgb(77, 124, 207);margin-left: 32px;margin-right: 30px;\">\n<ol label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" class=\"list-paddingleft-1\" style=\"width: 515.844px;max-width: 100%;color: rgb(77, 124, 207);line-height: 25.6px;font-family: PingfangSC-LIGHT, sans-serif;overflow-wrap: break-word !important;\">\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">containsBeanDefinition\uff0c\u67e5\u770b\u662f\u5426\u5305\u542b\u67d0\u4e2a bean \u5b9a\u4e49\uff0c\u56e0\u4e3a\u8be5\u7c7b\u7ef4\u62a4\u4e86\u4e00\u4e2a Map&lt;String, BeanDefinition&gt; beanDefinitionMap \u5c5e\u6027\u3002<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">determineAutowireCandidate\uff0c\u51b3\u5b9a\u6ce8\u5165\u54ea\u4e2a bean\uff0c@Primary--&gt;\u4f18\u5148\u7ea7\u6700\u9ad8---&gt;name<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">doResolveDependency\uff0c\u89e3\u6790\u4f9d\u8d56\uff0c\u8fdb\u884c\u6ce8\u5165<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">registerBeanDefinition\uff0c\u6ce8\u518c bean \u5b9a\u4e49\u5230 beanDefinitionMap \u5c5e\u6027<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">preInstantiateSingletons\uff0c\u8fdb\u884c\u521b\u5efa bean \u5b9e\u4f8b<\/span><\/p>\n<\/li>\n<\/ol>\n<\/blockquote>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u5177\u4f53\u4f7f\u7528\u64cd\u4f5c\u4e5f\u662f\u57fa\u672c\u7c7b\u4f3c\u7684<\/span><\/p>\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<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\">AbstractBeanDefinition beanDefinition = BeanDefinitionBuilder.genericBeanDefinition().getBeanDefinition();  <\/span><\/code><code><span class=\"code-snippet_outer\">beanDefinition.setBeanClass(UserService.class);  <\/span><\/code><code><span class=\"code-snippet_outer\">defaultListableBeanFactory.registerBeanDefinition(<span class=\"code-snippet__string\">\"userService\"<\/span>,beanDefinition);  <\/span><\/code><code><span class=\"code-snippet_outer\">  <\/span><\/code><code><span class=\"code-snippet_outer\">UserService userService1 = (UserService) defaultListableBeanFactory.getBean(<span class=\"code-snippet__string\">\"userService\"<\/span>);  <\/span><\/code><code><span class=\"code-snippet_outer\">userService1.test();<\/span><\/code><\/pre>\n<\/section>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u4ece\u4ed6\u7684\u7ed3\u6784\u56fe\u4e5f\u80fd\u770b\u51fa\u6765\uff1a<\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.48518518518518516\"  data-type=\"png\" data-w=\"1080\" style=\"width:100%;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020029816.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-ratio=\"0.48518518518518516\"  data-type=\"png\" data-w=\"1080\" style=\"width:100%;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020029816.png\"  \/><\/noscript><\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(32, 91, 195);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><em style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 24px;box-sizing: border-box !important;padding-left:4px;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\">5<\/span><\/em><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br  \/><\/p>\n<h2 label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin-top: -10px;font-family: PingfangSC-LIGHT, sans-serif;line-height: 9px;color: white;border-radius: 10px;background-image: linear-gradient(to right, rgb(32, 91, 195) 50%, rgb(166, 189, 231) 10%);background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;\">&nbsp; &nbsp;<\/h2>\n<p style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\"><jncounttag><\/jncounttag>AbstractBeanFactory<\/span><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u8be5\u7c7b\u662f\u62bd\u8c61 bean\uff0c\u4ecb\u7ecd\u4ed6\u4e3b\u8981\u76ee\u7684\u5c31\u662f getbean \u65f6\uff0c\u8d70\u7684\u4e3b\u8981\u903b\u8f91\u5c31\u662f\u8be5\u7c7b\u5b9e\u73b0\u7684 dogetbean \u65b9\u6cd5\uff08\u8bf7\u8bb0\u4f4f\u8fd9\u4e2a\u91cd\u8981\u7684\u65b9\u6cd5\uff09\uff0c\u6240\u4ee5\u786e\u5b9e\u9700\u8981\u5173\u6ce8\u4e0b\uff0c\u4e3b\u8981\u65b9\u6cd5\u5982\u4e0b\uff1a<\/span><\/p>\n<blockquote label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;white-space: normal;border-left-width: 5px;border-left-color: rgb(77, 124, 207);margin-left: 32px;margin-right: 30px;\">\n<ol label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" class=\"list-paddingleft-1\" style=\"width: 515.844px;max-width: 100%;color: rgb(77, 124, 207);line-height: 25.6px;font-family: PingfangSC-LIGHT, sans-serif;overflow-wrap: break-word !important;\">\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">doGetBean\uff0c\u83b7\u53d6 bean \u7684\u4e3b\u8981\u903b\u8f91\uff0c\u6ca1\u6709\u5219\u521b\u5efa<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">getMergedBeanDefinition\uff0cbean \u5b9a\u4e49\u7684\u5408\u5e76\u903b\u8f91\uff0c\u4e3b\u8981\u662f\u5c06\u7236\u7c7b beanfactory \u4e2d\u7684\u5c5e\u6027\u88ab\u5b50\u7c7b\u8986\u76d6<\/span><\/p>\n<\/li>\n<\/ol>\n<\/blockquote>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(32, 91, 195);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><em style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 24px;box-sizing: border-box !important;padding-left:4px;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\">6<\/span><\/em><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br  \/><\/p>\n<h2 label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin-top: -10px;font-family: PingfangSC-LIGHT, sans-serif;line-height: 9px;color: white;border-radius: 10px;background-image: linear-gradient(to right, rgb(32, 91, 195) 60%, rgb(166, 189, 231) 10%);background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;\">&nbsp; &nbsp;<\/h2>\n<p style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\"><jncounttag><\/jncounttag>AbstractAutowireCapableBeanFactory<\/span><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u7ee7\u627f\u81ea\u521a\u624d\u63d0\u5230\u7684 AbstractBeanFactory\uff0c\u4e3b\u8981\u65b9\u6cd5\u5982\u4e0b\uff1a<\/span><\/p>\n<blockquote label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;white-space: normal;border-left-width: 5px;border-left-color: rgb(77, 124, 207);margin-left: 32px;margin-right: 30px;\">\n<ol label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" class=\"list-paddingleft-1\" style=\"width: 515.844px;max-width: 100%;color: rgb(77, 124, 207);line-height: 25.6px;font-family: PingfangSC-LIGHT, sans-serif;overflow-wrap: break-word !important;\">\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">autowireByName\uff0c\u6309\u7167 name \u6ce8\u5165<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">autowireByType\uff0c\u6839\u636e\u7c7b\u578b<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">createBean\uff0c\u521b\u5efa bean \u6d41\u7a0b\uff0c\u5b9e\u4f8b\u5316\u524d\u53ef\u4ee5\u4f7f\u7528 BeanPostProcessors \u540e\u7f6e\u5904\u7406\u5668<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">createBeanInstance\uff0c\u6b63\u5728\u521b\u5efa bean\uff0c\u8fd9\u8fb9\u4f7f\u7528\u5230\u4e86\u4e4b\u524d\u5165\u95e8\u8bb2\u8fc7\u7684\u63a8\u65ad\u6784\u9020\u5668\u5b9e\u73b0\u5b9e\u4f8b\u5316<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">doCreateBean\uff0c\u521b\u5efa bean\uff0c\u5faa\u73af\u4f9d\u8d56\u3001\u5c5e\u6027\u586b\u5145\u3001\u521d\u59cb\u5316<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">initializeBean\uff0c\u521d\u59cb\u5316 bean\uff0c\u5305\u62ec\u521d\u59cb\u5316\u524d\u3001\u521d\u59cb\u5316\u3001\u521d\u59cb\u5316\u540e<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">instantiateUsingFactoryMethod\uff0c\u5229\u7528 factorymethod \u521d\u59cb\u5316 bean<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">invokeAwareMethods\uff0c\u521d\u59cb\u5316 bean \u65f6\u7684\u56de\u8c03\u51fd\u6570 Aware \u63a5\u53e3<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">populateBean\uff0c\u521d\u59cb\u5316\u4e4b\u524d\uff0c\u5c5e\u6027\u8d4b\u503c<\/span><\/p>\n<\/li>\n<\/ol>\n<\/blockquote>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u53ef\u4ee5\u4ece\u4ed6\u7684\u5173\u952e\u65b9\u6cd5\u770b\u51fa\uff0c\u4e3b\u8981\u4f5c\u7528\u5c31\u662f\u521d\u59cb\u5316 bean \u7684\u5168\u8fc7\u7a0b\uff0c\u4e5f\u662f\u5f88\u91cd\u8981\u7684\u7c7b<\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(32, 91, 195);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><em style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 24px;box-sizing: border-box !important;padding-left:4px;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\">7<\/span><\/em><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br  \/><\/p>\n<h2 label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin-top: -10px;font-family: PingfangSC-LIGHT, sans-serif;line-height: 9px;color: white;border-radius: 10px;background-image: linear-gradient(to right, rgb(32, 91, 195) 70%, rgb(166, 189, 231) 10%);background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;\">&nbsp; &nbsp;<\/h2>\n<p style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\"><jncounttag><\/jncounttag>HierarchicalBeanFactory<\/span><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u8fd9\u91cc\u8bf4\u4e0b HierarchicalBeanFactory \u7c7b\uff0c\u4ed6\u53ea\u662f\u4e00\u4e2a\u63a5\u53e3\u7c7b\uff0c\u4f46\u662f\u5982\u679c\u60f3\u8981\u4f7f\u7528 beanfactory \u7684\u5c42\u6b21\u7ed3\u6784\uff0c\u4f8b\u5982\u83b7\u53d6\u7236 beanfactory\uff0c\u90a3\u5c31\u5fc5\u987b\u5b9e\u73b0 HierarchicalBeanFactory \u7c7b\uff0c\u6bd4\u5982\u524d\u9762\u8bf4\u7684 bean \u5b9a\u4e49\u7684\u5408\u5e76\u903b\u8f91\uff0c\u5c31\u9700\u8981\u83b7\u53d6\u7236 beanfactory\uff0c\u4ece\u800c\u5b9e\u73b0\u7236\u5b50 bean \u5b9a\u4e49\u7684\u8986\u76d6\u5408\u5e76<\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(0, 0, 0);text-align: center;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingfangSC-Ultralight,sans-serif;\"><strong style=\"color:rgb(32, 91, 195);\">\/ <\/strong>ApplicationContext<strong style=\"color:rgb(32, 91, 195);\"> \/<\/strong><\/span><\/span><\/span><\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">ApplicationContext \u662f\u4e2a\u63a5\u53e3\uff0c\u5b9e\u9645\u4e0a\u4e5f\u662f\u4e00\u4e2a BeanFactory\uff0c\u4e0d\u8fc7\u6bd4 BeanFactory \u66f4\u52a0\u5f3a\u5927\uff0c\u5b83\u672c\u8eab\u5e76\u6ca1\u6709\u592a\u591a\u65b9\u6cd5\uff0c\u4f46\u662f\u5b83\u7ee7\u627f\u4e86\u5f88\u591a\u63a5\u53e3\uff0c\u56e0\u4e3a\u63a5\u53e3\u4e4b\u95f4\u662f\u53ef\u4ee5\u591a\u7ee7\u627f\u7684\u3002<\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.20833333333333334\"  data-type=\"png\" data-w=\"1080\" style=\"width:100%;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020031659.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-ratio=\"0.20833333333333334\"  data-type=\"png\" data-w=\"1080\" style=\"width:100%;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020031659.png\"  \/><\/noscript><\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u5173\u4e8e\u4ed6\u7684\u7236\u63a5\u53e3\uff0c\u8fd9\u91cc\u4e0d\u505a\u591a\u8bf4\u660e\uff0c\u8be6\u60c5\u7684\u8bdd\u8bf7\u770b\u4e0b\u5b50\u6587\u7ae0(\u540e\u7eed\u66f4\u65b0)\u3002<\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(32, 91, 195);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><em style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 24px;box-sizing: border-box !important;padding-left:4px;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\">8<\/span><\/em><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br  \/><\/p>\n<h2 label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin-top: -10px;font-family: PingfangSC-LIGHT, sans-serif;line-height: 9px;color: white;border-radius: 10px;background-image: linear-gradient(to right, rgb(32, 91, 195) 80%, rgb(166, 189, 231) 10%);background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;\">&nbsp; &nbsp;<\/h2>\n<p style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\"><jncounttag><\/jncounttag>AnnotationConfigApplicationContext<\/span><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u4e00\u770b\u8fd9\u4e2a\u7c7b\uff0c\u5927\u5bb6\u90fd\u77e5\u9053\u4e86\uff0c\u6211\u4eec\u7528\u7684\u5b9e\u4f8b\u5168\u662f\u7528\u8fd9\u4e2a\u7c7b\u53bb\u542f\u52a8\u6211\u4eec\u7684 spring \u7684\uff0c\u6211\u4eec\u770b\u770b\u4ed6\u7684\u4e3b\u8981\u65b9\u6cd5\uff1a<\/span><\/p>\n<blockquote label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;white-space: normal;border-left-width: 5px;border-left-color: rgb(77, 124, 207);margin-left: 32px;margin-right: 30px;\">\n<ol label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" class=\"list-paddingleft-1\" style=\"width: 515.844px;max-width: 100%;color: rgb(77, 124, 207);line-height: 25.6px;font-family: PingfangSC-LIGHT, sans-serif;overflow-wrap: break-word !important;\">\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">AnnotationConfigApplicationContext\uff0c\u6784\u9020\u5668\uff0c\u4f1a\u521d\u59cb\u5316 DefaultListableBeanFactory\u3001AnnotatedBeanDefinitionReader\u3001ClassPathBeanDefinitionScanner\uff1b\u7136\u540e\u5f00\u59cb\u8c03\u7528 refresh()\u65b9\u6cd5\u3002<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">register\uff0c\u4f1a\u4f7f\u7528\u7f16\u7a0b\u5f0f\u5b9a\u4e49\u5c06 bean \u6ce8\u5165 spring \u5bb9\u5668\u3002\u5c31\u5982\u6211\u4eec\u7684 APPConfig<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">scan\uff0c\u8d70 ClassPathBeanDefinitionScanner \u7684 scan\uff0c\u626b\u63cf\u5305\u8def\u5f84\uff0c\u5c06\u58f0\u660e\u5f0f\u7684 bean \u6ce8\u5165\u8fdb spring \u5bb9\u5668<\/span><\/p>\n<\/li>\n<li>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 5px;max-width: 100%;white-space: pre-wrap;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 30px;color: rgb(84, 84, 84);box-sizing: border-box !important;overflow-wrap: break-word !important;\">setBeanNameGenerator\uff0cbean \u540d\u79f0\u751f\u6210\u5668<\/span><\/p>\n<\/li>\n<\/ol>\n<\/blockquote>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(32, 91, 195);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><em style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 24px;box-sizing: border-box !important;padding-left:4px;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\">9<\/span><\/em><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br  \/><\/p>\n<h2 label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin-top: -10px;font-family: PingfangSC-LIGHT, sans-serif;line-height: 9px;color: white;border-radius: 10px;background-image: linear-gradient(to right, rgb(32, 91, 195) 90%, rgb(166, 189, 231) 10%);background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;\">&nbsp; &nbsp;<\/h2>\n<p style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\"><jncounttag><\/jncounttag>ClassPathXmlApplicationContext<\/span><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u4e3b\u8981\u5c31\u662f\u53bb\u89e3\u6790 xml \u914d\u7f6e\u7684 bean \u5b9a\u4e49\u5c06\u5176\u6ce8\u5165\u5230 spring \u5bb9\u5668\u4e2d\uff0c\u529f\u80fd\u5176\u5b9e\u8ddf AnnotationConfigApplicationContext \u7c7b\u4f3c\uff0c\u4f46\u662f\u5374\u6ca1\u6709 AnnotationConfigApplicationContext \u5f3a\u5927\uff0c\u6bd4\u5982\u4e0d\u80fd\u6ce8\u518c BeanDefinition\u3002<\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(0, 0, 0);text-align: center;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingfangSC-Ultralight,sans-serif;\"><strong style=\"color:rgb(32, 91, 195);\">\/ <\/strong>BeanPostProcessor<strong style=\"color:rgb(32, 91, 195);\"> \/<\/strong><\/span><\/span><\/span><\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">BeanPostProcess \u8868\u793a Bena \u7684\u540e\u7f6e\u5904\u7406\u5668\uff0c\u53ef\u4ee5\u6709\u591a\u4e2a BeanPostProcessor\uff0c\u6211\u4eec\u81ea\u5df1\u4e5f\u53ef\u4ee5\u53bb\u5b9a\u4e49\u4e00\u4e2a BeanPostProcessor\uff1b<\/span><\/p>\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<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\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=\"javascript\"><code><span class=\"code-snippet_outer\">@Component<\/span><\/code><code><span class=\"code-snippet_outer\">public class MyBeanPostProcessor implements BeanPostProcessor {<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">    @Override<\/span><\/code><code><span class=\"code-snippet_outer\">    public Object postProcessBeforeInitialization(Object bean, String beanName) {<\/span><\/code><code><span class=\"code-snippet_outer\">        if (\"userService\".equals(beanName)) {<\/span><\/code><code><span class=\"code-snippet_outer\">            System.out.println(\"userService\");<\/span><\/code><code><span class=\"code-snippet_outer\">            return new User();<\/span><\/code><code><span class=\"code-snippet_outer\">        }<\/span><\/code><code><span class=\"code-snippet_outer\">        System.out.println(\"MyBeanPostProcessor.postProcessBeforeInitialization\");<\/span><\/code><code><span class=\"code-snippet_outer\">        return bean;<\/span><\/code><code><span class=\"code-snippet_outer\">    }<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">    @Override<\/span><\/code><code><span class=\"code-snippet_outer\">    public Object postProcessAfterInitialization(Object bean, String beanName) {<\/span><\/code><code><span class=\"code-snippet_outer\">        System.out.println(\"MyBeanPostProcessor.postProcessAfterInitialization\");<\/span><\/code><code><span class=\"code-snippet_outer\">        return bean;<\/span><\/code><code><span class=\"code-snippet_outer\">    }<\/span><\/code><\/pre>\n<\/section>\n<p><br  \/><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5b9e\u73b0 bean \u7684\u540e\u7f6e\u5904\u7406\u5668\uff0c\u6765\u5bf9\u67d0\u4e00\u4e2a bean \u6216\u8005\u6240\u6709 bean \u7684\u8fdb\u884c\u5e72\u9884\uff0c\u535a\u4e3b\u53ea\u662f\u968f\u4fbf\u5199\u4e86\u4e00\u4e2a\uff0c\u6ca1\u6709\u4ec0\u4e48\u592a\u5927\u610f\u4e49\u3002<\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(32, 91, 195);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><em style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 24px;box-sizing: border-box !important;padding-left:4px;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\">10<\/span><\/em><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"line-height: 25.6px;max-width: 100%;white-space: pre-wrap;color: rgb(62, 62, 62);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br  \/><\/p>\n<h2 label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin-top: -10px;font-family: PingfangSC-LIGHT, sans-serif;line-height: 9px;color: white;border-radius: 10px;background-image: linear-gradient(to right, rgb(32, 91, 195) 100%, rgb(166, 189, 231) 10%);background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;\">&nbsp; &nbsp;<\/h2>\n<p style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingFangSC-Semibold,sans-serif;\"><jncounttag><\/jncounttag>BeanFactoryPostProcessor<\/span><\/strong><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">BeanFactoryPostProcessor \u8868\u793a Bean \u5de5\u5382\u7684\u540e\u7f6e\u5904\u7406\u5668\uff0c\u5176\u5b9e\u548c BeanPostProcessor \u7c7b\u4f3c\uff0cBeanPostProcessor \u662f\u5e72\u6d89 Bean \u7684\u521b\u5efa\u8fc7\u7a0b\uff0cBeanFactoryPostProcessor \u662f\u5e72\u6d89 BeanFactory \u7684\u521b\u5efa\u8fc7\u7a0b\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u81ea\u5b9a\u4e49\uff1a<\/span><\/p>\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<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\">@Component<\/span><\/code><code><span class=\"code-snippet_outer\">public class MyBeanFactoryPostProcessor implements BeanFactoryPostProcessor {<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">    @Override<\/span><\/code><code><span class=\"code-snippet_outer\">    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {<\/span><\/code><code><span class=\"code-snippet_outer\">        System.out.println(\"\u52a0\u5de5beanFactory\");<\/span><\/code><code><span class=\"code-snippet_outer\">    }<\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><\/pre>\n<\/section>\n<p><br  \/><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(0, 0, 0);text-align: center;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingfangSC-Ultralight,sans-serif;\"><strong style=\"color:rgb(32, 91, 195);\">\/ <\/strong>FactoryBean<strong style=\"color:rgb(32, 91, 195);\"> \/<\/strong><\/span><\/span><\/span><\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">FactoryBean \u548c BeanFactory \u4e0d\u662f\u4e00\u4e2a\u4e1c\u897f\uff0c\u5927\u5bb6\u4e0d\u8981\u6df7\u6dc6\u4e24\u4e2a\u6982\u5ff5\uff0cBeanFactory \u662f\u7ba1\u7406\u6211\u4eec\u6ce8\u5165\u7684 bean \u7b49\uff0c\u800c FactoryBean \u672c\u8eab\u4e5f\u4f1a\u88ab Spring \u7ba1\u7406\uff0c\u4e00\u65e6 Spring \u77e5\u9053\u6211\u4eec\u7684 bean \u5b9e\u73b0\u4e86 FactoryBean\uff0c\u90a3\u4e48\u4f1a\u81ea\u52a8\u8c03\u7528 getObject \u65b9\u6cd5\u83b7\u53d6\u6211\u4eec\u81ea\u5df1\u521b\u5efa\u7684 bean\uff0c\u8fd9\u4e2a bean \u5b8c\u5b8c\u5168\u5168\u4ea4\u7ed9\u6211\u4eec\u81ea\u5df1\u521b\u5efa\u4e86\uff0c\u6211\u4eec\u53ef\u4ee5\u8fd9\u6837\u5b9a\u4e49\u4e00\u4e2a FactoryBean\uff1a<\/span><\/p>\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<li><\/li>\n<li><\/li>\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=\"javascript\"><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">@Component<\/span><\/code><code><span class=\"code-snippet_outer\">public class MyFactoryBean implements FactoryBean {<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">    @Override<\/span><\/code><code><span class=\"code-snippet_outer\">    public Object getObject() throws Exception {<\/span><\/code><code><span class=\"code-snippet_outer\">        UserService service = new UserService();<\/span><\/code><code><span class=\"code-snippet_outer\">        return service;<\/span><\/code><code><span class=\"code-snippet_outer\">    }<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">    @Override<\/span><\/code><code><span class=\"code-snippet_outer\">    public Class&lt;?&gt; getObjectType() {<\/span><\/code><code><span class=\"code-snippet_outer\">        return UserService.class;<\/span><\/code><code><span class=\"code-snippet_outer\">    }<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><\/pre>\n<\/section>\n<p><br  \/><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u4f46\u662f\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u4e9b\u6ce8\u5165 UserService \u65f6\uff0c\u662f\u4e0d\u4f1a\u6709\u5c5e\u6027\u4f9d\u8d56\u6ce8\u5165\u7684\uff0c\u6bd5\u7adf\u4ed6\u6ca1\u6709\u8d70 bean \u7684\u751f\u547d\u521b\u5efa\u5468\u671f\u3002\u7ec6\u5fc3\u7684\u670b\u53cb\u4f1a\u53d1\u73b0\uff0c\u8fd9\u6839\u6211\u5728\u914d\u7f6e\u7c7b\u4e2d\u5199@bean \u5f62\u5f0f\u7684\u7c7b\u6709\u5565\u533a\u522b\uff0c\u73b0\u8c61\u6765\u8bb2\uff0c\u4ed6\u4fe9\u90fd\u53ef\u4ee5\u88ab\u521b\u5efa\u51fa\u6765\uff0c\u4f46\u662f\u503c\u5f97\u4e00\u63d0\u7684\u662f\uff0cFactoryBean \u521b\u5efa\u51fa\u6765\u7684 bean \u662f\u6ca1\u8d70 spring \u5b9a\u4e49\u7684 bean \u751f\u547d\u5468\u671f\u7684\u3002<\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(0, 0, 0);text-align: center;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingfangSC-Ultralight,sans-serif;\"><strong style=\"color:rgb(32, 91, 195);\">\/ <\/strong>MetadataReader\u3001ClassMetadata\u3001AnnotationMetadata<strong style=\"color:rgb(32, 91, 195);\"> \/<\/strong><\/span><\/span><\/span><\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">Spring \u542f\u52a8\u65f6\u9700\u8981\u626b\u63cf\u6307\u5b9a\u5305\u8def\u5f84\u4e0b\u7684\u6240\u6709\u7c7b\u6587\u4ef6\u6765\u83b7\u53d6\u9700\u8981\u6ce8\u5165\u6216\u7ba1\u7406\u7684 Bean \u4fe1\u606f\u3002\u7136\u800c\uff0c\u5e76\u975e\u6240\u6709\u7c7b\u90fd\u662f\u9700\u8981\u7684\uff0c\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528 ASM \u6280\u672f\u6765\u89e3\u6790\u7c7b\u6587\u4ef6\u7684\u5143\u6570\u636e\u4fe1\u606f\uff0c\u5305\u62ec\u7c7b\u4e0a\u7684\u6ce8\u89e3\u4fe1\u606f\u548c\u7c7b\u7684\u57fa\u672c\u4fe1\u606f\u3002ASM \u6280\u672f\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u52a8\u6001\u751f\u6210\u548c\u4fee\u6539 Java \u5b57\u8282\u7801\uff0c\u4ece\u800c\u9ad8\u6548\u5730\u89e3\u6790\u7c7b\u6587\u4ef6\u7684\u5143\u6570\u636e\u4fe1\u606f\uff0c\u907f\u514d\u4e86\u5927\u91cf\u7684 IO \u64cd\u4f5c\u548c\u7c7b\u52a0\u8f7d\uff0c\u63d0\u9ad8\u4e86\u5e94\u7528\u7684\u6027\u80fd\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5b9e\u4f8b\uff1a<\/span><\/p>\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<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\">   SimpleMetadataReaderFactory simpleMetadataReaderFactory = <span class=\"code-snippet__keyword\">new<\/span> SimpleMetadataReaderFactory();<\/span><\/code><code><span class=\"code-snippet_outer\">   MetadataReader metadataReader = simpleMetadataReaderFactory.getMetadataReader(<span class=\"code-snippet__string\">\"com.xiaoyu.service.UserService\"<\/span>);<\/span><\/code><code><span class=\"code-snippet_outer\">   System.out.println(metadataReader.getClassMetadata().getClassName());<\/span><\/code><code><span class=\"code-snippet_outer\">   metadataReader.getAnnotationMetadata().getAnnotationTypes().forEach(System.out::println);<\/span><\/code><\/pre>\n<\/section>\n<p><br  \/><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(0, 0, 0);text-align: center;line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);line-height: 25.6px;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;font-size: 20px;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(137, 137, 137);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(62, 62, 62);box-sizing: border-box !important;word-wrap: break-word !important;font-family: PingfangSC-Ultralight,sans-serif;\"><strong style=\"color:rgb(32, 91, 195);\">\/ <\/strong>\u7ed3\u8bed<strong style=\"color:rgb(32, 91, 195);\"> \/<\/strong><\/span><\/span><\/span><\/span><\/p>\n<p label=\"Converted by KNB Formatter from Jason Ng https:\/\/knb.im\/mp\" style=\"margin: 20px;max-width: 100%;white-space: pre-wrap;color: rgb(43, 43, 43);line-height: 1.5;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 28px;box-sizing: border-box !important;word-wrap: break-word !important;letter-spacing:1px;font-size:15px;font-family: PingfangSC-LIGHT,sans-serif;\">\u901a\u8fc7\u672c\u6587\u7684\u89e3\u6790,\u6211\u4eec\u5927\u81f4\u4e86\u89e3\u4e86 Spring \u6846\u67b6\u4e2d\u7684\u4e00\u4e9b\u5173\u952e\u7ec4\u4ef6\u53ca\u5176\u7528\u9014,\u8fd9\u6709\u52a9\u4e8e\u6211\u4eec\u5728\u6df1\u5165\u7406\u89e3 Spring \u6e90\u7801\u8fc7\u7a0b\u4e2d\u5efa\u7acb\u8d77\u4e00\u4e2a\u6574\u4f53\u6846\u67b6\u3002Spring \u6e90\u7801\u91cf\u5f88\u5927,\u8981\u771f\u6b63\u7406\u89e3\u900f\u5f7b\u8fd8\u9700\u8981\u6295\u5165\u5927\u91cf\u65f6\u95f4\u8fdb\u884c\u7ec6\u81f4\u5b66\u4e60\u548c\u603b\u7ed3\u3002\u4f46\u5982\u679c\u5148\u5bf9\u4e00\u4e9b\u5173\u952e\u7ec4\u4ef6\u6709\u4e00\u4e2a\u5927\u81f4\u7684\u8ba4\u8bc6,\u6709\u52a9\u4e8e\u6211\u4eec\u8fdb\u884c\u9488\u5bf9\u6027\u5b66\u4e60,\u907f\u514d\u8ff7\u5931\u5728\u7e41\u6742\u7684\u7ec6\u8282\u4e2d\u3002\u5e0c\u671b\u672c\u6587\u80fd\u591f\u5bf9\u8bfb\u8005\u6709\u4e00\u5b9a\u7684\u5e2e\u52a9,\u66f4\u5e0c\u671b\u8bfb\u8005\u5728\u5b66\u4e60 Spring \u6e90\u7801\u7684\u8fc7\u7a0b\u4e2d,\u4e0d\u65ad\u603b\u7ed3\u548c\u63d0\u9ad8,\u5e76\u5728\u4e00\u5b9a\u9636\u6bb5\u6709\u6240\u7a81\u7834\u3002\u795d\u8bfb\u8005\u987a\u5229!<\/span><\/p>\n<section><mp-common-profile class=\"js_uneditable custom_select_card mp_profile_iframe\" data-pluginname=\"mpprofile\" data-weui-theme=\"light\" data-id=\"MzUyNTE4MTY2Mw==\" data-headimg=\"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/cjE6VxWuSEEkjhu2aCCVelz7EibaQriaJCpK36qK0QqjyLiatWJDjeGKu3vam4TOYDibbNHCIlH8snt1MwGYyIYnFQ\/0?wx_fmt=png\" data-nickname=\"JAVA \u5f00\u53d1\u5fae\u6307\u5357\" data-alias=\"javaDev8848\" data-signature=\"\u4ece\u6e90\u7801\u5e95\u5c42\u5f00\u59cb\u5256\u6790\uff0c\u4e86\u89e3\u4e00\u4e2a\u77e5\u8bc6\u70b9\u7684\u4f5c\u7528\u4ee5\u53ca\u5206\u6790\u5de5\u4f5c\u53ca\u9762\u8bd5\u4e2d\u5e38\u7528\u7684\u6280\u672f\" data-from=\"0\" data-is_biz_ban=\"0\"><\/mp-common-profile><\/section>\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:                 JAVA \u5f00\u53d1\u5fae\u6307\u5357              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>JAVA \u5f00\u53d1\u5fae\u6307\u5357 \u8bfb\u5b8c\u9700\u8981 18 \u5206\u949f \u901f\u8bfb\u4ec5\u9700 6 \u5206\u949f \/ \u524d\u8a00 \/ \u672c\u6587\u65e8\u5728\u4e3a\u8bfb\u8005\u89e3\u6790 Spring \u6e90\u7801\u4e2d\u7684\u5173\u952e\u7c7b\uff0c\u4ee5 &#8230;<\/p>\n","protected":false},"author":2,"featured_media":764,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-768","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring-boot"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020024414-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020025876.gif","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020024414-300x127.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020024414.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020025876.gif","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020024414-300x127.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020024414.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020024414.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020025876.gif","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020025876.gif","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020029816.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020029816.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020031659.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020031659.png","id":"image5"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring Boot","post_date":"2023-05-27","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":697,"next_post_id":715,"next_post_title":"Spring @DependsOn\u6ce8\u89e3\u89e3\u6790","previous_post_id":853,"previous_post_title":"Spring \u2469 AOP \u521b\u5efa\u4ee3\u7406\u5bf9\u8c61\u8be6\u89e3","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/768","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=768"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/768\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/764"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}