{"id":720,"date":"2023-05-28T02:11:04","date_gmt":"2023-05-27T18:11:04","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=720"},"modified":"2023-05-28T02:11:04","modified_gmt":"2023-05-27T18:11:04","slug":"spring-primary%e6%b3%a8%e8%a7%a3%e4%bd%9c%e7%94%a8%e5%92%8c%e5%8e%9f%e7%90%86","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring-primary%e6%b3%a8%e8%a7%a3%e4%bd%9c%e7%94%a8%e5%92%8c%e5%8e%9f%e7%90%86\/","title":{"rendered":"Spring @Primary\u6ce8\u89e3\u4f5c\u7528\u548c\u539f\u7406"},"content":{"rendered":"<div class='wxsyncmain'>\n<section><mp-common-profile class=\"js_uneditable custom_select_card mp_profile_iframe\" data-pluginname=\"mpprofile\" data-weui-theme=\"light\" data-id=\"MzI3ODE5MzczNA==\" data-headimg=\"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/OC2PjnBlMZjic6L6UHJXiaT0JCXiapkjUlh1wc5YRxBr1FvF4JB2kMibDia0m1vPHLtKr1BMxWm2QeGBRJhiaicbicw00w\/0?wx_fmt=png\" data-nickname=\"\u5218\u724c\" data-alias=\"\" data-signature=\"\u5bfb\u5e38\u7684\u74e6\u820d\u8bc4\u4e66\uff0c\u6697\u85cf\u7740\u6551\u4e16\u79d8\u8bc0\u3002\" data-from=\"0\" data-is_biz_ban=\"0\"><\/mp-common-profile><\/section>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"color: black;line-height: 1.6;letter-spacing: 0px;word-break: break-word;overflow-wrap: break-word;text-align: left;font-size: 16px;padding: 10px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;\">\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 22px;margin-top: 20px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: #f48a00;display: inline-block;padding-left: 10px;border-left: 8px solid #ffbf52;\">\u4ecb\u7ecd<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;margin-top: 5px;margin-bottom: 5px;line-height: 1.75;letter-spacing: 0.1em;word-spacing: 0.1em;text-align: justify;color: rgba(0, 0, 0, 0.85);\">\u4eca\u5929\u5206\u4eab\u4e00\u4e0bSpring\u4e2d\u7684@Primary\u6ce8\u89e3\uff0cPrimary\u7684\u610f\u601d\u662f\u4e3b\u8981\u7684\uff0c\u6211\u4eec\u5728\u4f7f\u7528spring\u7684\u65f6\u5019\uff0c\u96be\u514d\u4f1a\u5b9a\u4e49\u591a\u4e2a\u7c7b\u578b\u76f8\u540c\u7684bean\uff0c\u8fd9\u65f6\u5019\u5982\u679c\u4e0d\u91c7\u53d6\u4e00\u4e9b\u65b9\u6cd5\uff0c\u90a3\u4e48\u662f\u65e0\u6cd5\u6b63\u5e38\u4f7f\u7528bean\u7684\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;margin-top: 5px;margin-bottom: 5px;line-height: 1.75;letter-spacing: 0.1em;word-spacing: 0.1em;text-align: justify;color: rgba(0, 0, 0, 0.85);\">\u5176\u5b9e\u5728\u521a\u5f00\u59cb\u4f7f\u7528spring\u7684\u65f6\u5019\uff0c\u4e00\u5f00\u59cb\u5bf9\u4e8e\u67d0\u4e9b\u6982\u5ff5\u662f\u5f88\u4e0d\u6e05\u695a\u7684\uff0c\u6240\u4ee5\u5373\u4f7f\u7f51\u4e0a\u53bb\u627e\u4e86\u5f88\u591a\u7b54\u6848\uff0c\u4e5f\u662f\u6ca1\u6709\u771f\u6b63\u7684\u7406\u89e3\uff0c\u6240\u4ee5\u5c31\u5bfc\u81f4\u5f88\u591a\u4e1c\u897f\u90fd\u662f\u4f3c\u61c2\u975e\u61c2\uff0c\u5c31\u6bd4\u5982\u6839\u636e\u7c7b\u578b\u548c\u540d\u79f0\u83b7\u53d6bean\uff0c\u4e00\u5f00\u59cb\u8fd9\u4e2a\u7c7b\u578b\u6211\u662f\u6709\u70b9\u4e0d\u592a\u6e05\u695a\u7684\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 22px;margin-top: 20px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: #f48a00;display: inline-block;padding-left: 10px;border-left: 8px solid #ffbf52;\">\u6839\u636e\u7c7b\u578b\u6216\u8005\u540d\u79f0\u83b7\u53d6bean<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;margin-top: 5px;margin-bottom: 5px;line-height: 1.75;letter-spacing: 0.1em;word-spacing: 0.1em;text-align: justify;color: rgba(0, 0, 0, 0.85);\">\u6839\u636e\u540d\u79f0\u83b7\u53d6bean\u8fd9\u662f\u5f88\u597d\u7406\u89e3\u7684\uff0c\u5728spring\u4e2d\uff0c\u5b9a\u4e49bean\u7684\u65b9\u5f0f\u6709\u5f88\u591a\uff0c\u4e0d\u540c\u901a\u5e38\u90fd\u662f@Component\u6ce8\u89e3\u548c@Bean\u6ce8\u89e3\u6765\u6ce8\u518cbean\uff0c\u4f7f\u7528@Component\u7684\u65f6\u5019\u6211\u4eec\u53ef\u4ee5\u6307\u5b9a\u540d\u79f0\uff0c\u5982\u679c\u4e0d\u6307\u5b9a\uff0c\u5219\u5c31\u4e3a\u7c7b\u540d\u7684\u540d\u79f0\uff0c\u53ea\u4e0d\u8fc7\u9996\u5b57\u6bcd\u5c0f\u5199\uff0c\u4f7f\u7528@Bean\u7684\u65f6\u5019\uff0c\u4e5f\u53ef\u4ee5\u6307\u5b9a\uff0c\u4e0d\u6307\u5b9a\u7684\u8bdd\u5219\u4e3a\u65b9\u6cd5\u540d\u79f0\uff0c\u4f46\u662f\u6839\u636e\u7c7b\u578b\u83b7\u53d6\uff0c\u4e4b\u524d\u4e0d\u662f\u5f88\u7406\u89e3\uff0c\u5176\u5b9e\u7c7b\u578b\u5c31\u662f\u63a5\u53e3\uff0c\u6211\u4eec\u77e5\u9053\u63a5\u53e3\u4e00\u822c\u662f\u4e0d\u505a\u4efb\u4f55\u5b9e\u73b0\u7684\uff0c\u7531\u5b9e\u73b0\u7c7b\u6765\u8fdb\u884c\u5177\u4f53\u903b\u8f91\u5b9e\u73b0\uff0c\u53ef\u4ee5\u6709\u591a\u4e2a\u5b9e\u73b0\u7c7b\uff0c\u6bd4\u5982UserService\u63a5\u53e3\u6709UserServiceImpl1\u548cUserServiceImpl2\u4e24\u4e2a\u5b9e\u73b0\u7c7b\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u53ef\u4ee5\u8bf4UserServiceImpl1\u548cUserServiceImpl2\u7684\u7c7b\u578b\u662fUserService\uff0c\u5728spring\u4e2d\uff0c\u8fd9\u4e24\u4e2a\u5b9e\u73b0\u7c7b\u5982\u679c\u5b9a\u4e49\u6210bean\uff0c\u90a3\u4e48\u90fd\u4f1a\u88ab\u6ce8\u518c\u8fdbspring IOC\u5bb9\u5668\u4e2d\uff0c\u4f46\u662f\u5728\u83b7\u53d6\u7684\u65f6\u5019\u662f\u6709\u95ee\u9898\u7684\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 20px;margin-top: 15px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 18px;color: #f48a00;display: inline-block;padding-left: 10px;border-left: 4px solid #ffe3a3;\">byName<\/span><span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;margin-top: 5px;margin-bottom: 5px;line-height: 1.75;letter-spacing: 0.1em;word-spacing: 0.1em;text-align: justify;color: rgba(0, 0, 0, 0.85);\">\u5982\u679c\u6839\u636e\u540d\u79f0\u83b7\u53d6\uff0c\u90a3\u4e48\u662f\u6ca1\u95ee\u9898\u7684\uff0c\u56e0\u4e3a\u6ce8\u518c\u8fdbIOC\u5bb9\u5668\u65f6\u662f\u6ce8\u518c\u4e86\u4e24\u4e2a\u4e0d\u540c\u540d\u79f0\u7684bean\uff0c\u6240\u4ee5\u6839\u636e\u540d\u79f0\u83b7\u53d6\uff0c\u53ea\u83b7\u53d6\u5230\u4e86\u4e00\u4e2abean\uff0c\u6240\u4ee5\u80fd\u83b7\u53d6\u6210\u529f\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 20px;margin-top: 15px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 18px;color: #f48a00;display: inline-block;padding-left: 10px;border-left: 4px solid #ffe3a3;\">byType<\/span><span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;margin-top: 5px;margin-bottom: 5px;line-height: 1.75;letter-spacing: 0.1em;word-spacing: 0.1em;text-align: justify;color: rgba(0, 0, 0, 0.85);\">\u5982\u679c\u6839\u636e\u7c7b\u578b\u83b7\u53d6\uff0c\u56e0\u4e3a\u6ce8\u518c\u4e86\u4e24\u4e2abean\uff0c\u4f46\u662f\u5b83\u4eec\u7684\u7c7b\u578b\u662f\u76f8\u540c\u7684\uff0c\u8fd9\u65f6\u5019\u76f4\u63a5\u6839\u636e\u7c7b\u578b\u83b7\u53d6\uff0c\u90a3\u4e48\u5c31\u4f1a\u83b7\u53d6\u5230\u4e24\u4e2abean\uff0cspring\u4e0d\u80fd\u8fd4\u56de\u90a3\u4e2a\uff0c\u6240\u4ee5\u5c31\u629b\u51fa\u5f02\u5e38\u3002<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: url(&quot;https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015625312.jpeg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\">No&nbsp;qualifying&nbsp;bean&nbsp;of&nbsp;<span style=\"color: #e6c07b;line-height: 26px;\">type<\/span>&nbsp;<span style=\"color: #98c379;line-height: 26px;\">'io.steakliu.spring.ioc.annotation.primary.PrimaryService'<\/span>&nbsp;available:&nbsp;expected&nbsp;single&nbsp;matching&nbsp;bean&nbsp;but&nbsp;found&nbsp;2:&nbsp;primaryServiceImpl1,primaryServiceImpl2<br  \/><\/code><\/pre>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 22px;margin-top: 20px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: #f48a00;display: inline-block;padding-left: 10px;border-left: 8px solid #ffbf52;\">\u89e3\u51b3\u65b9\u6848<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;margin-top: 5px;margin-bottom: 5px;line-height: 1.75;letter-spacing: 0.1em;word-spacing: 0.1em;text-align: justify;color: rgba(0, 0, 0, 0.85);\">\u5b58\u5728\u591a\u4e2a\u7c7b\u578b\u7684bean\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code style=\"font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(244, 138, 0);\">@Qualifier<\/code>\u6ce8\u89e3\u6307\u5b9a\u540d\u79f0\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u5728\u6ce8\u5165bean\u7684\u65f6\u5019\u6307\u5b9a\u5177\u4f53\u7684bean\u540d\u79f0\uff0c\u4e0d\u8fc7\u8fd9\u6837\u7684\u8bdd\u5c31\u4f1a\u53d8\u5f97\u5f88\u53d8\u626d\uff0c\u6240\u4ee5\u4f7f\u7528<code style=\"font-size: 14px;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(244, 138, 0);\">@Qualifier<\/code>\u8fd8\u662f\u6bd4\u8f83\u5408\u7406\u548c\u89c4\u8303\uff0c\u5f53\u7136\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528@Primary\u6765\uff0c\u4f46\u5b9e\u9645\u4e0a@Primary\u80fd\u89e3\u51b3\u7684\u95ee\u9898\u6211\u89c9\u5f97\u53ea\u662f\u7ed9\u4e86\u4e00\u4e2a\u9ed8\u8ba4\u503c\uff0c\u8fd9\u6837\u5728\u83b7\u53d6bean\u7684\u65f6\u5019\u4e0d\u4f1a\u62a5\u9519\uff0c\u5f53\u9700\u8981\u6ce8\u5165\u540c\u4e00\u7c7b\u578b\u4e0b\u7684\u5176\u4ed6bean\u65f6\uff0c\u4f9d\u65e7\u9700\u8981\u6307\u5b9a\u540d\u79f0\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 22px;margin-top: 20px;\"><span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: #f48a00;display: inline-block;padding-left: 10px;border-left: 8px solid #ffbf52;\">\u5b9e\u73b0\u539f\u7406<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;margin-top: 5px;margin-bottom: 5px;line-height: 1.75;letter-spacing: 0.1em;word-spacing: 0.1em;text-align: justify;color: rgba(0, 0, 0, 0.85);\">\u5982\u679c\u6211\u4eec\u4f7f\u7528@Component\u6216@Bean\u6ce8\u89e3\u6ce8\u518cbean\u7684\u65f6\u5019\uff0cspring\u542f\u52a8\u540e\u4f1a\u626b\u63cf\u5de5\u7a0b\u8def\u5f84\u4e0b\u7684\u5305\uff0c\u7136\u540e\u627e\u51fa\u76f8\u5e94\u7684\u7c7b\uff0c\u5e76\u89e3\u6790\u76f8\u5e94\u7684Bean\uff0c\u5982\u679c\u5e26\u6709@Primary\u6ce8\u89e3\uff0c\u90a3\u4e48\u5c31\u4f1a\u5c06BeanDefinition\u7684primary\u5c5e\u6027\u8bbe\u7f6e\u4e3atrue\uff0c\u7136\u540e\u5c06BeanDefinition\u6ce8\u518c\u5230BeanFactory,\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.541\"  data-type=\"png\" data-w=\"1000\" style=\"border-radius: 5px;display: block;margin-right: 10px;margin-bottom: auto;margin-left: 10px;width: 100%;height: 100%;object-fit: contain;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015620144.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.541\"  data-type=\"png\" data-w=\"1000\" style=\"border-radius: 5px;display: block;margin-right: 10px;margin-bottom: auto;margin-left: 10px;width: 100%;height: 100%;object-fit: contain;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015620144.png\"><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;margin-top: 5px;margin-bottom: 5px;line-height: 1.75;letter-spacing: 0.1em;word-spacing: 0.1em;text-align: justify;color: rgba(0, 0, 0, 0.85);\">\u5728\u83b7\u53d6bean\u7684\u65f6\u5019\uff0c\u9996\u5148\u4f1a\u83b7\u53d6\u7c7b\u578b\u4e0b\u9762\u7684\u6240\u6709bean\uff0c\u7136\u540e\u518d\u6839\u636ebean\u7684\u540d\u5b57\u53bb\u83b7\u53d6BeanDefination\uff0c\u6700\u540e\u9009\u62e9primary\u5c5e\u6027\u4e3atrue\u7684bean\u8fd4\u56de\uff0c\u5982\u679c\u540c\u4e00\u7c7b\u578b\u4e0b\u7684bean\u90fd\u52a0\u4e86@Primary\u6ce8\u89e3\uff0c\u90a3\u4e48\u83b7\u53d6\u7684\u65f6\u5019\u4f1a\u62a5\u9519\u3002<\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.4782157676348548\"  data-type=\"png\" data-w=\"964\" style=\"border-radius: 5px;display: block;margin-right: 10px;margin-bottom: auto;margin-left: 10px;width: 100%;height: 100%;object-fit: contain;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015623372.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.4782157676348548\"  data-type=\"png\" data-w=\"964\" style=\"border-radius: 5px;display: block;margin-right: 10px;margin-bottom: auto;margin-left: 10px;width: 100%;height: 100%;object-fit: contain;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015623372.png\"><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;margin-top: 5px;margin-bottom: 5px;line-height: 1.75;letter-spacing: 0.1em;word-spacing: 0.1em;text-align: justify;color: rgba(0, 0, 0, 0.85);\">\u4ee5\u4e0a\u5c31\u7b80\u5355\u7684\u5206\u6790\u4e86@Primary\u7684\u6e90\u7801\uff0c\u5176\u5b9e\u662f\u6bd4\u8f83\u7b80\u5355\u7684\uff0cprimary\u4f5c\u4e3abean\u5b9a\u4e49\u4fe1\u606f\u4e2d\u7684\u4e00\u4e2a\u5c5e\u6027\uff0cspring\u626b\u63cf\u5230\u4e86\u6807\u6709\u8fd9\u4e2a\u6ce8\u89e3\uff0c\u5c31\u4f1a\u5c06BeanDefinition\u7684primary\u8bbe\u7f6e\u4e3atrue\uff0c\u83b7\u53d6\u83b7\u53d6bean\u7684\u65f6\u5019\uff0c\u5c31\u518d\u6b21\u53d6\u51faBeandefinition\uff0c\u5224\u65adprimary\u5c5e\u6027\uff0c\u7136\u540e\u4ece\u83b7\u53d6\u7684\u5019\u9009bean\u4e2d\u9009\u51faprimary\u4e3atrue\u7684\u90a3\u4e2a\u3002<\/p>\n<blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 0.9em;overflow: auto;color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;text-size-adjust: 100%;line-height: 1.75em;border-radius: 5px;box-sizing: inherit;border-width: 1px;border-top-style: solid;border-right-style: solid;border-bottom-style: solid;border-color: rgb(255, 191, 82);background: rgb(255, 248, 230);\"><p><span style=\"color: #f48a00;font-size: 32px;line-height: 0.6;margin-left: -15px;\">\u275d<\/span><\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;letter-spacing: 0.1em;font-size: 16px;word-spacing: 0.1em;text-align: justify;line-height: 26px;margin-top: -15px;color: rgba(0, 0, 0, 0.85);\">\u4eca\u5929\u7684\u5206\u4eab\u5c31\u5230\u8fd9\u91cc\uff0c\u611f\u8c22\u4f60\u7684\u89c2\u770b\uff0c\u4e0b\u671f\u89c1\uff01<\/p>\n<\/blockquote>\n<\/section>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 \u5218\u724c              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u4ecb\u7ecd \u4eca\u5929\u5206\u4eab\u4e00\u4e0bSpring\u4e2d\u7684@Primary\u6ce8\u89e3\uff0cPrimary\u7684\u610f\u601d\u662f\u4e3b\u8981\u7684\uff0c\u6211\u4eec\u5728\u4f7f\u7528spring\u7684\u65f6\u5019\uff0c\u96be\u514d\u4f1a\u5b9a\u4e49\u591a\u4e2a &#8230;<\/p>\n","protected":false},"author":2,"featured_media":716,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-720","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring-boot"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015619775-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015620144.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015619775-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015619775-1024x436.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015620144.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015619775-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015619775-1024x436.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015619775.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015620144.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015620144.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015623372.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528015623372.png","id":"image3"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring Boot","post_date":"2023-05-27","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":754,"next_post_id":1005,"next_post_title":"\u6570\u636e\u5e93\u94fe\u63a5\u6c60\u7ec8\u4e8e\u641e\u5bf9\u4e86\uff0c\u8fd9\u6b21\u76f4\u63a5\u4ece100ms\u4f18\u5316\u52303ms\uff01","previous_post_id":917,"previous_post_title":"Spring-15 Spring Certified Professional \u8bd5\u9898\u6574\u7406 \u2460","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=720"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/720\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/716"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}