{"id":796,"date":"2023-05-28T02:10:40","date_gmt":"2023-05-27T18:10:40","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=796"},"modified":"2023-05-28T02:10:40","modified_gmt":"2023-05-27T18:10:40","slug":"spring-%e6%ba%90%e7%a0%81%e5%ad%a6%e4%b9%a0-%e2%91%a1-beanfactory-dogetbean-%e6%89%a7%e8%a1%8c%e6%b5%81%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring-%e6%ba%90%e7%a0%81%e5%ad%a6%e4%b9%a0-%e2%91%a1-beanfactory-dogetbean-%e6%89%a7%e8%a1%8c%e6%b5%81%e7%a8%8b\/","title":{"rendered":"Spring \u6e90\u7801\u5b66\u4e60 \u2461 BeanFactory doGetBean \u6267\u884c\u6d41\u7a0b"},"content":{"rendered":"<div class='wxsyncmain'>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"font-size: 16px;color: black;padding: 0px 10px;line-height: 1.6;word-spacing: 0px;letter-spacing: 0px;word-break: break-word;overflow-wrap: break-word;text-align: left;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;\">\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin: 0;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.5714285714285714\"  data-type=\"png\" data-w=\"700\" style=\"display: block;margin: 0 auto;max-width: 100%;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020151271.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.5714285714285714\"  data-type=\"png\" data-w=\"700\" style=\"display: block;margin: 0 auto;max-width: 100%;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020151271.png\"  \/><\/noscript><figcaption style=\"margin-top: 5px;text-align: center;color: #888;font-size: 14px;\"><br  \/><\/figcaption><\/figure>\n<h1 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 24px;\"><span style=\"display: none;\"><\/span>Spring \u6e90\u7801\u5b66\u4e60 \u2461 BeanFactory doGetBean \u6267\u884c\u6d41\u7a0b<\/h1>\n<blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-top: none;border-right: none;border-bottom: none;display: block;font-size: 0.9em;overflow: auto;border-left: 3px solid rgba(0, 0, 0, 0.4);background: rgba(0, 0, 0, 0.05);color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0px;color: black;line-height: 26px;\">Spring \u6e90\u7801\u7cfb\u5217\u6587\u7ae0\u4f1a\u9075\u5faa\u7531\u6d45\u5165\u6df1,\u7531\u6613\u5230\u96be,\u7531\u5b8f\u89c2\u5230\u5fae\u89c2\u7684\u539f\u5219,\u76ee\u6807\u662f\u5c3d\u91cf\u964d\u4f4e\u5b66\u4e60\u96be\u5ea6,\u800c\u4e0d\u662f\u4e00\u4e0a\u6765\u5c31\u8ff7\u5931\u5728\u6e90\u7801\u5f53\u4e2d. \u6587\u7ae0\u4f1a\u4ece\u4e00\u4e2a\u573a\u666f\u4f5c\u4e3a\u51fa\u53d1\u70b9\uff0c\u9488\u5bf9\u6027\u7684\u76ee\u7684\u6027\u6781\u5f3a\u7684\u9488\u5bf9\u8be5\u573a\u666f\u5bf9 Spring \u7684\u5b9e\u73b0\u539f\u7406\uff0c\u6e90\u7801\u8fdb\u884c\u63a2\u7a76\u5b66\u4e60\u3002\u8be5\u7cfb\u5217\u6587\u7ae0\u4f1a\u8ba9\u4f60\u6536\u83b7\u4ec0\u4e48? \u4ece\u5bf9 Spring \u7684\u4f7f\u7528\u8005\u6210\u4e3a Spring \u4e13\u5bb6\u3002\u8be5\u6587\u7ae0\u4f1a\u540c\u6b65\u5728\u5fae\u4fe1\u516c\u4f17\u53f7 \u3010DevXJava\u3011, \u65b9\u4fbf\u5728\u5fae\u4fe1\u5ba2\u6237\u7aef\u9605\u8bfb\u3002<\/p>\n<\/blockquote>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0;line-height: 26px;color: black;\">\u672c\u7bc7\u7684\u5185\u5bb9\u662f\u5bf9 <code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;color: #1e6bb8;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">BeanFactory<\/code> <code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;color: #1e6bb8;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">doGetBean<\/code> \u65b9\u6cd5\u7684\u63a2\u7a76,\u4f1a\u6d89\u53ca\u5230\u4e00\u90e8\u5206\u6e90\u7801,\u4f46\u4e0d\u4f1a\u5927\u91cf\u7684\u8bb2\u89e3\u6e90\u7801,\u76ee\u6807\u662f\u8ba9\u8bfb\u8005\u5bf9 <code style=\"font-size: 14px;word-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin: 0 2px;color: #1e6bb8;background-color: rgba(27,31,35,.05);font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;word-break: break-all;\">doGetBean<\/code> \u65b9\u6cd5\u4e2d\u505a\u7684\u4e8b\u60c5\u548c\u6d41\u7a0b\u6709\u5927\u81f4\u7684\u5b8f\u89c2\u7684\u8ba4\u8bc6\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 22px;\"><span style=\"display: none;\"><\/span>\u573a\u666f<\/h2>\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\/20230528020200101.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;\">protected &lt;T&gt; T doGetBean(<br  \/>      String name, @Nullable Class&lt;T&gt; requiredType, @Nullable Object[] args, boolean typeCheckOnly)<br  \/>      throws BeansException {<br  \/><br  \/>   String beanName = transformedBeanName(name);<br  \/>   Object beanInstance;<br  \/><br  \/>   \/\/ \u4ece\u5355\u4f8b\u7f13\u5b58\u4e2d\u83b7\u53d6 bean \u5b9e\u4f8b<br  \/>   \/\/ Eagerly check singleton cache for manually registered singletons.<br  \/>   Object sharedInstance = getSingleton(beanName);<br  \/>   if (sharedInstance != null &amp;&amp; args == null) {<br  \/>      if (logger.isTraceEnabled()) {<br  \/>         if (isSingletonCurrentlyInCreation(beanName)) {<br  \/>            logger.trace(\"Returning eagerly cached instance of singleton bean '\" + beanName +<br  \/>                  \"' that is not fully initialized yet - a consequence of a circular reference\");<br  \/>         }<br  \/>         else {<br  \/>            logger.trace(\"Returning cached instance of singleton bean '\" + beanName + \"'\");<br  \/>         }<br  \/>      }<br  \/><br  \/>      \/\/ \u9488\u5bf9 FactoryBean \u5b9e\u4f8b\u8fdb\u884c\u5904\u7406<br  \/>      beanInstance = getObjectForBeanInstance(sharedInstance, name, beanName, null);<br  \/>   }<br  \/><br  \/>   \/\/ \u6ca1\u6709\u4ece\u5355\u4f8b\u7f13\u5b58\u4e2d\u83b7\u53d6\u5230\u5b9e\u4f8b<br  \/>   else {<br  \/>      \/\/ Fail if we're already creating this bean instance:<br  \/>      \/\/ We're assumably within a circular reference.<br  \/>      if (isPrototypeCurrentlyInCreation(beanName)) {<br  \/>         throw new BeanCurrentlyInCreationException(beanName);<br  \/>      }<br  \/><br  \/>      \/\/ \u5c1d\u8bd5\u4ece\u7236 BeanFactory \u4e2d\u83b7\u53d6 bean , \u5982\u679c\u83b7\u53d6\u5230\u4f1a\u76f4\u63a5\u8fd4\u56de<br  \/>      \/\/ Check if bean definition exists in this factory.<br  \/>      BeanFactory parentBeanFactory = getParentBeanFactory();<br  \/>      if (parentBeanFactory != null &amp;&amp; !containsBeanDefinition(beanName)) {<br  \/>         \/\/ Not found -&gt; check parent.<br  \/>         String nameToLookup = originalBeanName(name);<br  \/>         if (parentBeanFactory instanceof AbstractBeanFactory) {<br  \/>            return ((AbstractBeanFactory) parentBeanFactory).doGetBean(<br  \/>                  nameToLookup, requiredType, args, typeCheckOnly);<br  \/>         }<br  \/>         else if (args != null) {<br  \/>            \/\/ Delegation to parent with explicit args.<br  \/>            return (T) parentBeanFactory.getBean(nameToLookup, args);<br  \/>         }<br  \/>         else if (requiredType != null) {<br  \/>            \/\/ No args -&gt; delegate to standard getBean method.<br  \/>            return parentBeanFactory.getBean(nameToLookup, requiredType);<br  \/>         }<br  \/>         else {<br  \/>            return (T) parentBeanFactory.getBean(nameToLookup);<br  \/>         }<br  \/>      }<br  \/><br  \/>      if (!typeCheckOnly) {<br  \/>         markBeanAsCreated(beanName);<br  \/>      }<br  \/><br  \/>      StartupStep beanCreation = this.applicationStartup.start(\"spring.beans.instantiate\")<br  \/>            .tag(\"beanName\", name);<br  \/>      try {<br  \/>         if (requiredType != null) {<br  \/>            beanCreation.tag(\"beanType\", requiredType::toString);<br  \/>         }<br  \/>         RootBeanDefinition mbd = getMergedLocalBeanDefinition(beanName);<br  \/>         checkMergedBeanDefinition(mbd, beanName, args);<br  \/><br  \/>         \/\/ \u68c0\u67e5 bean \u662f\u5426\u5b58\u5728\u5faa\u73af\u5f15\u7528 , \u5e76\u521d\u59cb\u5316\u5f53\u524d bean \u6240\u4f9d\u8d56\u7684 bean \u5b9e\u4f8b<br  \/><br  \/>         \/\/ Guarantee initialization of beans that the current bean depends on.<br  \/>         String[] dependsOn = mbd.getDependsOn();<br  \/>         if (dependsOn != null) {<br  \/>            for (String dep : dependsOn) {<br  \/>               if (isDependent(beanName, dep)) {<br  \/>                  throw new BeanCreationException(mbd.getResourceDescription(), beanName,<br  \/>                        \"Circular depends-on relationship between '\" + beanName + \"' and '\" + dep + \"'\");<br  \/>               }<br  \/>               registerDependentBean(dep, beanName);<br  \/>               try {<br  \/>                  getBean(dep);<br  \/>               }<br  \/>               catch (NoSuchBeanDefinitionException ex) {<br  \/>                  throw new BeanCreationException(mbd.getResourceDescription(), beanName,<br  \/>                        \"'\" + beanName + \"' depends on missing bean '\" + dep + \"'\", ex);<br  \/>               }<br  \/>            }<br  \/>         }<br  \/><br  \/>         \/\/ \u8fd9\u91cc\u5f00\u59cb\u771f\u6b63\u8fdb\u884c bean \u7684\u521b\u5efa\u8fc7\u7a0b<br  \/><br  \/>         \/\/ Create bean instance.<br  \/>         if (mbd.isSingleton()) {<br  \/><br  \/>            \/\/ \u5c1d\u8bd5\u4ece\u5355\u4f8b\u7f13\u5b58(singletonObjects)\u4e2d\u83b7\u53d6 bean , \u5982\u679c\u6ca1\u6709\u83b7\u53d6\u5230\u4f1a\u8fdb\u884c bean \u7684\u521b\u5efa<br  \/>            \/\/ bean \u521b\u5efa\u5b8c\u6210\u540e\u4f1a\u88ab\u5b58\u653e\u5230\u5355\u4f8b\u7f13\u5b58\u4e2d \uff08singletonObjects\uff09<br  \/><br  \/>            sharedInstance = getSingleton(beanName, () -&gt; {<br  \/>               try {<br  \/>                  return createBean(beanName, mbd, args);<br  \/>               }<br  \/>               catch (BeansException ex) {<br  \/>                  \/\/ Explicitly remove instance from singleton cache: It might have been put there<br  \/>                  \/\/ eagerly by the creation process, to allow for circular reference resolution.<br  \/>                  \/\/ Also remove any beans that received a temporary reference to the bean.<br  \/>                  destroySingleton(beanName);<br  \/>                  throw ex;<br  \/>               }<br  \/>            });<br  \/>            beanInstance = getObjectForBeanInstance(sharedInstance, name, beanName, mbd);<br  \/>         }<br  \/><br  \/>         \/\/ \u5bf9\u8303\u56f4\u4e3a Prototype \u7c7b\u578b\u7684 bean \u8fdb\u884c\u521b\u5efa,\u76f4\u63a5\u8c03\u7528 createBean \u65b9\u6cd5\u8fdb\u884c\u521b\u5efa<br  \/>         else if (mbd.isPrototype()) {<br  \/>            \/\/ It's a prototype -&gt; create a new instance.<br  \/>            Object prototypeInstance = null;<br  \/>            try {<br  \/>               beforePrototypeCreation(beanName);<br  \/>               prototypeInstance = createBean(beanName, mbd, args);<br  \/>            }<br  \/>            finally {<br  \/>               afterPrototypeCreation(beanName);<br  \/>            }<br  \/>            beanInstance = getObjectForBeanInstance(prototypeInstance, name, beanName, mbd);<br  \/>         }<br  \/><br  \/>         \/\/ \u901a\u8fc7 Scope \u5bf9 bean \u8fdb\u884c\u521b\u5efa<br  \/>         else {<br  \/>            String scopeName = mbd.getScope();<br  \/>            if (!StringUtils.hasLength(scopeName)) {<br  \/>               throw new IllegalStateException(\"No scope name defined for bean '\" + beanName + \"'\");<br  \/>            }<br  \/>            Scope scope = this.scopes.get(scopeName);<br  \/>            if (scope == null) {<br  \/>               throw new IllegalStateException(\"No Scope registered for scope name '\" + scopeName + \"'\");<br  \/>            }<br  \/>            try {<br  \/>               Object scopedInstance = scope.get(beanName, () -&gt; {<br  \/>                  beforePrototypeCreation(beanName);<br  \/>                  try {<br  \/>                     return createBean(beanName, mbd, args);<br  \/>                  }<br  \/>                  finally {<br  \/>                     afterPrototypeCreation(beanName);<br  \/>                  }<br  \/>               });<br  \/>               beanInstance = getObjectForBeanInstance(scopedInstance, name, beanName, mbd);<br  \/>            }<br  \/>            catch (IllegalStateException ex) {<br  \/>               throw new ScopeNotActiveException(beanName, scopeName, ex);<br  \/>            }<br  \/>         }<br  \/>      }<br  \/>      catch (BeansException ex) {<br  \/>         beanCreation.tag(\"exception\", ex.getClass().toString());<br  \/>         beanCreation.tag(\"message\", String.valueOf(ex.getMessage()));<br  \/>         cleanupAfterBeanCreationFailure(beanName);<br  \/>         throw ex;<br  \/>      }<br  \/>      finally {<br  \/>         beanCreation.end();<br  \/>      }<br  \/>   }<br  \/><br  \/>   \/\/ bean \u521b\u5efa\u6210\u529f\u540e\u5bf9 bean \u8fdb\u884c\u7c7b\u578b\u8f6c\u6362\u540e\u8fd4\u56de<br  \/>   return adaptBeanInstance(name, beanInstance, requiredType);<br  \/>}<br  \/><\/code><\/pre>\n<blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-top: none;border-right: none;border-bottom: none;display: block;font-size: 0.9em;overflow: auto;border-left: 3px solid rgba(0, 0, 0, 0.4);background: rgba(0, 0, 0, 0.05);color: rgb(106, 115, 125);padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px;\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0px;color: black;line-height: 26px;\">\u66f4\u8be6\u7ec6\u7684\u7ec6\u8282\u8fc7\u7a0b\u4ee5\u53ca\u6e90\u7801\u4f1a\u5728\u7cfb\u5217\u6587\u7ae0\u7684\u540e\u7eed\u5185\u5bb9\u4e2d\u63d0\u4f9b\u3002\u8be5\u6587\u7ae0\u4f1a\u540c\u6b65\u5728\u5fae\u4fe1\u516c\u4f17\u53f7 \u3010DevXJava\u3011, \u65b9\u4fbf\u5728\u5fae\u4fe1\u5ba2\u6237\u7aef\u9605\u8bfb\u3002<br  \/>\u83b7\u53d6\u5b8c\u6574\u4ee3\u7801\u548c\u7b14\u8bb0: https:\/\/gitee.com\/kernelHP\/spring-certified-professional-edu<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><strong style=\"font-weight: bold;color: black;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/strong><\/p>\n<p style=\"text-align: center;\"><span style=\"font-size: 20px;\"><strong style=\"font-weight: bold;color: black;\">DevXJava<\/strong><\/span><\/p>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-s=\"300,640\"  data-type=\"jpeg\" style=\"width: 198px;height: 198px;\" data-ratio=\"1\" data-w=\"258\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020159743.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-s=\"300,640\"  data-type=\"jpeg\" style=\"width: 198px;height: 198px;\" data-ratio=\"1\" data-w=\"258\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020159743.jpeg\"  \/><\/noscript><\/p>\n<p><br  \/><\/p>\n<p><br  \/><\/p>\n<\/section>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 DevXJava              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>Spring \u6e90\u7801\u5b66\u4e60 \u2461 BeanFactory doGetBean \u6267\u884c\u6d41\u7a0b Spring \u6e90\u7801\u7cfb\u5217\u6587\u7ae0\u4f1a\u9075\u5faa\u7531\u6d45\u5165\u6df1,\u7531\u6613\u5230 &#8230;<\/p>\n","protected":false},"author":2,"featured_media":791,"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-796","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\/20230528020150422-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020151271.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020150422-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020150422.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020151271.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020150422-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020150422.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020150422.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020151271.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020151271.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020159743.jpeg","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528020159743.jpeg","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":331,"next_post_id":535,"next_post_title":"Controller\u5c42\u4ee3\u7801\u5c31\u8be5\u8fd9\u4e48\u5199\uff0c\u7b80\u6d01\u53c8\u4f18\u96c5\uff01","previous_post_id":583,"previous_post_title":"Springboot \u52a8\u6001\u914d\u7f6e\u53ca\u4e00\u952e\u6253\u5305\u90e8\u7f72","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/796","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=796"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/796\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/791"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}