{"id":5548,"date":"2024-08-01T22:49:13","date_gmt":"2024-08-01T14:49:13","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=5548"},"modified":"2024-08-01T22:49:13","modified_gmt":"2024-08-01T14:49:13","slug":"%e4%b8%80%e5%bc%a0%e9%95%bf%e5%9b%be%e9%80%8f%e5%bd%bb%e7%90%86%e8%a7%a3springboot-%e5%90%af%e5%8a%a8%e5%8e%9f%e7%90%86%ef%bc%8c%e6%9e%b6%e6%9e%84%e5%b8%88%e5%bf%85%e5%a4%87%e7%9f%a5%e8%af%86%ef%bc%8c","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/%e4%b8%80%e5%bc%a0%e9%95%bf%e5%9b%be%e9%80%8f%e5%bd%bb%e7%90%86%e8%a7%a3springboot-%e5%90%af%e5%8a%a8%e5%8e%9f%e7%90%86%ef%bc%8c%e6%9e%b6%e6%9e%84%e5%b8%88%e5%bf%85%e5%a4%87%e7%9f%a5%e8%af%86%ef%bc%8c\/","title":{"rendered":"\u4e00\u5f20\u957f\u56fe\u900f\u5f7b\u7406\u89e3SpringBoot \u542f\u52a8\u539f\u7406\uff0c\u67b6\u6784\u5e08\u5fc5\u5907\u77e5\u8bc6\uff0c\u4e0d\u4e3a\u5e94\u4ed8\u9762\u8bd5\uff01"},"content":{"rendered":"<div class='wxsyncmain'>\n<section data-tool=\"markdown\u7f16\u8f91\u5668\" data-website=\"https:\/\/markdown.com.cn\/editor\" style=\"font-size: 16px;color: black;padding: 25px 30px;line-height: 1.6;letter-spacing: 0px;word-break: break-word;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;margin-top: -10px;\">\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u867d\u7136Java\u7a0b\u5e8f\u5458\u5927\u90e8\u5206\u5de5\u4f5c\u90fd\u662fCRUD\uff0c\u4f46\u662f\u5de5\u4f5c\u4e2d\u5e38\u7528\u7684\u4e2d\u95f4\u4ef6\u5fc5\u987b\u548cSpring\u96c6\u6210\uff0c\u5982\u679c\u4e0d\u77e5\u9053Spring\u7684\u539f\u7406\uff0c\u5f88\u96be\u7406\u89e3\u8fd9\u4e9b\u4e2d\u95f4\u4ef6\u548c\u6846\u67b6\u7684\u539f\u7406\u3002<\/p>\n<h2 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u4e00\u5f20\u957f\u56fe\u900f\u5f7b\u89e3\u91ca Spring\u542f\u52a8\u987a\u5e8f<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<figure data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100041146\" data-ratio=\"2.137962962962963\"  data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221650976.jpeg\" 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-imgfileid=\"100041146\" data-ratio=\"2.137962962962963\"  data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221650976.jpeg\"  \/><\/noscript><figcaption style=\"margin-top: 5px;text-align: center;color: #888;font-size: 14px;\">Timeout\u91cd\u6784 (2).jpg<\/figcaption><\/figure>\n<h2 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6d4b\u8bd5\u5bf9Spring\u542f\u52a8\u539f\u7406\u7684\u7406\u89e3\u7a0b\u5ea6<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6211\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u6d4b\u8bd5\u4e00\u4e0b\uff0c\u4f60\u5bf9Spring\u542f\u52a8\u539f\u7406\u7684\u7406\u89e3\u7a0b\u5ea6\u3002<\/p>\n<ol data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">Rpc\u6846\u67b6\u548cSpring\u7684\u96c6\u6210\u95ee\u9898\u3002Rpc\u6846\u67b6\u4f55\u65f6\u6ce8\u518c\u66b4\u9732\u670d\u52a1\uff0c\u5728\u54ea\u4e2aSpring\u6269\u5c55\u70b9\u6ce8\u518c\u5462\uff1finit-method \u4e2d\u884c\u4e0d\u884c\uff1f<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">MQ \u6d88\u8d39\u7ec4\u548cSpring\u7684\u96c6\u6210\u95ee\u9898\u3002MQ\u6d88\u8d39\u8005\u4f55\u65f6\u5f00\u59cb\u6d88\u8d39\uff0c\u5728\u54ea\u4e2aSpring\u6269\u5c55\u70b9\u201d\u6ce8\u518c\u201c\u81ea\u5df1\uff1finit-method \u4e2d\u884c\u4e0d\u884c\uff1f<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">SpringBoot \u96c6\u6210Tomcat\u95ee\u9898\u3002\u5982\u679c\u51fa\u73b0\u5df2\u5f00\u542fHttp\u6d41\u91cf\uff0cSpring\u8fd8\u672a\u542f\u52a8\u5b8c\u6210\uff0c\u600e\u4e48\u529e\uff1fTomcat\u4f55\u65f6\u5f00\u542f\u7aef\u53e3\uff0c\u5bf9\u5916\u670d\u52a1\uff1f<\/p>\n<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">SpringBoot\u9879\u76ee\u5e38\u89c1\u7684\u6d41\u91cf\u5165\u53e3\u65e0\u5916\u4e4e Rpc\u3001Http\u3001MQ \u4e09\u79cd\u65b9\u5f0f\u3002<strong>\u4e00\u540d\u5408\u683c\u7684\u67b6\u6784\u5e08\u5fc5\u987b\u7cbe\u901a\u670d\u52a1\u7684\u5165\u53e3\u6d41\u91cf\u4f55\u65f6\u5f00\u542f\uff0c\u5982\u4f55\u6b63\u786e\u5f00\u542f<\/strong>\uff1f\u6700\u8fd1\u6211\u9047\u5230\u7684\u4e24\u6b21\u7ebf\u4e0a\u6545\u969c\u90fd\u548cSpring\u542f\u52a8\u8fc7\u7a0b\u76f8\u5173\u3002\uff08\u70b9\u51fb\u8fd9\u91cc\u4e86\u89e3\u6545\u969c\uff09<\/p>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6545\u969c\u7684\u5177\u4f53\u8868\u73b0\u662f\uff1aKafka\u6d88\u8d39\u7ec4\u5df2\u7ecf\u5f00\u59cb\u6d88\u8d39\uff0c\u5df2\u5f00\u542f\u6d41\u91cf\uff0c\u7136\u800cSpring \u8fd8\u672a\u542f\u52a8\u5b8c\u6210\u3002\u56e0\u4e3a\u4e1a\u52a1\u4ee3\u7801\u4e2d\u4f7f\u7528\u7684Spring Event\u4e8b\u4ef6\u8ba2\u9605\u7ec4\u4ef6\u8fd8\u672a\u542f\u52a8\uff08\u8ba2\u9605\u8005\u8fd8\u672a\u6ce8\u518c\u5230Spring\uff09\uff0c\u6240\u4ee5\u5904\u7406\u5f02\u5e38\uff0c\u51fa\u4e86\u7ebf\u4e0a\u6545\u969c\u3002<\/p>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6839\u672c\u539f\u56e0\u662f\u2014\u2014\u2014\u2014\u9879\u76ee\u5728\u9519\u8bef\u7684\u65f6\u673a\u5f00\u542f MQ \u6d41\u91cf\uff0c\u7136\u800cSpring\u8fd8\u672a\u542f\u52a8\u5b8c\u6210\uff0c\u5bfc\u81f4\u51fa\u73b0\u6545\u969c\u3002<\/p>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6b63\u786e\u7684\u505a\u6cd5\u662f\uff1a\u9879\u76ee\u5728Spring\u542f\u52a8\u5b8c\u6210\u540e\u5f00\u542f\u5165\u53e3\u6d41\u91cf\uff0c\u7136\u800c\u6211\u53f8\u7684Kafka\u6d88\u8d39\u7ec4 \u5728Spring init-method bean \u5b9e\u4f8b\u5316\u9636\u6bb5\u5c31\u5f00\u542f\u4e86\u6d41\u91cf\uff0c\u5bfc\u81f4\u6545\u969c\u53d1\u751f\u3002<\/p>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u51fa\u73b0\u8fd9\u6837\u7684\u95ee\u9898\uff0c\u8bf4\u660e\u9879\u76ee\u521d\u671f\u7684\u7a0b\u5e8f\u5458\u6ca1\u6709\u6df1\u5165\u7406\u89e3Spring\u7684\u542f\u52a8\u539f\u7406\u3002<\/p>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u63a5\u4e0b\u6765\uff0c\u6211\u518d\u6b21\u629b\u51fa 11 \u4e2a\u95ee\u9898\uff0c\u8bf4\u660e\u8fd9\u4e2a\u95ee\u9898\u2014\u2014\u2014\u2014\u6df1\u5165\u7406\u89e3Spring\u542f\u52a8\u539f\u7406\u7684\u91cd\u8981\u6027\u3002<\/p>\n<ol data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-2\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">Spring\u8fd8\u672a\u5b8c\u5168\u542f\u52a8\uff0c\u5728 PostConstruct \u4e2d\u8c03\u7528 <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">getBeanByAnnotation<\/code> \u80fd\u5426\u83b7\u5f97\u51c6\u786e\u7684\u7ed3\u679c\uff1f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\u9879\u76ee\u5e94\u8be5\u5982\u4f55\u76d1\u542c Spring \u7684\u542f\u52a8\u5c31\u7eea\u4e8b\u4ef6\uff1f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\u9879\u76ee\u5982\u4f55\u76d1\u542cSpring \u5237\u65b0\u4e8b\u4ef6\uff1f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">Spring\u5c31\u7eea\u4e8b\u4ef6\u548c\u5237\u65b0\u4e8b\u4ef6\u7684\u6267\u884c\u987a\u5e8f\u548c\u533a\u522b\uff1f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">Http \u6d41\u91cf\u5165\u53e3\u4f55\u65f6\u542f\u52a8\u5b8c\u6210\uff1f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\u9879\u76ee\u4e2d\u5728 init-method \u65b9\u6cd5\u4e2d\u6ce8\u518c Rpc \u662f\u5426\u5408\u7406\uff1f\u4ec0\u4e48\u662f\u5408\u7406\u7684\u65f6\u673a\uff1f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\u9879\u76ee\u4e2d\u5728 init-method \u65b9\u6cd5\u4e2d\u6ce8\u518c MQ \u6d88\u8d39\u7ec4\u662f\u5426\u5408\u7406\uff1f\u4ec0\u4e48\u662f\u5408\u7406\u7684\u65f6\u673a\uff1f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">PostConstruct \u4e2d\u65b9\u6cd5\u4f9d\u8d56ApplicationContextAware\u62ff\u5230 ApplicationContext\uff0c\u4e24\u8005\u7684\u987a\u5e8f\u8c01\u5148\u8c01\u540e\uff1f\u662f\u5426\u4f1a\u51fa\u73b0\u7a7a\u6307\u9488!<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">init-method\u3001PostConstruct\u3001afterPropertiesSet \u4e09\u4e2a\u65b9\u6cd5\u7684\u6267\u884c\u987a\u5e8f?<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\u6709\u4e24\u4e2a Bean\u58f0\u660e\u4e86\u521d\u59cb\u5316\u65b9\u6cd5\u3002A\u4f7f\u7528 PostConstruct\u6ce8\u89e3\u58f0\u660e\uff0cB\u4f7f\u7528 init-method \u58f0\u660e\u3002Spring\u4e00\u5b9a\u5148\u6267\u884c A \u7684PostConstruct \u65b9\u6cd5\u5417\uff1f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">Spring \u4f55\u65f6\u88c5\u914dAutowire\u5c5e\u6027\uff0cPostConstruct \u65b9\u6cd5\u4e2d\u5f15\u7528 Autowired \u5b57\u6bb5\u4ec0\u4e48\u573a\u666f\u4f1a\u7a7a\u6307\u9488?<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u7cbe\u901aSpring \u542f\u52a8\u539f\u7406\uff0c\u4ee5\u4e0a\u95ee\u9898\u5219\u8fce\u5203\u800c\u89e3\u3002\u63a5\u4e0b\u6765\uff0c\u8bf7\u5927\u5bb6\u548c\u4e94\u54e5\uff0c\u4e00\u8d77\u5b66\u4e60Spring\u7684\u542f\u52a8\u539f\u7406\uff0c\u770b\u770bSpring\u7684\u6269\u5c55\u70b9\u5206\u522b\u5728\u4f55\u65f6\u6267\u884c\u3002<\/p>\n<h2 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u4e00\u8d77\u6570\u6570 Spring\u542f\u52a8\u8fc7\u7a0b\u7684\u6269\u5c55\u70b9\u6709\u51e0\u4e2a\uff1f<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">Spring\u7684\u6269\u5c55\u70b9\u6781\u591a\uff0c\u8fd9\u91cc\u4e3a\u4e86\u8bb2\u6e05\u695a\u542f\u52a8\u539f\u7406\uff0c\u6240\u4ee5\u53ea\u5217\u4e3e\u548c\u542f\u52a8\u8fc7\u7a0b\u6709\u5173\u7684\u6269\u5c55\u70b9\u3002<\/p>\n<ol data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-2\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">BeanFactoryAware \u53ef\u5728Bean \u4e2d\u83b7\u53d6 BeanFactory \u5b9e\u4f8b<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">ApplicationContextAware \u53ef\u5728Bean \u4e2d\u83b7\u53d6 ApplicationContext \u5b9e\u4f8b<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">BeanNameAware \u53ef\u4ee5\u5728Bean\u4e2d\u5f97\u5230\u5b83\u5728IOC\u5bb9\u5668\u4e2d\u7684Bean\u7684\u5b9e\u4f8b\u7684\u540d\u5b57\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">ApplicationListener \u53ef\u76d1\u542c ContextRefreshedEvent\u7b49\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">CommandLineRunner \u6574\u4e2a\u9879\u76ee\u542f\u52a8\u5b8c\u6bd5\u540e\uff0c\u81ea\u52a8\u6267\u884c<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">SmartLifecycle#start \u5728Spring Bean\u5b9e\u4f8b\u5316\u5b8c\u6210\u540e\uff0c\u6267\u884cstart \u65b9\u6cd5\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\u4f7f\u7528@PostConstruct\u6ce8\u89e3\uff0c\u7528\u4e8eBean\u5b9e\u4f8b\u521d\u59cb\u5316<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\u5b9e\u73b0InitializingBean\u63a5\u53e3\uff0c\u7528\u4e8eBean\u5b9e\u4f8b\u521d\u59cb\u5316<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">xml \u4e2d\u58f0\u660e init-method \u65b9\u6cd5\uff0c\u7528\u4e8eBean\u5b9e\u4f8b\u521d\u59cb\u5316<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">Configuration \u914d\u7f6e\u7c7b \u901a\u8fc7@Bean\u6ce8\u89e3 \u6ce8\u518cBean\u5230Spring<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">BeanPostProcessor \u5728Bean\u7684\u521d\u59cb\u5316\u524d\u540e\uff0c\u690d\u5165\u6269\u5c55\u70b9\uff01<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">BeanFactoryPostProcessor \u5728BeanFactory\u521b\u5efa\u540e\u690d\u5165 \u6269\u5c55\u70b9\uff01<\/section>\n<\/li>\n<\/ol>\n<h2 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u901a\u8fc7\u6253\u5370\u65e5\u5fd7\u5b66\u4e60Spring\u7684\u6267\u884c\u987a\u5e8f<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u9996\u5148\u6211\u4eec\u5148\u901a\u8fc7 \u4ee3\u7801\u5b9e\u9a8c\uff0c\u9a8c\u8bc1\u4e00\u4e0b\u4ee5\u4e0a\u6269\u5c55\u70b9\u7684\u6267\u884c\u987a\u5e8f\u3002<\/p>\n<ol data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\u58f0\u660e <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">TestSpringOrder<\/code> \u5206\u522b\u7ee7\u627f\u4ee5\u4e0b\u63a5\u53e3\uff0c\u5e76\u4e14\u5728\u63a5\u53e3\u65b9\u6cd5\u5b9e\u73b0\u4e2d\uff0c\u65e5\u5fd7\u6253\u5370\u8be5\u63a5\u53e3\u7684\u540d\u79f0\u3002<\/section>\n<\/li>\n<\/ol>\n<pre data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: url(&quot;https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221849493.jpeg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\">2023-11-25 18:10:53,748 [main] ERROR (TestSpringOrder3:37) - \u542f\u52a8\u987a\u5e8f:BeanFactoryPostProcessor postProcessBeanFactory 2023-11-25 18:10:59,299 [main] ERROR (TestSpringOrder:53) - \u542f\u52a8\u987a\u5e8f:\u6784\u9020\u51fd\u6570 TestSpringOrder2023-11-25 18:10:59,316 [main] ERROR (TestSpringOrder:127) - \u542f\u52a8\u987a\u5e8f: Autowired2023-11-25 18:10:59,316 [main] ERROR (TestSpringOrder:129) - \u542f\u52a8\u987a\u5e8f:setBeanName2023-11-25 18:10:59,316 [main] ERROR (TestSpringOrder:111) - \u542f\u52a8\u987a\u5e8f:setBeanFactory2023-11-25 18:10:59,316 [main] ERROR (TestSpringOrder:121) - \u542f\u52a8\u987a\u5e8f:setApplicationContext2023-11-25 18:10:59,316 [main] ERROR (TestSpringOrder3:25) - \u542f\u52a8\u987a\u5e8f:BeanPostProcessor postProcessBeforeInitialization beanName:testSpringOrder2023-11-25 18:10:59,316 [main] ERROR (TestSpringOrder:63) - \u542f\u52a8\u987a\u5e8f:post-construct2023-11-25 18:10:59,317 [main] ERROR (TestSpringOrder:116) - \u542f\u52a8\u987a\u5e8f:afterPropertiesSet2023-11-25 18:10:59,317 [main] ERROR (TestSpringOrder:46) - \u542f\u52a8\u987a\u5e8f:init-method2023-11-25 18:10:59,320 [main] ERROR (TestSpringOrder3:31) - \u542f\u52a8\u987a\u5e8f:BeanPostProcessor postProcessAfterInitialization beanName:testSpringOrder2023-11-25 18:17:21,563 [main] ERROR (SpringOrderConfiguartion:21) - \u542f\u52a8\u987a\u5e8f: @Bean \u6ce8\u89e3\u65b9\u6cd5\u6267\u884c2023-11-25 18:17:21,668 [main] ERROR (TestSpringOrder:58) - \u542f\u52a8\u987a\u5e8f:SmartInitializingSingleton2023-11-25 18:17:21,675 [main] ERROR (TestSpringOrder:74) - \u542f\u52a8\u987a\u5e8f:start2023-11-25 18:17:23,508 [main] ERROR (TestSpringOrder:68) - \u542f\u52a8\u987a\u5e8f:ContextRefreshedEvent2023-11-25 18:17:23,574 [main] ERROR (TestSpringOrder:79) - \u542f\u52a8\u987a\u5e8f:CommandLineRunner<\/code><\/pre>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6211\u901a\u8fc7\u5728\u4ee5\u4e0a\u6269\u5c55\u70b9 \u6dfb\u52a0 debug \u65ad\u70b9\uff0c\u8c03\u8bd5\u4ee3\u7801\uff0c\u6574\u7406\u51fa Spring\u542f\u52a8\u539f\u7406\u7684 \u957f\u56fe\u3002\u8fc7\u7a0b\u7701\u7565\u2026\u2026\u2026\u2026<\/p>\n<h2 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u4e00\u5f20\u957f\u56fe\u900f\u5f7b\u89e3\u91ca Spring\u542f\u52a8\u987a\u5e8f<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<figure data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100041145\" data-ratio=\"2.137962962962963\"  data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221706689.jpeg\" 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-imgfileid=\"100041145\" data-ratio=\"2.137962962962963\"  data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221706689.jpeg\"  \/><\/noscript><figcaption style=\"margin-top: 5px;text-align: center;color: #888;font-size: 14px;\">Timeout\u91cd\u6784 (2).jpg<\/figcaption><\/figure>\n<h3 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>\u5b9e\u4f8b\u5316\u548c\u521d\u59cb\u5316\u7684\u533a\u522b<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">new TestSpringOrder()\uff1bnew \u521b\u5efa\u5bf9\u8c61\u5b9e\u4f8b\uff0c\u5373\u4e3a\u5b9e\u4f8b\u5316\u4e00\u4e2a\u5bf9\u8c61\uff1b\u6267\u884c\u8be5Bean\u7684 init-method \u7b49\u65b9\u6cd5 \u4e3a\u521d\u59cb\u5316\u4e00\u4e2aBean\u3002\u6ce8\u610f\u521d\u59cb\u5316\u548c\u5b9e\u4f8b\u5316\u7684\u533a\u522b\u3002<\/p>\n<h2 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">Spring \u91cd\u8981\u6269\u5c55\u70b9\u7684\u542f\u52a8\u987a\u5e8f<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<ol data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-2\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>BeanFactoryPostProcessor<\/strong>BeanFactory\u521d\u59cb\u5316\u4e4b\u540e\uff0c\u6240\u6709\u7684Bean\u5b9a\u4e49\u5df2\u7ecf\u88ab\u52a0\u8f7d\uff0c\u4f46Bean\u5b9e\u4f8b\u8fd8\u6ca1\u88ab\u521b\u5efa\uff08\u4e0d\u5305\u62ec<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">BeanFactoryPostProcessor<\/code>\u7c7b\u578b\uff09\u3002Spring IoC\u5bb9\u5668\u5141\u8bb8BeanFactoryPostProcessor\u8bfb\u53d6\u914d\u7f6e\u5143\u6570\u636e\uff0c\u4fee\u6539bean\u7684\u5b9a\u4e49\uff0cBean\u7684\u5c5e\u6027\u503c\u7b49\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>\u5b9e\u4f8b\u5316Bean<\/strong><\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">Spring \u8c03\u7528java\u53cd\u5c04API \u5b9e\u4f8b\u5316 Bean\u3002\u7b49\u540c\u4e8e new TestSpringOrder();<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>Autowired \u88c5\u914d\u4f9d\u8d56<\/strong><\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">Autowired\u662f \u501f\u52a9\u4e8e AutowiredAnnotationBeanPostProcessor \u89e3\u6790 Bean \u7684\u4f9d\u8d56\uff0c\u88c5\u914d\u4f9d\u8d56\u3002\u5982\u679c\u88ab\u4f9d\u8d56\u7684Bean\u8fd8\u672a\u521d\u59cb\u5316\uff0c\u5219\u5148\u521d\u59cb\u5316 \u88ab\u4f9d\u8d56\u7684Bean\u3002\u5728 Bean\u5b9e\u4f8b\u5316\u5b8c\u6210\u540e\uff0cSpring\u5c06\u9996\u5148\u88c5\u914dBean\u4f9d\u8d56\u7684\u5c5e\u6027\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>BeanNameAware<\/strong> setBeanName<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>BeanFactoryAware<\/strong> setBeanFactory<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>ApplicationContextAware setApplicationContext<\/strong><\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5728Bean\u5b9e\u4f8b\u5316\u524d\uff0c\u4f1a\u7387\u5148\u8bbe\u7f6eAware\u63a5\u53e3\uff0c\u4f8b\u5982 BeanNameAware BeanFactoryAware ApplicationContextAware \u7b49<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>BeanPostProcessor<\/strong> postProcessBeforeInitialization<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5982\u679c\u6211\u60f3\u5728 bean\u521d\u59cb\u5316\u65b9\u6cd5\u524d\u540e\u8981\u6dfb\u52a0\u4e00\u4e9b\u81ea\u5df1\u903b\u8f91\u5904\u7406\u3002\u53ef\u4ee5\u63d0\u4f9b BeanPostProcessor\u63a5\u53e3\u5b9e\u73b0\u7c7b\uff0c\u7136\u540e\u6ce8\u518c\u5230Spring IoC\u5bb9\u5668\u4e2d\u3002<strong>\u5728\u6b64\u63a5\u53e3\u4e2d\uff0c\u53ef\u4ee5\u521b\u5efaBean\u7684\u4ee3\u7406\uff0c\u751a\u81f3\u66ff\u6362\u8fd9\u4e2aBean\u3002<\/strong><\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>PostConstruct<\/strong> \u6267\u884c<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u63a5\u4e0b\u6765 Spring\u4f1a\u4f9d\u6b21\u8c03\u7528 Bean\u5b9e\u4f8b\u521d\u59cb\u5316\u7684 \u4e09\u5927\u65b9\u6cd5\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>InitializingBean<\/strong> afterPropertiesSet<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>init-method<\/strong> \u65b9\u6cd5\u6267\u884c<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>BeanPostProcessor<\/strong> postProcessAfterInitialization<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5728 Spring \u5bf9Bean\u7684\u521d\u59cb\u5316\u65b9\u6cd5\u6267\u884c\u5b8c\u6210\u540e\uff0c\u6267\u884c\u8be5\u65b9\u6cd5<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5176\u4ed6Bean \u5b9e\u4f8b\u5316\u548c\u521d\u59cb\u5316<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">Spring \u4f1a\u5faa\u73af\u521d\u59cb\u5316Bean\u3002\u76f4\u81f3\u6240\u6709\u7684\u5355\u4f8bBean\u90fd\u5b8c\u6210\u521d\u59cb\u5316<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u6240\u6709\u5355\u4f8bBean \u521d\u59cb\u5316\u5b8c\u6210\u540e<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">SmartInitializingSingleton Bean\u5b9e\u4f8b\u5316\u540e\u7f6e\u5904\u7406<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u8be5\u63a5\u53e3\u7684\u6267\u884c\u65f6\u673a\u5728 \u6240\u6709\u7684\u5355\u4f8bBean\u6267\u884c\u5b8c\u6210\u540e\u3002\u4f8b\u5982Spring \u4e8b\u4ef6\u8ba2\u9605\u673a\u5236\u7684 EventListener\u6ce8\u89e3\uff0c\u6240\u6709\u7684\u8ba2\u9605\u8005 \u90fd\u662f \u5728\u8fd9\u4e2a\u4f4d\u7f6e\u88ab\u6ce8\u518c\u8fdb Spring\u7684\u3002\u800c\u5728\u6b64\u4e4b\u524d\uff0cSpring Event\u8ba2\u9605\u673a\u5236\u8fd8\u672a\u521d\u59cb\u5316\u5b8c\u6210\u3002\u6240\u4ee5\u5982\u679c\u6709 MQ\u3001Rpc \u5165\u53e3\u6d41\u91cf\u5728\u6b64\u4e4b\u524d\u5f00\u542f\uff0cSpring Event\u5c31\u53ef\u80fd\u51fa\u95ee\u9898\uff01<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u6240\u4ee5\u5f3a\u70c8\u5efa\u8bae <strong>Http\u3001MQ\u3001Rpc \u5165\u53e3\u6d41\u91cf\u5728 SmartInitializingSingleton \u4e4b\u540e\u5f00\u542f\u6d41\u91cf\u3002<\/strong><\/p>\n<\/section>\n<\/li>\n<\/ol>\n<blockquote data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;border-left-color: rgb(239, 112, 96);background: rgb(255, 249, 249);\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">Http\u3001MQ\u3001Rpc \u5165\u53e3\u6d41\u91cf\u5fc5\u987b\u5728 SmartInitializingSingleton \u4e4b\u540e\u5f00\u542f\u6d41\u91cf\u3002<\/p>\n<\/blockquote>\n<ol start=\"15\" data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">SmartLifecyle smart start \u65b9\u6cd5\u6267\u884c Spring \u63d0\u4f9b\u7684\u6269\u5c55\u70b9\uff0c\u5728\u6240\u6709\u5355\u4f8bBean\u7684 EventListener\u7b49\u7ec4\u4ef6\u5168\u90e8\u542f\u52a8\u5b8c\u6210\u540e\uff0c\u5373Spring\u542f\u52a8\u5b8c\u6210\uff0c\u5219\u6267\u884c start \u65b9\u6cd5\u3002\u5728\u8fd9\u4e2a\u4f4d\u7f6e\u9002\u5408\u5f00\u542f\u5165\u53e3\u6d41\u91cf\uff01<\/section>\n<\/li>\n<\/ol>\n<blockquote data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;border-left-color: rgb(239, 112, 96);background: rgb(255, 249, 249);\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">Http\u3001MQ\u3001Rpc \u5165\u53e3\u6d41\u91cf\u9002\u5408 \u5728 SmartLifecyle \u4e2d\u5f00\u542f<\/p>\n<\/blockquote>\n<ol start=\"16\" data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u53d1\u5e03 ContextRefreshedEvent \u65b9\u6cd5 \u8be5\u4e8b\u4ef6\u4f1a\u6267\u884c\u591a\u6b21\uff0c\u5728 Spring Refresh \u6267\u884c\u5b8c\u6210\u540e\uff0c\u5c31\u4f1a\u53d1\u5e03\u8be5\u4e8b\u4ef6\uff01<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u6ce8\u518c\u548c\u521d\u59cb\u5316 Spring MVC<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">SpringBoot \u5e94\u7528\uff0c\u5728\u7236\u7ea7 Spring\u542f\u52a8\u5b8c\u6210\u540e\uff0c\u4f1a\u5c1d\u8bd5\u542f\u52a8 \u5185\u5d4c\u5f0f tomcat\u5bb9\u5668\u3002\u5728\u6b64\u4e4b\u524d\uff0cSpringBoot\u4f1a\u521d\u59cb\u5316 SpringMVC \u548c\u6ce8\u518cDispatcherServlet\u5230Web\u5bb9\u5668\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">Tomcat\/Jetty \u5bb9\u5668\u5f00\u542f\u7aef\u53e3<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">SpringBoot \u8c03\u7528\u5185\u5d4c\u5f0f\u5bb9\u5668\uff0c\u4f1a\u5f00\u542f\u5e76\u76d1\u542c\u7aef\u53e3\uff0c\u6b64\u65f6Http\u6d41\u91cf\u5c31\u5f00\u542f\u4e86\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u5e94\u7528\u542f\u52a8\u5b8c\u6210\u540e\uff0c\u6267\u884c CommandLineRunner<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">SpringBoot \u7279\u6709\u7684\u673a\u5236\uff0c\u5f85\u6240\u6709\u7684\u5b8c\u5168\u6267\u884c\u5b8c\u6210\u540e\uff0c\u4f1a\u6267\u884c\u8be5\u63a5\u53e3 run\u65b9\u6cd5\u3002\u503c\u5f97\u4e00\u63d0\u7684\u662f\uff0c\u7531\u4e8e\u6b64\u65f6Http\u6d41\u91cf\u5df2\u7ecf\u5f00\u542f\uff0c\u5982\u679c\u6b64\u65f6\u8fdb\u884c\u672c\u5730\u7f13\u5b58\u521d\u59cb\u5316\u3001\u9884\u70ed\u7f13\u5b58\u7b49\uff0c\u7a0d\u5fae\u6709\u4e9b\u665a\u4e86\uff01\u5728\u8fd9\u4e2a\u95f4\u9694\u671f\uff0c\u53ef\u80fd\u7f13\u5b58\u8fd8\u672a\u5c31\u7eea\uff01<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\">\u6240\u4ee5\u9884\u70ed\u7f13\u5b58\u7684\u65f6\u673a\u5e94\u8be5\u53d1\u751f\u5728 \u5165\u53e3\u6d41\u91cf\u5f00\u542f\u4e4b\u524d\uff0c\u6bd4\u8f83\u5408\u9002\u7684\u673a\u4f1a\u662f\u5728 Bean\u521d\u59cb\u5316\u7684\u9636\u6bb5\u3002\u867d\u7136 \u5728Bean\u521d\u59cb\u5316\u65f6 Spring\u5c1a\u672a\u5b8c\u6210\u542f\u52a8\uff0c\u4f46\u662f\u8c03\u7528 Bean\u9884\u70ed\u7f13\u5b58\u4e5f\u662f\u53ef\u4ee5\u7684\u3002\u4f46\u662f\u6ce8\u610f\uff1a\u4e0d\u8981\u5728 Bean\u521d\u59cb\u5316\u65f6 \u4f7f\u7528 Spring Event\uff0c\u56e0\u4e3a\u5b83\u8fd8\u672a\u5b8c\u6210\u521d\u59cb\u5316 \u3002<\/p>\n<\/section>\n<\/li>\n<\/ol>\n<h2 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u56de\u7b54 \u5173\u4e8e Spring \u542f\u52a8\u539f\u7406\u7684\u82e5\u5e72\u95ee\u9898<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<ol data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">init-method\u3001PostConstruct\u3001afterPropertiesSet \u4e09\u4e2a\u65b9\u6cd5\u7684\u6267\u884c\u987a\u5e8f\u3002<\/section>\n<\/li>\n<\/ol>\n<blockquote data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;border-left-color: rgb(239, 112, 96);background: rgb(255, 249, 249);\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">\u56de\u7b54\uff1aPostConstruct\uff0cafterPropertiesSet\uff0cinit-method<\/p>\n<\/blockquote>\n<ol start=\"2\" data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\u6709\u4e24\u4e2a Bean\u58f0\u660e\u4e86\u521d\u59cb\u5316\u65b9\u6cd5\u3002A\u4f7f\u7528 PostConstruct\u6ce8\u89e3\u58f0\u660e\uff0cB\u4f7f\u7528 init-method \u58f0\u660e\u3002Spring\u4e00\u5b9a\u5148\u6267\u884c A \u7684PostConstruct \u65b9\u6cd5\u5417\uff1f<\/section>\n<\/li>\n<\/ol>\n<blockquote data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;border-left-color: rgb(239, 112, 96);background: rgb(255, 249, 249);\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">\u56de\u7b54\uff1aSpring \u4f1a\u5faa\u73af\u521d\u59cb\u5316Bean\u5b9e\u4f8b\uff0c\u521d\u59cb\u5316\u5b8c\u62101\u4e2aBean\uff0c\u518d\u521d\u59cb\u5316\u4e0b\u4e00\u4e2aBean\u3002Spring\u5e76\u6ca1\u6709\u4f7f\u7528\u8fd9\u79cd\u673a\u5236\u542f\u52a8\uff0c\u5373\u6240\u6709\u7684Bean\u5148\u6267\u884c PostConstruct\uff0c\u518d\u7edf\u4e00\u6267\u884cafterProperfiesSet\u3002<\/p>\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">\u6b64\u5916\uff0cA\u3001B\u4e24\u4e2aBean\u7684\u521d\u59cb\u5316\u987a\u5e8f\u4e0d\u786e\u5b9a\uff0c\u8c01\u5148\u8c01\u540e\u4e0d\u786e\u5b9a\u3002\u65e0\u6cd5\u4fdd\u8bc1 A \u7684PostConstruct \u4e00\u5b9a\u5148\u6267\u884c\u3002\u9664\u975e\u4f7f\u7528 Order\u6ce8\u89e3\uff0c\u58f0\u660eBean\u7684\u521d\u59cb\u5316\u987a\u5e8f\uff01<\/p>\n<\/blockquote>\n<ol start=\"3\" data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">Spring \u4f55\u65f6\u88c5\u914dAutowire\u5c5e\u6027\uff0cPostConstruct\u65b9\u6cd5\u4e2d\u5f15\u7528 Autowired \u5b57\u6bb5\u662f\u5426\u4f1a\u7a7a\u6307\u9488?<\/section>\n<\/li>\n<\/ol>\n<blockquote data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;border-left-color: rgb(239, 112, 96);background: rgb(255, 249, 249);\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">Autowired\u88c5\u914d\u4f9d\u8d56\u53d1\u751f\u5728 PostConstruct\u4e4b\u524d\uff0c\u4e0d\u4f1a\u51fa\u73b0\u7a7a\u6307\u9488\uff01<\/p>\n<\/blockquote>\n<ol start=\"4\" data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">PostConstruct \u4e2d\u65b9\u6cd5\u4f9d\u8d56ApplicationContextAware\u62ff\u5230 ApplicationContext\uff0c\u4e24\u8005\u7684\u987a\u5e8f\u8c01\u5148\u8c01\u540e\uff1f\u662f\u5426\u4f1a\u51fa\u73b0\u7a7a\u6307\u9488!<\/section>\n<\/li>\n<\/ol>\n<blockquote data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;border-left-color: rgb(239, 112, 96);background: rgb(255, 249, 249);\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">ApplicationContextAware \u4f1a\u5148\u6267\u884c\uff0c\u4e0d\u4f1a\u51fa\u73b0\u7a7a\u6307\u9488\uff01\u4f46\u662f\u5f53Autowired\u6ca1\u6709\u627e\u5230\u5bf9\u5e94\u7684\u4f9d\u8d56\uff0c\u5e76\u4e14\u58f0\u660e\u4e86\u975e\u5f3a\u5236\u4f9d\u8d56\u65f6\uff0c\u8be5\u5b57\u6bb5\u4f1a\u4e3a\u7a7a\uff0c\u6709\u6f5c\u5728 \u7a7a\u6307\u9488\u98ce\u9669\u3002<\/p>\n<\/blockquote>\n<ol start=\"11\" data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\u9879\u76ee\u5e94\u8be5\u5982\u4f55\u76d1\u542c Spring \u7684\u542f\u52a8\u5c31\u7eea\u4e8b\u4ef6\u3002<\/section>\n<\/li>\n<\/ol>\n<blockquote data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;border-left-color: rgb(239, 112, 96);background: rgb(255, 249, 249);\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">\u901a\u8fc7SmartLifecyle start\u65b9\u6cd5\uff0c\u76d1\u542cSpring\u5c31\u7eea \u3002\u9002\u5408\u5728\u6b64\u5f00\u542f\u5165\u53e3\u6d41\u91cf\uff01<\/p>\n<\/blockquote>\n<ol start=\"13\" data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\u9879\u76ee\u5982\u4f55\u76d1\u542cSpring \u5237\u65b0\u4e8b\u4ef6\u3002<\/section>\n<\/li>\n<\/ol>\n<blockquote data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;border-left-color: rgb(239, 112, 96);background: rgb(255, 249, 249);\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">\u76d1\u542c Spring Event ContextRefreshedEvent<\/p>\n<\/blockquote>\n<ol start=\"15\" data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">Spring\u5c31\u7eea\u4e8b\u4ef6\u548c\u5237\u65b0\u4e8b\u4ef6\u7684\u6267\u884c\u987a\u5e8f\u548c\u533a\u522b\u3002<\/section>\n<\/li>\n<\/ol>\n<blockquote data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;border-left-color: rgb(239, 112, 96);background: rgb(255, 249, 249);\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">Spring\u5c31\u7eea\u4e8b\u4ef6\u4f1a\u5148\u4e8e \u5237\u65b0\u4e8b\u4ef6\u3002\u4e24\u8005\u90fd\u53ef\u80fd\u591a\u6b21\u6267\u884c\uff0c\u8981\u786e\u4fdd\u65b9\u6cd5\u7684\u5e42\u7b49\u5904\u7406\uff0c\u907f\u514d\u91cd\u590d\u6ce8\u518c\u95ee\u9898<\/p>\n<\/blockquote>\n<ol start=\"16\" data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">Http \u6d41\u91cf\u5165\u53e3\u4f55\u65f6\u542f\u52a8\u5b8c\u6210\u3002<\/section>\n<\/li>\n<\/ol>\n<blockquote data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;border-left-color: rgb(239, 112, 96);background: rgb(255, 249, 249);\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">SpringBoot \u6700\u540e\u9636\u6bb5\uff0c\u542f\u52a8\u5b8c\u6210Spring \u4e0a\u4e0b\u6587\uff0c\u624d\u5f00\u542fHttp\u5165\u53e3\u6d41\u91cf\uff0c\u6b64\u65f6 SmartLifecycle#start \u5df2\u6267\u884c\u3002\u6240\u6709\u5355\u4f8bBean\u548cSpringEvent\u7b49\u7ec4\u4ef6\u90fd\u5df2\u7ecf\u5c31\u7eea\uff01<\/p>\n<\/blockquote>\n<ol start=\"17\" data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\u9879\u76ee\u4e2d\u5728 init-method \u65b9\u6cd5\u4e2d\u6ce8\u518c Rpc\u662f\u5426\u5408\u7406\uff1f\u4ec0\u4e48\u662f\u5408\u7406\u7684\u65f6\u673a\uff1f<\/section>\n<\/li>\n<\/ol>\n<blockquote data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;border-left-color: rgb(239, 112, 96);background: rgb(255, 249, 249);\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">init \u5f00\u542fRpc\u6d41\u91cf\u975e\u5e38\u4e0d\u5408\u7406\u3002\u56e0\u4e3aSpring\u5c1a\u672a\u542f\u52a8\u5b8c\u6210\uff0c\u5305\u62ec Spring Event\u5c1a\u672a\u5c31\u7eea\uff01<\/p>\n<\/blockquote>\n<ol start=\"18\" data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">\u9879\u76ee\u4e2d\u5728 init-method \u65b9\u6cd5\u4e2d\u6ce8\u518c MQ\u6d88\u8d39\u7ec4\u662f\u5426\u5408\u7406\uff1f\u4ec0\u4e48\u662f\u5408\u7406\u7684\u65f6\u673a\uff1f<\/section>\n<\/li>\n<\/ol>\n<blockquote data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;border-left-color: rgb(239, 112, 96);background: rgb(255, 249, 249);\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">init \u5f00\u542f MQ \u6d41\u91cf\u975e\u5e38\u4e0d\u5408\u7406\u3002\u56e0\u4e3aSpring\u5c1a\u672a\u542f\u52a8\u5b8c\u6210\uff0c\u5305\u62ec Spring Event\u5c1a\u672a\u5c31\u7eea\uff01<\/p>\n<\/blockquote>\n<ol start=\"22\" data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1, 1, 1);\">Spring\u8fd8\u672a\u5b8c\u5168\u542f\u52a8\uff0c\u5728 PostConstruct \u4e2d\u8c03\u7528 getBeanByAnnotation\u80fd\u5426\u83b7\u5f97\u51c6\u786e\u7684\u7ed3\u679c\uff1f<\/section>\n<\/li>\n<\/ol>\n<blockquote data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;border-left-color: rgb(239, 112, 96);background: rgb(255, 249, 249);\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">\u867d\u7136\u672a\u542f\u52a8\u5b8c\u6210\uff0c\u4f46\u662fSpring\u6267\u884c\u8be5getBeanByAnnotation\u65b9\u6cd5\u65f6\uff0c\u4f1a\u7387\u5148\u68c0\u67e5 Bean\u5b9a\u4e49\uff0c\u5982\u679cBean\u5b9a\u4e49\u5bf9\u5e94\u7684 Bean\u5c1a\u672a\u521d\u59cb\u5316\uff0c\u5219\u521d\u59cb\u5316\u8fd9\u4e9bBean\u3002<\/p>\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">\u6240\u4ee5\u5373\u4fbf\u662fSpring\u521d\u59cb\u5316\u8fc7\u7a0b\u4e2d\u8c03\u7528\uff0c\u8c03\u7528\u7ed3\u679c\u662f\u51c6\u786e\u7684\u3002<\/p>\n<\/blockquote>\n<h2 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6e90\u7801\u7ea7\u522b\u4ecb\u7ecd<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<h3 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>SmartInitializingSingleton \u63a5\u53e3\u7684\u6267\u884c\u4f4d\u7f6e<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u4e0b\u56fe\u4ee3\u7801\u8bf4\u660e\u4e86\uff0cSpring\u5728\u521d\u59cb\u5316\u5168\u90e8 \u5355\u4f8bBean\u4ee5\u540e\uff0c\u4f1a\u6267\u884c SmartInitializingSingleton \u63a5\u53e3\u3002<img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100041144\" data-ratio=\"0.8555555555555555\"  data-type=\"png\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221726569.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-imgfileid=\"100041144\" data-ratio=\"0.8555555555555555\"  data-type=\"png\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221726569.png\"  \/><\/noscript><\/p>\n<h3 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>Autowired \u4f55\u65f6\u88c5\u914dBean\u7684\u4f9d\u8d56<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5728Bean\u5b9e\u4f8b\u5316\u4e4b\u540e\uff0c\u4f46\u521d\u59cb\u5316\u4e4b\u524d\uff0c<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">AutowiredAnnotationBeanPostProcessor<\/code> \u4f1a\u6ce8\u5165Autowired\u5b57\u6bb5\u3002<img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100041142\" data-ratio=\"0.12222222222222222\"  data-type=\"png\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221743349.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-imgfileid=\"100041142\" data-ratio=\"0.12222222222222222\"  data-type=\"png\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221743349.png\"  \/><\/noscript><\/p>\n<h3 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>SpringBoot \u4f55\u65f6\u5f00\u542fHttp\u7aef\u53e3<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u4e0b\u56fe\u4ee3\u7801\u4e2d\u53ef\u4ee5\u770b\u5230\uff0cSpringBoot\u4f1a\u9996\u5148\u542f\u52a8 Spring\u4e0a\u4e0b\u6587\uff0c\u5b8c\u6210\u540e\u624d\u542f\u52a8 \u5d4c\u5165\u5f0fWeb\u5bb9\u5668\uff0c\u521d\u59cb\u5316SpringMVC\uff0c\u76d1\u542c\u7aef\u53e3<img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100041143\" data-ratio=\"0.4638888888888889\"  data-type=\"png\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221753249.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-imgfileid=\"100041143\" data-ratio=\"0.4638888888888889\"  data-type=\"png\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221753249.png\"  \/><\/noscript><\/p>\n<h3 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>Spring \u521d\u59cb\u5316Bean\u7684\u5173\u952e\u4ee3\u7801<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u4e0b\u56fe\u6211\u52a0\u4e86\u6ce8\u91ca\uff0cSpring\u521d\u59cb\u5316Bean\u7684\u5173\u952e\u4ee3\u7801\uff0c\u5168\u5728 \u8fd9\u4e2a\u65b9\u6cd5\u91cc\uff0c\u611f\u5174\u8da3\u7684\u53ef\u4ee5\u81ea\u884c\u67e5\u9605\u4ee3\u7801 \u3002AbstractAutowireCapableBeanFactory#initializeBean<\/p>\n<figure data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100041150\" data-ratio=\"0.5664335664335665\"  data-type=\"png\" data-w=\"1001\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221809993.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-imgfileid=\"100041150\" data-ratio=\"0.5664335664335665\"  data-type=\"png\" data-w=\"1001\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221809993.png\"  \/><\/noscript><figcaption style=\"margin-top: 5px;text-align: center;color: #888;font-size: 14px;\">image.png<\/figcaption><\/figure>\n<h3 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px;\"><span style=\"display: none;\"><\/span>Spring CommandLineRunner \u6267\u884c\u4f4d\u7f6e<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">Spring Boot\u5916\u90e8\uff0c\u5f53\u542f\u52a8\u5b8cSpring\u4e0a\u4e0b\u6587\u4ee5\u540e\uff0c\u6700\u540e\u624d\u542f\u52a8 CommandLineRunner\u3002<img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100041151\" data-ratio=\"0.4462962962962963\"  data-type=\"png\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221824493.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-imgfileid=\"100041151\" data-ratio=\"0.4462962962962963\"  data-type=\"png\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221824493.png\"  \/><\/noscript><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100041149\" data-ratio=\"0.1537037037037037\"  data-type=\"png\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221838847.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-imgfileid=\"100041149\" data-ratio=\"0.1537037037037037\"  data-type=\"png\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;width: auto;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221838847.png\"  \/><\/noscript><\/p>\n<h2 data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u603b\u7ed3<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">SpringBoot \u4f1a\u5728Spring\u5b8c\u5168\u542f\u52a8\u5b8c\u6210\u540e\uff0c\u624d\u5f00\u542fHttp\u6d41\u91cf\u3002\u8fd9\u7ed9\u4e86\u6211\u4eec\u542f\u793a\uff1a<strong>\u5e94\u8be5\u5728Spring\u542f\u52a8\u5b8c\u6210\u540e\u5f00\u542f\u5165\u53e3\u6d41\u91cf<\/strong>\u3002Rpc\u548c MQ\u6d41\u91cf \u4e5f\u5e94\u8be5\u5982\u6b64\uff0c\u6240\u4ee5\u5efa\u8bae\u5927\u5bb6 \u5728 SmartLifecype \u6216\u8005 ContextRefreshedEvent \u7b49\u4f4d\u7f6e \u6ce8\u518c\u670d\u52a1\uff0c\u5f00\u542f\u6d41\u91cf\u3002<\/p>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u4f8b\u5982 Spring Cloud <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(239, 112, 96);\">Eureka<\/code> \u670d\u52a1\u53d1\u73b0\u7ec4\u4ef6\uff0c\u5c31\u662f\u5728 SmartLifecype\u4e2d\u6ce8\u518c\u670d\u52a1\u7684\uff01<\/p>\n<p data-tool=\"markdown.com.cn\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6574\u7406 10 \u4e2a\u5c0f\u65f6\u5199\u5b8c\u672c\u7bc7\u6587\u7ae0\uff0c\u5e0c\u671b\u5927\u5bb6\u6709\u6240\u6536\u83b7\u3002<\/p>\n<\/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\u4e13\u680f              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u867d\u7136Java\u7a0b\u5e8f\u5458\u5927\u90e8\u5206\u5de5\u4f5c\u90fd\u662fCRUD\uff0c\u4f46\u662f\u5de5\u4f5c\u4e2d\u5e38\u7528\u7684\u4e2d\u95f4\u4ef6\u5fc5\u987b\u548cSpring\u96c6\u6210\uff0c\u5982\u679c\u4e0d\u77e5\u9053Spring\u7684\u539f\u7406\uff0c\u5f88\u96be\u7406\u89e3\u8fd9\u4e9b &#8230;<\/p>\n","protected":false},"author":1,"featured_media":5492,"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-5548","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\/2024\/08\/20240801221633103-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221650976.jpeg","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221633103-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221633103-1024x436.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221650976.jpeg","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221633103-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221633103-1024x436.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221633103.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221650976.jpeg","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221650976.jpeg","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221706689.jpeg","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221706689.jpeg","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221726569.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221726569.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221743349.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221743349.png","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221753249.png","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221753249.png","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221809993.png","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221809993.png","id":"image11"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221824493.png","id":"image12"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221824493.png","id":"image13"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221838847.png","id":"image14"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801221838847.png","id":"image15"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring Boot","post_date":"2024-08-01","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":918,"next_post_id":5605,"next_post_title":"Spring Boot\u96c6\u6210jsoup\u5b9e\u73b0html\u89e3\u6790","previous_post_id":5251,"previous_post_title":"SpringBoot \u81ea\u5b9a\u4e49\u542f\u52a8\u753b\u9762","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/5548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=5548"}],"version-history":[{"count":1,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/5548\/revisions"}],"predecessor-version":[{"id":6359,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/5548\/revisions\/6359"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/5492"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=5548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=5548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=5548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}