{"id":3506,"date":"2023-11-02T17:19:58","date_gmt":"2023-11-02T09:19:58","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=3506"},"modified":"2023-11-02T17:19:58","modified_gmt":"2023-11-02T09:19:58","slug":"springboot-%e9%87%87%e7%94%a8-jsonserializer-%e5%92%8c-aop-%e5%ae%9e%e7%8e%b0%e5%8f%af%e6%8e%a7%e5%88%b6%e7%9a%84%e6%95%b0%e6%8d%ae%e8%84%b1%e6%95%8f","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/springboot-%e9%87%87%e7%94%a8-jsonserializer-%e5%92%8c-aop-%e5%ae%9e%e7%8e%b0%e5%8f%af%e6%8e%a7%e5%88%b6%e7%9a%84%e6%95%b0%e6%8d%ae%e8%84%b1%e6%95%8f\/","title":{"rendered":"SpringBoot \u91c7\u7528 JsonSerializer \u548c Aop \u5b9e\u73b0\u53ef\u63a7\u5236\u7684\u6570\u636e\u8131\u654f"},"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-right: 10px;padding-left: 10px;line-height: 1.6;letter-spacing: 0px;word-break: break-word;text-align: left;counter-reset: counterh1 0 counterh2 0 counterh3 0;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;\" data-mpa-powered-by=\"yiban.io\">\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;\"><span style=\"display: inline-block;\"><span style=\"counter-increment: counterh2;color: rgb(159,205,208);border-bottom: 4px solid rgb(159,205,208);font-size: 18px;padding: 2px 4px;\">1<\/span><\/span><span style=\"font-size: 18px;border-bottom: 4px solid rgb(37,132,181);padding: 2px 4px;color: rgb(37,132,181);\">\u8d77\u56e0<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6700\u8fd1\u5728\u5199\u4e00\u4e2a\u529f\u80fd\uff0c\u5bf9\u7528\u6237\u654f\u611f\u7684\u6570\u636e\u8fdb\u884c\u8131\u654f\uff0c\u5728\u7f51\u4e0a\u770b\u4e00\u5708\u57fa\u672c\u4e0a\u90fd\u662f\u5168\u5c40\u8303\u56f4\u7684\uff0c\u6211\u89c9\u5f97\u5e94\u8be5\u66f4\u52a0\u7075\u6d3b\uff0c\u5728\u4e0d\u540c\u573a\u666f\uff0c\u4e0d\u540c\u4e1a\u52a1\u4e0b\u8fdb\u884c\u8131\u654f\u66f4\u52a0\u5408\u9002\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">JsonSerializer\u4ecb\u7ecd\u5c31\u53c2\u8003\u8fd9\u4f4d\u5927\u4f6c\u7684<\/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;border-width: 1px;border-style: dashed;border-color: rgb(37, 132, 181);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">https:\/\/juejin.cn\/post\/6872636051237240846<\/p>\n<\/blockquote>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">aop\u4ecb\u7ecd\u53c2\u8003\u8fd9\u4f4d\u5927\u4f6c\u7684<\/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;border-width: 1px;border-style: dashed;border-color: rgb(37, 132, 181);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">https:\/\/juejin.cn\/post\/6844903575441637390<\/p>\n<\/blockquote>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 22px;\"><span style=\"display: inline-block;\"><span style=\"counter-increment: counterh2;color: rgb(159,205,208);border-bottom: 4px solid rgb(159,205,208);font-size: 18px;padding: 2px 4px;\">2<\/span><\/span><span style=\"font-size: 18px;border-bottom: 4px solid rgb(37,132,181);padding: 2px 4px;color: rgb(37,132,181);\">\u521d\u6b65\u5c1d\u8bd5<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u679a\u4e3e\u7c7b<\/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\/11\/20231102171237301.jpeg&quot;) 10px 10px \/ 40px no-repeat rgb(39, 40, 34);height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #ddd;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #272822;border-radius: 5px;\"><span style=\"color: #75715e;line-height: 26px;\">@Component<\/span><span style=\"color: #75715e;line-height: 26px;\">@Aspect<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"line-height: 26px;\"><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">class<\/span><span style=\"font-weight: bold;color: white;line-height: 26px;\">PrivacyKeyAspect<\/span><\/span>{<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">static<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">final<\/span>Loggerlogger=LoggerFactory.getLogger(PrivacyKeyAspect<span style=\"line-height: 26px;\">.<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">class<\/span>)<\/span>;<span style=\"color: #75715e;line-height: 26px;\">\/***<span style=\"font-weight: bold;line-height: 26px;\">@Description<\/span>:\u73af\u7ed5\u901a\u77e5\u5305\u542b\u6b64\u6ce8\u89e3\u7684*<span style=\"font-weight: bold;line-height: 26px;\">@param<\/span>:ProceedingJoinPointjoinPoint*<span style=\"font-weight: bold;line-height: 26px;\">@return<\/span>:Object*\/<\/span><span style=\"color: #75715e;line-height: 26px;\">@Around<\/span>(value=<span style=\"color: #a6e22e;line-height: 26px;\">\"@annotation(\"<\/span>aop\u6ce8\u89e3\u5730\u5740xxxxx<span style=\"color: #a6e22e;line-height: 26px;\">\")\"<\/span>)<span style=\"line-height: 26px;\"><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">public<\/span>Object<span style=\"color: #a6e22e;font-weight: bold;line-height: 26px;\">repeatSub<\/span><span style=\"line-height: 26px;\">(ProceedingJoinPointjoinPoint)<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">throws<\/span>Throwable<\/span>{<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">return<\/span>joinPoint.proceed();}<span style=\"color: #75715e;line-height: 26px;\">\/***<span style=\"font-weight: bold;line-height: 26px;\">@Description<\/span>:\u540e\u7f6e\u901a\u77e5*\/<\/span><span style=\"color: #75715e;line-height: 26px;\">@AfterReturning<\/span>(value=<span style=\"color: #a6e22e;line-height: 26px;\">\"@annotation(\"<\/span>aop\u6ce8\u89e3\u5730\u5740<span style=\"color: #a6e22e;line-height: 26px;\">\")\"<\/span>,returning=<span style=\"color: #a6e22e;line-height: 26px;\">\"result\"<\/span>)<span style=\"line-height: 26px;\"><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">public<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">void<\/span><span style=\"color: #a6e22e;font-weight: bold;line-height: 26px;\">setPrivacyKeyType<\/span><span style=\"line-height: 26px;\">(JoinPointjoinPoint,Objectresult)<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">throws<\/span>Throwable<\/span>{<span style=\"color: #75715e;line-height: 26px;\">\/\/\u8fdb\u884c\u6ce8\u89e3\u503c\u83b7\u53d6<\/span>MethodSignaturesignature=(MethodSignature)joinPoint.getSignature();Methodmethod=signature.getMethod();<span style=\"color: #75715e;line-height: 26px;\">\/\/\u662f\u5426\u5f00\u542f\u8131\u654f<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">boolean<\/span>flag=method.getDeclaredAnnotation(PrivacyKeyAnnotation<span style=\"line-height: 26px;\">.<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">class<\/span>).<span style=\"font-weight: bold;color: white;line-height: 26px;\">isKey<\/span>()<\/span>;<span style=\"color: #75715e;line-height: 26px;\">\/\/\u662f\u5426\u5bf9\u5206\u9875\u8fdb\u884c\u8131\u654f<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">boolean<\/span>status=method.getDeclaredAnnotation(PrivacyKeyAnnotation<span style=\"line-height: 26px;\">.<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">class<\/span>).<span style=\"font-weight: bold;color: white;line-height: 26px;\">isPageKey<\/span>()<\/span>;<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">if<\/span>(!status){<span style=\"color: #75715e;line-height: 26px;\">\/\/\u8fdb\u884c\u8fd4\u56de\u503c\u53cd\u5c04<\/span>Class&lt;?&gt;aClass=ClassRecursionUtils.getClass(result.getClass(),<span style=\"color: #a6e22e;line-height: 26px;\">\"isPrivacyKey\"<\/span>);<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">if<\/span>(<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">null<\/span>!=aClass){setFieldMethod(result,flag,aClass);}}<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">else<\/span>{<span style=\"color: #75715e;line-height: 26px;\">\/\/\u53cd\u5c04\u5206\u9875page<\/span><span style=\"color: #75715e;line-height: 26px;\">\/\/\u53cd\u5c04list\u7c7b\u578b<\/span>Parameter[]parameters=signature.getMethod().getParameters();<span style=\"color: #75715e;line-height: 26px;\">\/\/\u6cdb\u578b\u540d\u79f0<\/span>Stringname=parameters[<span style=\"line-height: 26px;\">0<\/span>].getName();<span style=\"color: #75715e;line-height: 26px;\">\/\/\u6cdb\u578bclass<\/span>Class&lt;?&gt;type=parameters[<span style=\"line-height: 26px;\">0<\/span>].getType();<span style=\"color: #75715e;line-height: 26px;\">\/\/\u5305\u540d<\/span>StringtypeName=type.getName();PropertyDescriptor[]ps=Introspector.getBeanInfo(result.getClass(),Object<span style=\"line-height: 26px;\">.<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">class<\/span>).<span style=\"font-weight: bold;color: white;line-height: 26px;\">getPropertyDescriptors<\/span>()<\/span>;<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">for<\/span>(PropertyDescriptorprop:ps){<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">if<\/span>(prop.getPropertyType().isAssignableFrom(List<span style=\"line-height: 26px;\">.<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">class<\/span>))<\/span>{<span style=\"color: #75715e;line-height: 26px;\">\/\/List\u96c6\u5408\u7c7b\u578b<\/span>Objectobj=result.getClass().getMethod(prop.getReadMethod().getName()).invoke(result);<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">if<\/span>(obj!=<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">null<\/span>){List&lt;?&gt;listObj=(List&lt;?&gt;)obj;<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">for<\/span>(Objectnext:listObj){Class&lt;?&gt;classObj=Class.forName(typeName);<span style=\"color: #75715e;line-height: 26px;\">\/\/\u83b7\u53d6\u6210\u5458\u53d8\u91cf<\/span>Class&lt;?&gt;keyClass=ClassRecursionUtils.getClass(classObj,<span style=\"color: #a6e22e;line-height: 26px;\">\"isPrivacyKey\"<\/span>);setFieldMethod(next,flag,keyClass);}}}}}}<span style=\"color: #75715e;line-height: 26px;\">\/***\u5185\u5bb9\u586b\u5145*\/<\/span><span style=\"line-height: 26px;\"><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">private<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">void<\/span><span style=\"color: #a6e22e;font-weight: bold;line-height: 26px;\">setFieldMethod<\/span><span style=\"line-height: 26px;\">(Objectresult,<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">boolean<\/span>flag,Class&lt;?&gt;aClass)<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">throws<\/span>IllegalAccessException<\/span>{Field[]declaredFields=aClass.getDeclaredFields();<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">for<\/span>(Fieldfield:declaredFields){<span style=\"color: #75715e;line-height: 26px;\">\/\/\u8bbe\u7f6e\u5c5e\u6027\u7684\u53ef\u8bbf\u95ee\u6027<\/span>field.setAccessible(<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">true<\/span>);<span style=\"color: #75715e;line-height: 26px;\">\/\/\u53ea\u83b7\u53d6isPrivacyKey<\/span>Stringname=field.getName();<span style=\"color: #75715e;line-height: 26px;\">\/\/\u8fc7\u6ee4\u975e\u5e03\u5c14\u7c7b\u578b<\/span>Class&lt;?&gt;type=field.getType();<span style=\"color: #75715e;line-height: 26px;\">\/\/\u5e76\u4e14\u53ea\u6dfb\u52a0isPrivacyKey<\/span><span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">if<\/span>(type.isAssignableFrom(Boolean<span style=\"line-height: 26px;\">.<span style=\"color: #f92672;font-weight: bold;line-height: 26px;\">class<\/span>)&amp;&amp;\"<span style=\"font-weight: bold;color: white;line-height: 26px;\">isPrivacyKey<\/span>\".<span style=\"font-weight: bold;color: white;line-height: 26px;\">equals<\/span>(<span style=\"font-weight: bold;color: white;line-height: 26px;\">name<\/span>))<\/span>{<span style=\"color: #75715e;line-height: 26px;\">\/\/\u91cd\u65b0\u5199\u5165<\/span>field.set(result,flag);}}}}<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u4f7f\u7528 \u5728service implement\u7c7b\u65b9\u6cd5\u4e0a\u5199\u5165<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6700\u540e\uff0c\u53e6\u4e00\u79cd\u5b9e\u73b0\u65b9\u5f0f\uff0c\u53ef\u4ee5\u53c2\u8003\uff1a<\/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;border-width: 1px;border-style: dashed;border-color: rgb(37, 132, 181);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px;\">https:\/\/juejin.cn\/post\/7242145254057410615<\/p>\n<\/blockquote>\n<\/section>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"margin-bottom: 0px;padding-right: 10px;padding-left: 10px;outline: 0px;text-wrap: wrap;color: black;font-size: 16px;letter-spacing: 0px;text-align: left;background-color: rgb(255, 255, 255);line-height: 1.6;word-break: break-word;font-family: PingFangSC-Light;\">\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"outline: 0px;font-family: -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;text-align: right;\"><em style=\"outline: 0px;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\">\u6765\u6e90\uff1ajuejin.cn\/post\/7225848846785544247<\/em><\/h3>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"outline: 0px;font-family: -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;text-align: right;\"><em style=\"outline: 0px;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\"><\/em><\/h3>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"outline: 0px;font-family: -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;text-align: right;\"><em style=\"outline: 0px;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\"><\/em><\/h3>\n<p style=\"outline: 0px;\"><em style=\"outline: 0px;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\"><\/em><\/p>\n<\/section>\n<section style=\"margin-bottom: 0px;outline: 0px;letter-spacing: 0.544px;text-wrap: wrap;color: rgb(0, 0, 0);font-size: 16px;font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, Arial, sans-serif;text-align: center;widows: 1;caret-color: rgb(60, 60, 60);background-color: rgb(255, 255, 255);\"><span style=\"outline: 0px;font-size: 20px;color: rgb(255, 0, 0);\"><strong style=\"outline: 0px;\">\u540e\u7aef\u4e13\u5c5e\u6280\u672f\u7fa4<\/strong><\/span><\/section>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;outline: 0px;text-wrap: wrap;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;font-size: 16px;letter-spacing: normal;text-align: center;widows: 1;caret-color: rgb(60, 60, 60);background-color: rgb(255, 255, 255);line-height: 26px;visibility: visible;\">\u6784\u5efa\u9ad8\u8d28\u91cf\u7684\u6280\u672f\u4ea4\u6d41\u793e\u7fa4\uff0c\u6b22\u8fce\u4ece\u4e8b\u7f16\u7a0b\u5f00\u53d1\u3001\u6280\u672f\u62db\u8058HR\u8fdb\u7fa4\uff0c\u4e5f\u6b22\u8fce\u5927\u5bb6\u5206\u4eab\u81ea\u5df1\u516c\u53f8\u7684\u5185\u63a8\u4fe1\u606f\uff0c\u76f8\u4e92\u5e2e\u52a9\uff0c\u4e00\u8d77\u8fdb\u6b65\uff01<\/p>\n<blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 20px;margin-bottom: 20px;padding: 10px 10px 10px 1em;outline: 0px;border-left-width: 2px;border-left-color: rgb(136, 136, 136);color: rgb(119, 119, 119);font-size: 0.9em;text-wrap: wrap;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: normal;text-align: left;widows: 1;caret-color: rgb(60, 60, 60);border-top: none;border-bottom: none;overflow: auto;background: rgba(0, 0, 0, 0.05);border-right: 2px solid rgb(136, 136, 136);visibility: visible;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;outline: 0px;font-size: 16px;text-align: justify;color: black;line-height: 26px;visibility: visible;\">\u6587\u660e\u53d1\u8a00\uff0c\u4ee5<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(0, 150, 136);visibility: visible;\">\u4ea4\u6d41\u6280\u672f<\/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(0, 150, 136);visibility: visible;\">\u804c\u4f4d\u5185\u63a8<\/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(0, 150, 136);visibility: visible;\">\u884c\u4e1a\u63a2\u8ba8<\/code>\u4e3a\u4e3b<\/p>\n<\/blockquote>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;outline: 0px;text-wrap: wrap;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;font-size: 16px;letter-spacing: normal;text-align: center;widows: 1;caret-color: rgb(60, 60, 60);background-color: rgb(255, 255, 255);line-height: 26px;visibility: visible;\">\u5e7f\u544a\u4eba\u58eb\u52ff\u5165\uff0c\u5207\u52ff\u8f7b\u4fe1\u79c1\u804a\uff0c\u9632\u6b62\u88ab\u9a97<\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;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;text-wrap: wrap;color: rgb(0, 0, 0);font-size: 16px;background-color: rgb(255, 255, 255);text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-ratio=\"1.0212201591511936\" data-s=\"300,640\"  data-type=\"png\" data-w=\"377\" style=\"outline: 0px;visibility: visible !important;width: 191px !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171230441.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-galleryid=\"\" data-ratio=\"1.0212201591511936\" data-s=\"300,640\"  data-type=\"png\" data-w=\"377\" style=\"outline: 0px;visibility: visible !important;width: 191px !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171230441.png\"  \/><\/noscript><\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;text-wrap: wrap;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;font-size: 16px;letter-spacing: normal;text-align: left;widows: 1;caret-color: rgb(60, 60, 60);background-color: rgb(255, 255, 255);display: flex;flex-direction: column;justify-content: center;align-items: center;visibility: visible;\"><figcaption style=\"margin-top: 5px;outline: 0px;text-align: center;color: rgb(136, 136, 136);font-size: 14px;visibility: visible;\">\u52a0\u6211\u597d\u53cb\uff0c\u62c9\u4f60\u8fdb\u7fa4<\/figcaption><\/figure>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 Java\u7b14\u8bb0\u867e              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>1\u8d77\u56e0 \u6700\u8fd1\u5728\u5199\u4e00\u4e2a\u529f\u80fd\uff0c\u5bf9\u7528\u6237\u654f\u611f\u7684\u6570\u636e\u8fdb\u884c\u8131\u654f\uff0c\u5728\u7f51\u4e0a\u770b\u4e00\u5708\u57fa\u672c\u4e0a\u90fd\u662f\u5168\u5c40\u8303\u56f4\u7684\uff0c\u6211\u89c9\u5f97\u5e94\u8be5\u66f4\u52a0\u7075\u6d3b\uff0c\u5728\u4e0d\u540c\u573a\u666f\uff0c\u4e0d\u540c\u4e1a\u52a1\u4e0b\u8fdb &#8230;<\/p>\n","protected":false},"author":1,"featured_media":3496,"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-3506","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\/11\/20231102171216331-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171230441.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171216331-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171216331.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171230441.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171216331-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171216331.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171216331.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171230441.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/11\/20231102171230441.png","id":"image1"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring Boot","post_date":"2023-11-02","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":410,"next_post_id":3528,"next_post_title":"SpringBoot \u63a5\u53e3\u7b7e\u540d\u6821\u9a8c\u5b9e\u8df5","previous_post_id":3539,"previous_post_title":"\u4e00\u6b3e\u5f00\u6e90\u7684\u5206\u5e03\u5f0f\u722c\u866b\u7ba1\u7406\u5e73\u53f0\uff0c\u652f\u6301\u591a\u79cd\u8bed\u8a00\u548c\u6846\u67b6","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3506","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=3506"}],"version-history":[{"count":1,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3506\/revisions"}],"predecessor-version":[{"id":3608,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/3506\/revisions\/3608"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/3496"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=3506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=3506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=3506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}