{"id":4816,"date":"2024-08-01T22:48:04","date_gmt":"2024-08-01T14:48:04","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=4816"},"modified":"2024-08-01T22:48:04","modified_gmt":"2024-08-01T14:48:04","slug":"%e9%9d%a2%e8%af%95%e5%ae%98%ef%bc%9aspring-boot-%e7%9a%84%e5%90%af%e5%8a%a8%e5%8e%9f%e7%90%86%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/%e9%9d%a2%e8%af%95%e5%ae%98%ef%bc%9aspring-boot-%e7%9a%84%e5%90%af%e5%8a%a8%e5%8e%9f%e7%90%86%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/","title":{"rendered":"\u9762\u8bd5\u5b98\uff1aSpring Boot \u7684\u542f\u52a8\u539f\u7406\u662f\u4ec0\u4e48\uff1f"},"content":{"rendered":"<div class='wxsyncmain'>\n<section data-mpa-powered-by=\"yiban.io\"><\/section>\n<pre style=\"margin-bottom: 0em;outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);font-size: 16px;text-align: left;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);color: rgb(34, 34, 34);font-weight: 700;widows: 1;visibility: visible;\"><p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"outline: 0px;letter-spacing: 0.544px;word-spacing: 0.8px;white-space: normal;color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;visibility: visible;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU4NjQ1NDkyNQ==&amp;mid=2247509207&amp;idx=1&amp;sn=82b017d319fdb8e083bff7a874730608&amp;chksm=fdf9e635ca8e6f235e08166aaaa94eedb24e77c456ddd71f9d29b8988353b2263a6389f51285&amp;scene=21#wechat_redirect\" textvalue=\"\ud83d\udc4f2024\u6700\u65b0,\u94bb\u77f3VIP\u5b66\u200d\u4e60\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" style=\"font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;word-spacing: 0.8px;text-decoration: underline;\" rel=\"noopener\" rel=\"nofollow\" ><span style=\"outline: 0px;color: rgb(255, 255, 255);visibility: visible;\"><em style=\"outline: 0px;visibility: visible;\"><strong style=\"outline: 0px;visibility: visible;\"><span style=\"outline: 0px;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);cursor: pointer;font-size: 20px;visibility: visible;background-color: rgb(255, 41, 65);\">\ud83d\udc4f2024\u6700\u65b0,\u94bb\u77f3VIP\u5b66\u4e60<\/span><\/strong><\/em><em style=\"outline: 0px;visibility: visible;\"><strong style=\"outline: 0px;visibility: visible;\"><\/strong><\/em><\/span><\/a><\/p><p style=\"outline: 0px;letter-spacing: 0.544px;word-spacing: 0.8px;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;white-space: normal;visibility: visible;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU4NjQ1NDkyNQ==&amp;mid=2247508994&amp;idx=1&amp;sn=24e68d8cef6083024edab0dc8c1c8688&amp;chksm=fdf9e6e0ca8e6ff672a7dd9879f242f907caa5d10c6df87e6d9f15535bb107ffe90fc29ea713&amp;scene=21#wechat_redirect\" textvalue=\"\ud83d\ude09\u8d85\u5168\u6280\u672f\u200d\u6808\u7684Java\u5165\u95e8+\u8fdb\u9636+\u5b9e\u6218\uff01\uff08\u70b9\u51fb\u67e5\u770b\uff09\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" style=\"outline: 0px;visibility: visible;color: rgb(255, 255, 255);background-color: rgb(255, 76, 0);text-decoration: underline;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" ><strong style=\"outline: 0px;letter-spacing: 0.544px;word-spacing: 0.8px;font-size: 15px;color: rgb(255, 169, 0);visibility: visible;\"><span style=\"background-color: rgb(255, 76, 0);color: rgb(255, 255, 255);outline: 0px;font-size: 20px;letter-spacing: 0.5px;font-family: Optima-Regular, PingFangTC-light;visibility: visible;\"><strong style=\"outline: 0px;letter-spacing: 0.544px;color: rgb(136, 136, 136);font-family: Arial, Helvetica, sans-serif;font-size: 12px;visibility: visible;\"><span style=\"background-color: rgb(255, 76, 0);color: rgb(255, 255, 255);outline: 0px;font-size: 20px;letter-spacing: 0.544px;word-spacing: 1px;caret-color: rgb(255, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;visibility: visible;\"><em style=\"outline: 0px;visibility: visible;\"><strong style=\"outline: 0px;visibility: visible;\">\ud83d\ude092024\u79c1\u6d3b\u8054\u76df\u6574\u8d77\uff01<\/strong><\/em><\/span><\/strong><\/span><\/strong><strong style=\"outline: 0px;letter-spacing: 0.544px;word-spacing: 0.8px;font-size: 15px;color: rgb(255, 169, 0);visibility: visible;\"><\/strong><strong style=\"outline: 0px;letter-spacing: 0.544px;word-spacing: 0.8px;font-size: 15px;color: rgb(255, 169, 0);visibility: visible;\"><\/strong><\/a><\/p><\/pre>\n<p style=\"margin-bottom: 0px;\">\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\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=\"mdnice\u7f16\u8f91\u5668\" data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&amp;from=appmsg\" data-fail=\"0\" style=\"margin-top: 1em;margin-bottom: 10px;outline: 0px;font-weight: bold;font-size: 22px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;background: url(&quot;https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&quot;) center center \/ 50px no-repeat rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"margin-top: 38px;margin-bottom: 10px;outline: 0px;display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;font-size: 18px;\">\u4e00\u5f20\u957f\u56fe\u900f\u5f7b\u89e3\u91ca Spring\u542f\u52a8\u987a\u5e8f<\/span><\/h2>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100046428\" data-ratio=\"2.137962962962963\" data-w=\"1080\" style=\"margin: auto;outline: 0px;display: block;border-radius: 4px;float: none;visibility: visible !important;width: 656.992px !important;height: auto !important;\"  data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213655898.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=\"100046428\" data-ratio=\"2.137962962962963\" data-w=\"1080\" style=\"margin: auto;outline: 0px;display: block;border-radius: 4px;float: none;visibility: visible !important;width: 656.992px !important;height: auto !important;\"  src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213655898.png\"  \/><\/noscript><figcaption style=\"margin-top: 5px;outline: 0px;text-align: center;color: rgb(136, 136, 136);font-size: 12px;font-family: PingFangSC-Light;\">\u56fe\u7247<\/figcaption><\/figure>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&amp;from=appmsg\" data-fail=\"0\" style=\"margin-top: 1em;margin-bottom: 10px;outline: 0px;font-weight: bold;font-size: 22px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;background: url(&quot;https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&quot;) center center \/ 50px no-repeat rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"margin-top: 38px;margin-bottom: 10px;outline: 0px;display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;font-size: 18px;\">\u6d4b\u8bd5\u5bf9Spring\u542f\u52a8\u539f\u7406\u7684\u7406\u89e3\u7a0b\u5ea6<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\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<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" class=\"list-paddingleft-1\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: black;\">\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\">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\uff1f<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">init-method<\/code>\u4e2d\u884c\u4e0d\u884c\uff1f<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\">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\uff1f<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">init-method<\/code>\u4e2d\u884c\u4e0d\u884c\uff1f<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\">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<\/section>\n<\/li>\n<\/ul>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">SpringBoot\u9879\u76ee\u5e38\u89c1\u7684\u6d41\u91cf\u5165\u53e3\u65e0\u5916\u4e4e Rpc\u3001Http\u3001MQ \u4e09\u79cd\u65b9\u5f0f\u3002\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\uff1f\u6700\u8fd1\u6211\u9047\u5230\u7684\u4e24\u6b21\u7ebf\u4e0a\u6545\u969c\u90fd\u548cSpring\u542f\u52a8\u8fc7\u7a0b\u76f8\u5173\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\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\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=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\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 <code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">init-method bean<\/code>\u5b9e\u4f8b\u5316\u9636\u6bb5\u5c31\u5f00\u542f\u4e86\u6d41\u91cf\uff0c\u5bfc\u81f4\u6545\u969c\u53d1\u751f\u3002\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=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\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=\"mdnice\u7f16\u8f91\u5668\" class=\"list-paddingleft-2\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: black;\">\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\">Spring\u8fd8\u672a\u5b8c\u5168\u542f\u52a8\uff0c\u5728<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">PostConstruct<\/code>\u4e2d\u8c03\u7528<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">getBeanByAnnotation<\/code>\u80fd\u5426\u83b7\u5f97\u51c6\u786e\u7684\u7ed3\u679c\uff1f<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;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 style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\">\u9879\u76ee\u5982\u4f55\u76d1\u542cSpring \u5237\u65b0\u4e8b\u4ef6\uff1f<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;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 style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\">Http \u6d41\u91cf\u5165\u53e3\u4f55\u65f6\u542f\u52a8\u5b8c\u6210\uff1f<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\">\u9879\u76ee\u4e2d\u5728<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">init-method<\/code>\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 style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\">\u9879\u76ee\u4e2d\u5728<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">init-method<\/code>\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 style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\"><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">PostConstruct<\/code>\u4e2d\u65b9\u6cd5\u4f9d\u8d56<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">ApplicationContextAware<\/code>\u62ff\u5230<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">ApplicationContext<\/code>\uff0c\u4e24\u8005\u7684\u987a\u5e8f\u8c01\u5148\u8c01\u540e\uff1f\u662f\u5426\u4f1a\u51fa\u73b0\u7a7a\u6307\u9488!<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\"><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">init-method<\/code>\u3001<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">PostConstruct<\/code>\u3001<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">afterPropertiesSet<\/code>\u4e09\u4e2a\u65b9\u6cd5\u7684\u6267\u884c\u987a\u5e8f?<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\">\u6709\u4e24\u4e2a Bean\u58f0\u660e\u4e86\u521d\u59cb\u5316\u65b9\u6cd5\u3002A\u4f7f\u7528<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">PostConstruct<\/code>\u6ce8\u89e3\u58f0\u660e\uff0cB\u4f7f\u7528<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">init-method<\/code>\u58f0\u660e\u3002Spring\u4e00\u5b9a\u5148\u6267\u884c A \u7684<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">PostConstruct<\/code>\u65b9\u6cd5\u5417\uff1f<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\">Spring \u4f55\u65f6\u88c5\u914dAutowire\u5c5e\u6027\uff0c<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">PostConstruct<\/code>\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=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u7cbe\u901aSpring \u542f\u52a8\u539f\u7406\uff0c\u4ee5\u4e0a\u95ee\u9898\u5219\u8fce\u5203\u800c\u89e3\u3002\u63a5\u4e0b\u6765\uff0c\u5927\u5bb6\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=\"mdnice\u7f16\u8f91\u5668\" data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&amp;from=appmsg\" data-fail=\"0\" style=\"margin-top: 1em;margin-bottom: 10px;outline: 0px;font-weight: bold;font-size: 22px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;background: url(&quot;https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&quot;) center center \/ 50px no-repeat rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"margin-top: 38px;margin-bottom: 10px;outline: 0px;display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;font-size: 18px;\">\u4e00\u8d77\u6570\u6570 Spring\u542f\u52a8\u8fc7\u7a0b\u7684\u6269\u5c55\u70b9\u6709\u51e0\u4e2a\uff1f<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">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=\"mdnice\u7f16\u8f91\u5668\" class=\"list-paddingleft-2\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: black;\">\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\"><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">BeanFactoryAware<\/code>\u53ef\u5728Bean \u4e2d\u83b7\u53d6<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">BeanFactory<\/code>\u5b9e\u4f8b<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\"><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">ApplicationContextAware<\/code>\u53ef\u5728Bean \u4e2d\u83b7\u53d6<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">ApplicationContext<\/code>\u5b9e\u4f8b<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\"><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">BeanNameAware<\/code>\u53ef\u4ee5\u5728Bean\u4e2d\u5f97\u5230\u5b83\u5728IOC\u5bb9\u5668\u4e2d\u7684Bean\u7684\u5b9e\u4f8b\u7684\u540d\u5b57\u3002<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\"><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">ApplicationListener<\/code>\u53ef\u76d1\u542c<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">ContextRefreshedEvent<\/code>\u7b49\u3002<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\"><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">CommandLineRunner<\/code>\u6574\u4e2a\u9879\u76ee\u542f\u52a8\u5b8c\u6bd5\u540e\uff0c\u81ea\u52a8\u6267\u884c<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\"><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">SmartLifecycle#start<\/code>\u5728Spring Bean\u5b9e\u4f8b\u5316\u5b8c\u6210\u540e\uff0c\u6267\u884cstart \u65b9\u6cd5\u3002<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\">\u4f7f\u7528<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">@PostConstruct<\/code>\u6ce8\u89e3\uff0c\u7528\u4e8eBean\u5b9e\u4f8b\u521d\u59cb\u5316<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\">\u5b9e\u73b0<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">InitializingBean<\/code>\u63a5\u53e3\uff0c\u7528\u4e8eBean\u5b9e\u4f8b\u521d\u59cb\u5316<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\">xml \u4e2d\u58f0\u660e<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">init-method<\/code>\u65b9\u6cd5\uff0c\u7528\u4e8eBean\u5b9e\u4f8b\u521d\u59cb\u5316<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\"><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">Configuration<\/code>\u914d\u7f6e\u7c7b \u901a\u8fc7@Bean\u6ce8\u89e3 \u6ce8\u518cBean\u5230Spring<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\"><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">BeanPostProcessor<\/code>\u5728Bean\u7684\u521d\u59cb\u5316\u524d\u540e\uff0c\u690d\u5165\u6269\u5c55\u70b9\uff01<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);\"><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">BeanFactoryPostProcessor<\/code>\u5728<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">BeanFactory<\/code>\u521b\u5efa\u540e\u690d\u5165 \u6269\u5c55\u70b9\uff01<\/section>\n<\/li>\n<\/ol>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&amp;from=appmsg\" data-fail=\"0\" style=\"margin-top: 1em;margin-bottom: 10px;outline: 0px;font-weight: bold;font-size: 22px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;background: url(&quot;https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&quot;) center center \/ 50px no-repeat rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"margin-top: 38px;margin-bottom: 10px;outline: 0px;display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;font-size: 18px;\">\u901a\u8fc7\u6253\u5370\u65e5\u5fd7\u5b66\u4e60Spring\u7684\u6267\u884c\u987a\u5e8f<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\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<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">1.\u58f0\u660e<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">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<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&amp;from=appmsg\" data-fail=\"0\" style=\"margin-bottom: -7px;outline: 0px;display: block;background: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 657px;border-radius: 5px;\"><\/span><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(171, 178, 191);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;background: rgb(40, 44, 52);border-radius: 5px;\">publicclassTestSpringOrderimplementsApplicationContextAware,BeanFactoryAware,InitializingBean,SmartLifecycle,BeanNameAware,ApplicationListener&lt;ContextRefreshedEvent&gt;,CommandLineRunner,SmartInitializingSingleton{@OverridepublicvoidafterPropertiesSet()throwsException{log.error(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u542f\u52a8\u987a\u5e8f:afterPropertiesSet\"<\/span>);}@OverridepublicvoidsetApplicationContext(ApplicationContextapplicationContext)throwsBeansException{log.error(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u542f\u52a8\u987a\u5e8f:setApplicationContext\"<\/span>);}<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">2.<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">TestSpringOrder<\/code>\u4f7f\u7528<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">PostConstruct<\/code>\u6ce8\u89e3\u521d\u59cb\u5316\uff0c\u58f0\u660e<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">init-method<\/code>\u65b9\u6cd5\u521d\u59cb\u5316\u3002<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&amp;from=appmsg\" data-fail=\"0\" style=\"margin-bottom: -7px;outline: 0px;display: block;background: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 657px;border-radius: 5px;\"><\/span><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(171, 178, 191);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;background: rgb(40, 44, 52);border-radius: 5px;\">@PostConstructpublicvoid<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">postConstruct<\/span><\/span>(){log.error(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u542f\u52a8\u987a\u5e8f:post-construct\"<\/span>);}publicvoid<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">initMethod<\/span><\/span>(){log.error(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u542f\u52a8\u987a\u5e8f:init-method\"<\/span>);}<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">3.\u65b0\u5efa<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">TestSpringOrder2<\/code>\u7ee7\u627f<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&amp;from=appmsg\" data-fail=\"0\" style=\"margin-bottom: -7px;outline: 0px;display: block;background: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 657px;border-radius: 5px;\"><\/span><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(171, 178, 191);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;background: rgb(40, 44, 52);border-radius: 5px;\">publicclassTestSpringOrder3implementsBeanPostProcessor,BeanFactoryPostProcessor{@OverridepublicObjectpostProcessBeforeInitialization(Objectbean,StringbeanName)throwsBeansException{log.error(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u542f\u52a8\u987a\u5e8f:BeanPostProcessorpostProcessBeforeInitializationbeanName:{}\"<\/span>,beanName);<span style=\"outline: 0px;color: rgb(230, 192, 123);line-height: 26px;\">return<\/span>bean;}@OverridepublicObjectpostProcessAfterInitialization(Objectbean,StringbeanName)throwsBeansException{log.error(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u542f\u52a8\u987a\u5e8f:BeanPostProcessorpostProcessAfterInitializationbeanName:{}\"<\/span>,beanName);<span style=\"outline: 0px;color: rgb(230, 192, 123);line-height: 26px;\">return<\/span>bean;}@OverridepublicvoidpostProcessBeanFactory(ConfigurableListableBeanFactorybeanFactory)throwsBeansException{log.error(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u542f\u52a8\u987a\u5e8f:BeanFactoryPostProcessorpostProcessBeanFactory\"<\/span>);}}<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u6267\u884c\u4ee5\u4e0a\u4ee3\u7801\u540e\uff0c\u53ef\u4ee5\u5728\u65e5\u5fd7\u4e2d\u770b\u5230\u542f\u52a8\u987a\u5e8f\uff01<\/p>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: black;\">\u5b9e\u9645\u7684\u6267\u884c\u987a\u5e8f<\/h4>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&amp;from=appmsg\" data-fail=\"0\" style=\"margin-bottom: -7px;outline: 0px;display: block;background: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 657px;border-radius: 5px;\"><\/span><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(171, 178, 191);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;background: rgb(40, 44, 52);border-radius: 5px;\">2023-11-2518:10:53,748[main]ERROR(TestSpringOrder3:37)-\u542f\u52a8\u987a\u5e8f:BeanFactoryPostProcessorpostProcessBeanFactory2023-11-2518:10:59,299[main]ERROR(TestSpringOrder:53)-\u542f\u52a8\u987a\u5e8f:\u6784\u9020\u51fd\u6570TestSpringOrder2023-11-2518:10:59,316[main]ERROR(TestSpringOrder:127)-\u542f\u52a8\u987a\u5e8f:Autowired2023-11-2518:10:59,316[main]ERROR(TestSpringOrder:129)-\u542f\u52a8\u987a\u5e8f:setBeanName2023-11-2518:10:59,316[main]ERROR(TestSpringOrder:111)-\u542f\u52a8\u987a\u5e8f:setBeanFactory2023-11-2518:10:59,316[main]ERROR(TestSpringOrder:121)-\u542f\u52a8\u987a\u5e8f:setApplicationContext2023-11-2518:10:59,316[main]ERROR(TestSpringOrder3:25)-\u542f\u52a8\u987a\u5e8f:BeanPostProcessorpostProcessBeforeInitializationbeanName:testSpringOrder2023-11-2518:10:59,316[main]ERROR(TestSpringOrder:63)-\u542f\u52a8\u987a\u5e8f:post-construct2023-11-2518:10:59,317[main]ERROR(TestSpringOrder:116)-\u542f\u52a8\u987a\u5e8f:afterPropertiesSet2023-11-2518:10:59,317[main]ERROR(TestSpringOrder:46)-\u542f\u52a8\u987a\u5e8f:init-method2023-11-2518:10:59,320[main]ERROR(TestSpringOrder3:31)-\u542f\u52a8\u987a\u5e8f:BeanPostProcessorpostProcessAfterInitializationbeanName:testSpringOrder2023-11-2518:17:21,563[main]ERROR(SpringOrderConfiguartion:21)-\u542f\u52a8\u987a\u5e8f:@Bean\u6ce8\u89e3\u65b9\u6cd5\u6267\u884c2023-11-2518:17:21,668[main]ERROR(TestSpringOrder:58)-\u542f\u52a8\u987a\u5e8f:SmartInitializingSingleton2023-11-2518:17:21,675[main]ERROR(TestSpringOrder:74)-\u542f\u52a8\u987a\u5e8f:start2023-11-2518:17:23,508[main]ERROR(TestSpringOrder:68)-\u542f\u52a8\u987a\u5e8f:ContextRefreshedEvent2023-11-2518:17:23,574[main]ERROR(TestSpringOrder:79)-\u542f\u52a8\u987a\u5e8f:CommandLineRunner<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\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=\"mdnice\u7f16\u8f91\u5668\" data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&amp;from=appmsg\" data-fail=\"0\" style=\"margin-top: 1em;margin-bottom: 10px;outline: 0px;font-weight: bold;font-size: 22px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;background: url(&quot;https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&quot;) center center \/ 50px no-repeat rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"margin-top: 38px;margin-bottom: 10px;outline: 0px;display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;font-size: 18px;\">\u4e00\u5f20\u957f\u56fe\u900f\u5f7b\u89e3\u91ca Spring\u542f\u52a8\u987a\u5e8f<\/span><\/h2>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100046438\" data-ratio=\"2.137962962962963\"  data-w=\"1080\" style=\"margin: auto;outline: 0px;display: block;border-radius: 4px;float: none;visibility: visible !important;width: 656.992px !important;height: auto !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213714542.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=\"100046438\" data-ratio=\"2.137962962962963\"  data-w=\"1080\" style=\"margin: auto;outline: 0px;display: block;border-radius: 4px;float: none;visibility: visible !important;width: 656.992px !important;height: auto !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213714542.png\"  \/><\/noscript><figcaption style=\"margin-top: 5px;outline: 0px;text-align: center;color: rgb(136, 136, 136);font-size: 12px;font-family: PingFangSC-Light;\">\u56fe\u7247<\/figcaption><\/figure>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: black;\">\u5b9e\u4f8b\u5316\u548c\u521d\u59cb\u5316\u7684\u533a\u522b<\/h4>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">new TestSpringOrder()<\/code>\uff1anew \u521b\u5efa\u5bf9\u8c61\u5b9e\u4f8b\uff0c\u5373\u4e3a\u5b9e\u4f8b\u5316\u4e00\u4e2a\u5bf9\u8c61\uff1b\u6267\u884c\u8be5Bean\u7684<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">init-method<\/code>\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=\"mdnice\u7f16\u8f91\u5668\" data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&amp;from=appmsg\" data-fail=\"0\" style=\"margin-top: 1em;margin-bottom: 10px;outline: 0px;font-weight: bold;font-size: 22px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;background: url(&quot;https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&quot;) center center \/ 50px no-repeat rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"margin-top: 38px;margin-bottom: 10px;outline: 0px;display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;font-size: 18px;\">Spring \u91cd\u8981\u6269\u5c55\u70b9\u7684\u542f\u52a8\u987a\u5e8f<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">1.BeanFactoryPostProcessor<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">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=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">BeanFactoryPostProcessor<\/code>\u7c7b\u578b\uff09\u3002Spring IoC\u5bb9\u5668\u5141\u8bb8<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">BeanFactoryPostProcessor<\/code>\u8bfb\u53d6\u914d\u7f6e\u5143\u6570\u636e\uff0c\u4fee\u6539bean\u7684\u5b9a\u4e49\uff0cBean\u7684\u5c5e\u6027\u503c\u7b49\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">2.\u5b9e\u4f8b\u5316Bean<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">Spring \u8c03\u7528java\u53cd\u5c04API \u5b9e\u4f8b\u5316 Bean\u3002\u7b49\u540c\u4e8e<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">new TestSpringOrder()<\/code>;<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">3.Autowired \u88c5\u914d\u4f9d\u8d56<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">Autowired\u662f \u501f\u52a9\u4e8e<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">AutowiredAnnotationBeanPostProcessor<\/code>\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<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">4.BeanNameAware<\/strong><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&amp;from=appmsg\" data-fail=\"0\" style=\"margin-bottom: -7px;outline: 0px;display: block;background: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 657px;border-radius: 5px;\"><\/span><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(171, 178, 191);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;background: rgb(40, 44, 52);border-radius: 5px;\">setBeanName<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">5.BeanFactoryAware<\/strong><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&amp;from=appmsg\" data-fail=\"0\" style=\"margin-bottom: -7px;outline: 0px;display: block;background: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 657px;border-radius: 5px;\"><\/span><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(171, 178, 191);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;background: rgb(40, 44, 52);border-radius: 5px;\">setBeanFactory<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">6.ApplicationContextAware setApplicationContext<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u5728Bean\u5b9e\u4f8b\u5316\u524d\uff0c\u4f1a\u7387\u5148\u8bbe\u7f6eAware\u63a5\u53e3\uff0c\u4f8b\u5982<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">BeanNameAware<\/code><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">BeanFactoryAware<\/code><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">ApplicationContextAware<\/code>\u7b49<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">7.BeanPostProcessor postProcessBeforeInitialization<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\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<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">BeanPostProcessor<\/code>\u63a5\u53e3\u5b9e\u73b0\u7c7b\uff0c\u7136\u540e\u6ce8\u518c\u5230Spring IoC\u5bb9\u5668\u4e2d\u3002\u5728\u6b64\u63a5\u53e3\u4e2d\uff0c\u53ef\u4ee5\u521b\u5efaBean\u7684\u4ee3\u7406\uff0c\u751a\u81f3\u66ff\u6362\u8fd9\u4e2aBean\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">8.PostConstruct \u6267\u884c<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u63a5\u4e0b\u6765 Spring\u4f1a\u4f9d\u6b21\u8c03\u7528 Bean\u5b9e\u4f8b\u521d\u59cb\u5316\u7684 \u4e09\u5927\u65b9\u6cd5\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">9.InitializingBean<\/strong><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&amp;from=appmsg\" data-fail=\"0\" style=\"margin-bottom: -7px;outline: 0px;display: block;background: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 657px;border-radius: 5px;\"><\/span><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(171, 178, 191);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;background: rgb(40, 44, 52);border-radius: 5px;\">afterPropertiesSet<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">10.init-method<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u65b9\u6cd5\u6267\u884c<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">11.BeanPostProcessor postProcessAfterInitialization<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u5728 Spring \u5bf9Bean\u7684\u521d\u59cb\u5316\u65b9\u6cd5\u6267\u884c\u5b8c\u6210\u540e\uff0c\u6267\u884c\u8be5\u65b9\u6cd5<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">12.\u5176\u4ed6Bean \u5b9e\u4f8b\u5316\u548c\u521d\u59cb\u5316<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">Spring \u4f1a\u5faa\u73af\u521d\u59cb\u5316Bean\u3002\u76f4\u81f3\u6240\u6709\u7684\u5355\u4f8bBean\u90fd\u5b8c\u6210\u521d\u59cb\u5316<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">13.\u6240\u6709\u5355\u4f8bBean \u521d\u59cb\u5316\u5b8c\u6210\u540e<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">14.SmartInitializingSingleton Bean\u5b9e\u4f8b\u5316\u540e\u7f6e\u5904\u7406<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\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<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">EventListener<\/code>\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<blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 20px;margin-bottom: 20px;padding: 15px 20px;outline: 0px;border-left-color: rgb(53, 179, 120);color: rgb(106, 115, 125);font-size: 0.9em;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;text-align: left;border-top: none;border-right: none;border-bottom: none;overflow: auto;background: rgb(251, 249, 253);line-height: 27px;\">\n<p style=\"outline: 0px;line-height: 26px;font-size: 15px;color: rgb(89, 89, 89);\">\u6240\u4ee5\u5f3a\u70c8\u5efa\u8bae Http\u3001MQ\u3001Rpc \u5165\u53e3\u6d41\u91cf\u5728<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">SmartInitializingSingleton<\/code>\u4e4b\u540e\u5f00\u542f\u6d41\u91cf\u3002<\/p>\n<\/blockquote>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">Http\u3001MQ\u3001Rpc \u5165\u53e3\u6d41\u91cf\u5fc5\u987b\u5728<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">SmartInitializingSingleton<\/code>\u4e4b\u540e\u5f00\u542f\u6d41\u91cf\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">15.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<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">Http\u3001MQ\u3001Rpc \u5165\u53e3\u6d41\u91cf\u9002\u5408 \u5728<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">SmartLifecyle<\/code>\u4e2d\u5f00\u542f<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">16.\u53d1\u5e03 ContextRefreshedEvent \u65b9\u6cd5<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u8be5\u4e8b\u4ef6\u4f1a\u6267\u884c\u591a\u6b21\uff0c\u5728<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">Spring Refresh<\/code>\u6267\u884c\u5b8c\u6210\u540e\uff0c\u5c31\u4f1a\u53d1\u5e03\u8be5\u4e8b\u4ef6\uff01<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">17.\u6ce8\u518c\u548c\u521d\u59cb\u5316 Spring MVC<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">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\u518c<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">DispatcherServlet<\/code>\u5230Web\u5bb9\u5668\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">18.Tomcat\/Jetty \u5bb9\u5668\u5f00\u542f\u7aef\u53e3<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">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<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">19.\u5e94\u7528\u542f\u52a8\u5b8c\u6210\u540e\uff0c\u6267\u884c CommandLineRunner<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">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 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\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<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&amp;from=appmsg\" data-fail=\"0\" style=\"margin-top: 1em;margin-bottom: 10px;outline: 0px;font-weight: bold;font-size: 22px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;background: url(&quot;https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&quot;) center center \/ 50px no-repeat rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"margin-top: 38px;margin-bottom: 10px;outline: 0px;display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;font-size: 18px;\">\u56de\u7b54 \u5173\u4e8e Spring \u542f\u52a8\u539f\u7406\u7684\u82e5\u5e72\u95ee\u9898<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">1.init-method\u3001PostConstruct\u3001afterPropertiesSet \u4e09\u4e2a\u65b9\u6cd5\u7684\u6267\u884c\u987a\u5e8f\u3002<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u56de\u7b54\uff1a<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">PostConstruct<\/code>\uff0c<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">afterPropertiesSet<\/code>\uff0c<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">init-method<\/code><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">2.\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<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\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<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">PostConstruct<\/code>\uff0c\u518d\u7edf\u4e00\u6267\u884c<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">afterProperfiesSet<\/code>\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\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 \u7684<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">PostConstruct<\/code>\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<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">3.Spring \u4f55\u65f6\u88c5\u914dAutowire\u5c5e\u6027\uff0cPostConstruct\u65b9\u6cd5\u4e2d\u5f15\u7528 Autowired \u5b57\u6bb5\u662f\u5426\u4f1a\u7a7a\u6307\u9488?<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">Autowired\u88c5\u914d\u4f9d\u8d56\u53d1\u751f\u5728<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">PostConstruct<\/code>\u4e4b\u524d\uff0c\u4e0d\u4f1a\u51fa\u73b0\u7a7a\u6307\u9488\uff01<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">4.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!<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">ApplicationContextAware<\/code>\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<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">5.\u9879\u76ee\u5e94\u8be5\u5982\u4f55\u76d1\u542c Spring \u7684\u542f\u52a8\u5c31\u7eea\u4e8b\u4ef6\u3002<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u901a\u8fc7<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">SmartLifecyle start<\/code>\u65b9\u6cd5\uff0c\u76d1\u542cSpring\u5c31\u7eea \u3002\u9002\u5408\u5728\u6b64\u5f00\u542f\u5165\u53e3\u6d41\u91cf\uff01<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">6.\u9879\u76ee\u5982\u4f55\u76d1\u542cSpring \u5237\u65b0\u4e8b\u4ef6\u3002<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u76d1\u542c<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">Spring Event ContextRefreshedEvent<\/code><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">7.Spring\u5c31\u7eea\u4e8b\u4ef6\u548c\u5237\u65b0\u4e8b\u4ef6\u7684\u6267\u884c\u987a\u5e8f\u548c\u533a\u522b\u3002<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">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<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">8.Http \u6d41\u91cf\u5165\u53e3\u4f55\u65f6\u542f\u52a8\u5b8c\u6210\u3002<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">SpringBoot \u6700\u540e\u9636\u6bb5\uff0c\u542f\u52a8\u5b8c\u6210Spring \u4e0a\u4e0b\u6587\uff0c\u624d\u5f00\u542fHttp\u5165\u53e3\u6d41\u91cf\uff0c\u6b64\u65f6<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">SmartLifecycle#start<\/code>\u5df2\u6267\u884c\u3002\u6240\u6709\u5355\u4f8bBean\u548cSpringEvent\u7b49\u7ec4\u4ef6\u90fd\u5df2\u7ecf\u5c31\u7eea\uff01<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">9.\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<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">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<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">10.\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<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">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<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\"><strong style=\"outline: 0px;line-height: 1.75em;\">11.Spring\u8fd8\u672a\u5b8c\u5168\u542f\u52a8\uff0c\u5728 PostConstruct \u4e2d\u8c03\u7528 getBeanByAnnotation\u80fd\u5426\u83b7\u5f97\u51c6\u786e\u7684\u7ed3\u679c\uff1f<\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u867d\u7136\u672a\u542f\u52a8\u5b8c\u6210\uff0c\u4f46\u662fSpring\u6267\u884c\u8be5<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">getBeanByAnnotation<\/code>\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\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<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&amp;from=appmsg\" data-fail=\"0\" style=\"margin-top: 1em;margin-bottom: 10px;outline: 0px;font-weight: bold;font-size: 22px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;background: url(&quot;https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&quot;) center center \/ 50px no-repeat rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"margin-top: 38px;margin-bottom: 10px;outline: 0px;display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;font-size: 18px;\">\u6e90\u7801\u7ea7\u522b\u4ecb\u7ecd<\/span><\/h2>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: black;\">SmartInitializingSingleton \u63a5\u53e3\u7684\u6267\u884c\u4f4d\u7f6e<\/h4>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u4e0b\u56fe\u4ee3\u7801\u8bf4\u660e\u4e86\uff0cSpring\u5728\u521d\u59cb\u5316\u5168\u90e8 \u5355\u4f8bBean\u4ee5\u540e\uff0c\u4f1a\u6267\u884c<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">SmartInitializingSingleton<\/code>\u63a5\u53e3\u3002<\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100046442\" data-ratio=\"0.8555555555555555\"  data-w=\"1080\" style=\"margin: auto;outline: 0px;display: block;border-radius: 4px;float: none;visibility: visible !important;width: 656.992px !important;height: auto !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213734112.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=\"100046442\" data-ratio=\"0.8555555555555555\"  data-w=\"1080\" style=\"margin: auto;outline: 0px;display: block;border-radius: 4px;float: none;visibility: visible !important;width: 656.992px !important;height: auto !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213734112.png\"  \/><\/noscript><figcaption style=\"margin-top: 5px;outline: 0px;text-align: center;color: rgb(136, 136, 136);font-size: 12px;font-family: PingFangSC-Light;\">\u56fe\u7247<\/figcaption><\/figure>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: black;\">Autowired \u4f55\u65f6\u88c5\u914dBean\u7684\u4f9d\u8d56<\/h4>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u5728Bean\u5b9e\u4f8b\u5316\u4e4b\u540e\uff0c\u4f46\u521d\u59cb\u5316\u4e4b\u524d\uff0c<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">AutowiredAnnotationBeanPostProcessor<\/code>\u4f1a\u6ce8\u5165Autowired\u5b57\u6bb5\u3002<\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100046441\" data-ratio=\"0.12222222222222222\"  data-w=\"1080\" style=\"margin: auto;outline: 0px;display: block;border-radius: 4px;float: none;visibility: visible !important;width: 656.969px !important;height: auto !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213745400.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=\"100046441\" data-ratio=\"0.12222222222222222\"  data-w=\"1080\" style=\"margin: auto;outline: 0px;display: block;border-radius: 4px;float: none;visibility: visible !important;width: 656.969px !important;height: auto !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213745400.png\"  \/><\/noscript><figcaption style=\"margin-top: 5px;outline: 0px;text-align: center;color: rgb(136, 136, 136);font-size: 12px;font-family: PingFangSC-Light;\">\u56fe\u7247<\/figcaption><\/figure>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: black;\">SpringBoot \u4f55\u65f6\u5f00\u542fHttp\u7aef\u53e3<\/h4>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\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<\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100046443\" data-ratio=\"0.4638888888888889\"  data-w=\"1080\" style=\"margin: auto;outline: 0px;display: block;border-radius: 4px;float: none;visibility: visible !important;width: 656.992px !important;height: auto !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213749251.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=\"100046443\" data-ratio=\"0.4638888888888889\"  data-w=\"1080\" style=\"margin: auto;outline: 0px;display: block;border-radius: 4px;float: none;visibility: visible !important;width: 656.992px !important;height: auto !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213749251.png\"  \/><\/noscript><figcaption style=\"margin-top: 5px;outline: 0px;text-align: center;color: rgb(136, 136, 136);font-size: 12px;font-family: PingFangSC-Light;\">\u56fe\u7247<\/figcaption><\/figure>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: black;\">Spring \u521d\u59cb\u5316Bean\u7684\u5173\u952e\u4ee3\u7801<\/h4>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\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 \u3002<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&amp;from=appmsg\" data-fail=\"0\" style=\"margin-bottom: -7px;outline: 0px;display: block;background: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/HhRfwkaJkMvMgMqePEELPsTr44oGAFIibzGyPpDOaQIfJCKvfBHgbvAuJa0zAPnAiaHLbytB4PuQlxpnYianMWRqmEmx0gibp1rT\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 657px;border-radius: 5px;\"><\/span><code style=\"padding: 15px 16px 16px;outline: 0px;overflow-x: auto;color: rgb(171, 178, 191);display: -webkit-box;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;font-size: 12px;background: rgb(40, 44, 52);border-radius: 5px;\">AbstractAutowireCapableBeanFactory<span style=\"outline: 0px;color: rgb(92, 99, 112);font-style: italic;line-height: 26px;\">#initializeBean<\/span><\/code><\/pre>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100046447\" data-ratio=\"0.5664335664335665\"  data-w=\"1001\" style=\"margin: auto;outline: 0px;display: block;border-radius: 4px;float: none;visibility: visible !important;width: 656.984px !important;height: auto !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213756837.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=\"100046447\" data-ratio=\"0.5664335664335665\"  data-w=\"1001\" style=\"margin: auto;outline: 0px;display: block;border-radius: 4px;float: none;visibility: visible !important;width: 656.984px !important;height: auto !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213756837.png\"  \/><\/noscript><figcaption style=\"margin-top: 5px;outline: 0px;text-align: center;color: rgb(136, 136, 136);font-size: 12px;font-family: PingFangSC-Light;\">\u56fe\u7247<\/figcaption><\/figure>\n<h4 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;outline: 0px;font-weight: bold;font-size: 18px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: black;\">Spring CommandLineRunner \u6267\u884c\u4f4d\u7f6e<\/h4>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">Spring Boot\u5916\u90e8\uff0c\u5f53\u542f\u52a8\u5b8cSpring\u4e0a\u4e0b\u6587\u4ee5\u540e\uff0c\u6700\u540e\u624d\u542f\u52a8<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">CommandLineRunner<\/code>\u3002<\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;color: rgb(63, 63, 63);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100046446\" data-ratio=\"0.4462962962962963\"  data-w=\"1080\" style=\"margin: auto;outline: 0px;display: block;border-radius: 4px;float: none;visibility: visible !important;width: 656.984px !important;height: auto !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213802393.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=\"100046446\" data-ratio=\"0.4462962962962963\"  data-w=\"1080\" style=\"margin: auto;outline: 0px;display: block;border-radius: 4px;float: none;visibility: visible !important;width: 656.984px !important;height: auto !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213802393.png\"  \/><\/noscript><figcaption style=\"margin-top: 5px;outline: 0px;text-align: center;color: rgb(136, 136, 136);font-size: 12px;font-family: PingFangSC-Light;\">\u56fe\u7247<\/figcaption><\/figure>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" data-lazy-bgimg=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&amp;from=appmsg\" data-fail=\"0\" style=\"margin-top: 1em;margin-bottom: 10px;outline: 0px;font-weight: bold;font-size: 22px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;background: url(&quot;https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/knmrNHnmCLFoDficRByWvqJWWkib7ib2ZTgSTJ3opMRrz1EOriaRV3G4StBaLfUWcDkPgbwU8YWxsz5fKVn4cxpGbQ\/640?wx_fmt=png&quot;) center center \/ 50px no-repeat rgb(255, 255, 255);color: black;text-align: center;\"><span style=\"margin-top: 38px;margin-bottom: 10px;outline: 0px;display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;font-size: 18px;\">\u603b\u7ed3<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">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\u5e94\u8be5\u5728Spring\u542f\u52a8\u5b8c\u6210\u540e\u5f00\u542f\u5165\u53e3\u6d41\u91cf\u3002Rpc\u548c MQ\u6d41\u91cf \u4e5f\u5e94\u8be5\u5982\u6b64\uff0c\u6240\u4ee5\u5efa\u8bae\u5927\u5bb6 \u5728<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">SmartLifecype<\/code>\u6216\u8005<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">ContextRefreshedEvent<\/code>\u7b49\u4f4d\u7f6e \u6ce8\u518c\u670d\u52a1\uff0c\u5f00\u542f\u6d41\u91cf\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u4f8b\u5982 Spring Cloud Eureka \u670d\u52a1\u53d1\u73b0\u7ec4\u4ef6\uff0c\u5c31\u662f\u5728<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">SmartLifecype<\/code>\u4e2d\u6ce8\u518c\u670d\u52a1\u7684\uff01<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;letter-spacing: 0.544px;text-align: left;background-color: rgb(255, 255, 255);color: rgb(74, 74, 74);line-height: 1.75em;\">\u5e0c\u671b\u5927\u5bb6\u6709\u6240\u6536\u83b7\u3002<\/p>\n<p><span style=\"color: rgb(136, 136, 136);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 13px;letter-spacing: 0.442px;text-align: right;background-color: rgb(255, 255, 255);\">\u6765\u6e90\uff1ajuejin.cn\/post\/7308610896803659812<\/span><\/p>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 springmeng              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\ud83d\udc4f2024\u6700\u65b0,\u94bb\u77f3VIP\u5b66\u4e60\ud83d\ude092024\u79c1\u6d3b\u8054\u76df\u6574\u8d77\uff01 \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\u548cSp &#8230;<\/p>\n","protected":false},"author":1,"featured_media":4806,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[7,30],"tags":[],"class_list":["post-4816","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring-boot","category-30"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213652153-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213655898.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213652153-300x300.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213652153.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213655898.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213652153-300x300.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213652153.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213652153.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213655898.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213655898.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213714542.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213714542.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213734112.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213734112.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213745400.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213745400.png","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213749251.png","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213749251.png","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213756837.png","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213756837.png","id":"image11"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213802393.png","id":"image12"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801213802393.png","id":"image13"}],"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":416,"next_post_id":4867,"next_post_title":"SpringBoot + \u865a\u62df\u7ebf\u7a0b\uff0c\u6027\u80fd\u70b8\u88c2\uff01","previous_post_id":4855,"previous_post_title":"SpringBoot \u540c\u65f6\u53ef\u4ee5\u5904\u7406\u591a\u5c11\u4e2a\u8bf7\u6c42\uff1f","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4816","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=4816"}],"version-history":[{"count":1,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4816\/revisions"}],"predecessor-version":[{"id":6322,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4816\/revisions\/6322"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/4806"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=4816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=4816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=4816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}