{"id":1220,"date":"2023-05-28T04:10:16","date_gmt":"2023-05-27T20:10:16","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=1220"},"modified":"2023-05-28T04:10:16","modified_gmt":"2023-05-27T20:10:16","slug":"%e9%9d%a2%e8%af%95%e5%ae%98%ef%bc%9aspring-%e6%b3%a8%e8%a7%a3-afteraroundbefore-%e7%9a%84%e6%89%a7%e8%a1%8c%e9%a1%ba%e5%ba%8f%e6%98%af%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring\/%e9%9d%a2%e8%af%95%e5%ae%98%ef%bc%9aspring-%e6%b3%a8%e8%a7%a3-afteraroundbefore-%e7%9a%84%e6%89%a7%e8%a1%8c%e9%a1%ba%e5%ba%8f%e6%98%af%ef%bc%9f\/","title":{"rendered":"\u9762\u8bd5\u5b98\uff1aSpring \u6ce8\u89e3 @After,@Around,@Before \u7684\u6267\u884c\u987a\u5e8f\u662f\uff1f"},"content":{"rendered":"<div class='wxsyncmain'>\n<p style=\"text-align: left;\"><span style=\"color: rgb(136, 136, 136);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);\">\u539f\u6587\uff1a<\/span><br style=\"outline: 0px;color: rgb(136, 136, 136);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;letter-spacing: 0.544px;white-space: normal;background-color: rgb(255, 255, 255);\"  \/><span style=\"color: rgb(136, 136, 136);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);\">blog.csdn.net\/lmx125254\/article\/details\/84398412<\/span><\/p>\n<section class=\"mp_profile_iframe_wrp\"><mp-common-profile class=\"js_uneditable custom_select_card mp_profile_iframe\" data-pluginname=\"mpprofile\" data-weui-theme=\"light\" data-id=\"MjM5NDQ4MzA1Nw==\" data-headimg=\"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/7OPxOA8ic5m8iaZhZuawOQpg1kY6p7DsNdHYUDLY6XBfZYualr95vI5BKic0SbnZ7lzkibwdTfLmFkx9flmoEvLQiaQ\/0?wx_fmt=png\" data-nickname=\"IT\u725b\u5ba2\" data-alias=\"\" data-signature=\"\u4e13\u6ce8\u4e8eIT\u6280\u672f\u5206\u4eab\uff0c\u539f\u521b\u6280\u672f\u548c\u521b\u65b0\u6280\u672f\u5206\u4eab\uff0cIT\u725b\u5ba2\uff0c\u6211\u4eec\u4e00\u8d77\u8fdb\u6b65\u2026\u2026\" data-from=\"0\" data-is_biz_ban=\"0\"><\/mp-common-profile><\/section>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">AOP\u4e2d\u6709<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Before<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\uff0c<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@After<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\uff0c<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\uff0c<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@AfterRunning<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u6ce8\u89e3\u7b49\u7b49\u3002<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u9996\u5148\u4e0a\u4e0b\u81ea\u5df1\u7684\u4ee3\u7801\uff0c\u5b9a\u4e49\u4e86\u5207\u70b9\u7684\u5b9a\u4e49<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><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;text-align: left;\"><span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Aspect<\/span><br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Component<\/span><br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">public<\/span>&nbsp;<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">class<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(230, 192, 123);line-height: 26px;\">LogApsect<\/span>&nbsp;<\/span>{<br style=\"outline: 0px;\"  \/>&nbsp;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">private<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">static<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">final<\/span>&nbsp;Logger&nbsp;logger&nbsp;=&nbsp;LoggerFactory.getLogger(LogApsect<span style=\"outline: 0px;line-height: 26px;\">.<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">class<\/span>)<\/span>;<br style=\"outline: 0px;\"  \/>&nbsp;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;ThreadLocal&lt;Long&gt;&nbsp;startTime&nbsp;=&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">new<\/span>&nbsp;ThreadLocal&lt;&gt;();<br style=\"outline: 0px;\"  \/>&nbsp;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(92, 99, 112);font-style: italic;line-height: 26px;\">\/\/&nbsp;\u7b2c\u4e00\u4e2a*\u4ee3\u8868\u8fd4\u56de\u7c7b\u578b\u4e0d\u9650<\/span><br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(92, 99, 112);font-style: italic;line-height: 26px;\">\/\/&nbsp;\u7b2c\u4e8c\u4e2a*\u4ee3\u8868\u6240\u6709\u7c7b<\/span><br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(92, 99, 112);font-style: italic;line-height: 26px;\">\/\/&nbsp;\u7b2c\u4e09\u4e2a*\u4ee3\u8868\u6240\u6709\u65b9\u6cd5<\/span><br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(92, 99, 112);font-style: italic;line-height: 26px;\">\/\/&nbsp;(..)&nbsp;\u4ee3\u8868\u53c2\u6570\u4e0d\u9650<\/span><br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Pointcut<\/span>(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"execution(public&nbsp;*&nbsp;com.lmx.blog.controller.*.*(..))\"<\/span>)<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Order<\/span>(<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>)<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">public<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">void<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">pointCut<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{};<br style=\"outline: 0px;\"  \/>&nbsp;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Pointcut<\/span>(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"@annotation(com.lmx.blog.annotation.RedisCache)\"<\/span>)<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Order<\/span>(<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">1<\/span>)&nbsp;<span style=\"outline: 0px;color: rgb(92, 99, 112);font-style: italic;line-height: 26px;\">\/\/&nbsp;Order&nbsp;\u4ee3\u8868\u4f18\u5148\u7ea7\uff0c\u6570\u5b57\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8<\/span><br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">public<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">void<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">annoationPoint<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{};<br style=\"outline: 0px;\"  \/>&nbsp;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Before<\/span>(value&nbsp;=&nbsp;<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"annoationPoint()&nbsp;||&nbsp;pointCut()\"<\/span>)<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">public<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">void<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">before<\/span><span style=\"outline: 0px;line-height: 26px;\">(JoinPoint&nbsp;joinPoint)<\/span><\/span>{<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u65b9\u6cd5\u6267\u884c\u524d\u6267\u884c......before\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ServletRequestAttributes&nbsp;attributes&nbsp;=&nbsp;(ServletRequestAttributes)&nbsp;RequestContextHolder.getRequestAttributes();<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HttpServletRequest&nbsp;request&nbsp;=&nbsp;attributes.getRequest();<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;logger.info(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"&lt;=====================================================\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;logger.info(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u8bf7\u6c42\u6765\u6e90\uff1a&nbsp;=\u300b\"<\/span>&nbsp;+&nbsp;request.getRemoteAddr());<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;logger.info(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u8bf7\u6c42URL\uff1a\"<\/span>&nbsp;+&nbsp;request.getRequestURL().toString());<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;logger.info(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u8bf7\u6c42\u65b9\u5f0f\uff1a\"<\/span>&nbsp;+&nbsp;request.getMethod());<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;logger.info(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u54cd\u5e94\u65b9\u6cd5\uff1a\"<\/span>&nbsp;+&nbsp;joinPoint.getSignature().getDeclaringTypeName()&nbsp;+&nbsp;<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\".\"<\/span>&nbsp;+&nbsp;joinPoint.getSignature().getName());<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;logger.info(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u8bf7\u6c42\u53c2\u6570\uff1a\"<\/span>&nbsp;+&nbsp;Arrays.toString(joinPoint.getArgs()));<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;logger.info(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"------------------------------------------------------\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;startTime.set(System.currentTimeMillis());<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br style=\"outline: 0px;\"  \/>&nbsp;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(92, 99, 112);font-style: italic;line-height: 26px;\">\/\/&nbsp;\u5b9a\u4e49\u9700\u8981\u5339\u914d\u7684\u5207\u70b9\u8868\u8fbe\u5f0f\uff0c\u540c\u65f6\u9700\u8981\u5339\u914d\u53c2\u6570<\/span><br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Around<\/span>(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"pointCut()&nbsp;&amp;&amp;&nbsp;args(arg)\"<\/span>)<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">public<\/span>&nbsp;Response&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">around<\/span><span style=\"outline: 0px;line-height: 26px;\">(ProceedingJoinPoint&nbsp;pjp,String&nbsp;arg)<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">throws<\/span>&nbsp;Throwable<\/span>{<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"name:\"<\/span>&nbsp;+&nbsp;arg);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u65b9\u6cd5\u73af\u7ed5start...around\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;result&nbsp;=&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">null<\/span>;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">try<\/span>{<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result&nbsp;=&nbsp;pjp.proceed().toString()&nbsp;+&nbsp;<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"aop&nbsp;String\"<\/span>;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(result);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">catch<\/span>&nbsp;(Throwable&nbsp;e){<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e.printStackTrace();<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u65b9\u6cd5\u73af\u7ed5end...around\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">return<\/span>&nbsp;(Response)&nbsp;pjp.proceed();<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br style=\"outline: 0px;\"  \/>&nbsp;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@After<\/span>(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"within(com.lmx.blog.controller.*Controller)\"<\/span>)<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">public<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">void<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">after<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u65b9\u6cd5\u4e4b\u540e\u6267\u884c...after.\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br style=\"outline: 0px;\"  \/>&nbsp;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@AfterReturning<\/span>(pointcut=<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"pointCut()\"<\/span>,returning&nbsp;=&nbsp;<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"rst\"<\/span>)<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">public<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">void<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">afterRunning<\/span><span style=\"outline: 0px;line-height: 26px;\">(Response&nbsp;rst)<\/span><\/span>{<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">if<\/span>(startTime.get()&nbsp;==&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">null<\/span>){<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;startTime.set(System.currentTimeMillis());<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u65b9\u6cd5\u6267\u884c\u5b8c\u6267\u884c...afterRunning\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;logger.info(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u8017\u65f6\uff08\u6beb\u79d2\uff09\uff1a\"<\/span>&nbsp;+&nbsp;&nbsp;(System.currentTimeMillis()&nbsp;-&nbsp;startTime.get()));<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;logger.info(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u8fd4\u56de\u6570\u636e\uff1a{}\"<\/span>,&nbsp;rst);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;logger.info(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"==========================================&gt;\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br style=\"outline: 0px;\"  \/>&nbsp;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@AfterThrowing<\/span>(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"within(com.lmx.blog.controller.*Controller)\"<\/span>)<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">public<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">void<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">afterThrowing<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u5f02\u5e38\u51fa\u73b0\u4e4b\u540e...afterThrowing\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br style=\"outline: 0px;\"  \/>&nbsp;<br style=\"outline: 0px;\"  \/>&nbsp;<br style=\"outline: 0px;\"  \/>}<br style=\"outline: 0px;\"  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Before<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\uff0c<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@After<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\uff0c<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u6ce8\u89e3\u7684\u533a\u522b\u5927\u5bb6\u53ef\u4ee5\u81ea\u884c\u767e\u5ea6\u4e0b\u3002<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u603b\u4e4b\u5c31\u662f<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u53ef\u4ee5\u5b9e\u73b0<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Before<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u548c<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@After<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u7684\u529f\u80fd\uff0c\u5e76\u4e14\u53ea\u9700\u8981\u5728\u4e00\u4e2a\u65b9\u6cd5\u4e2d\u5c31\u53ef\u4ee5\u5b9e\u73b0\u3002<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u9996\u5148\u6211\u4eec\u6765\u6d4b\u8bd5\u4e00\u4e2a\u65b9\u6cd5\u7528\u4e8e\u83b7\u53d6\u6570\u636e\u5e93\u4e00\u6761\u8bb0\u5f55\u7684<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><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;text-align: left;\"><span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@RequestMapping<\/span>(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\/achieve\"<\/span>)<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">public<\/span>&nbsp;Response&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">achieve<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u65b9\u6cd5\u6267\u884c-----------\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">return<\/span>&nbsp;Response.ok(articleDetailSercice.getPrimaryKeyById(<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">1L<\/span>));<br style=\"outline: 0px;\"  \/>}<br style=\"outline: 0px;\"  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u4ee5\u4e0b\u662f\u63a7\u5236\u53f0\u6253\u5370\u7684\u65e5\u5fd7<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><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;text-align: left;\">\u65b9\u6cd5\u6267\u884c\u524d\u6267\u884c......before<br style=\"outline: 0px;\"  \/>2018-11-23&nbsp;16:31:59.795&nbsp;[http-nio-8888-exec-9]&nbsp;INFO&nbsp;&nbsp;c.l.blog.config.LogApsect&nbsp;-&nbsp;&lt;=====================================================<br style=\"outline: 0px;\"  \/>2018-11-23 16:31:59.795 [http-nio-8888-exec-9] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42\u6765\u6e90\uff1a&nbsp;=\u300b0:0:0:0:0:0:0:1<br style=\"outline: 0px;\"  \/>2018-11-23 16:31:59.795 [http-nio-8888-exec-9] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42URL\uff1ahttp:\/\/localhost:8888\/user\/achieve<br style=\"outline: 0px;\"  \/>2018-11-23 16:31:59.795 [http-nio-8888-exec-9] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42\u65b9\u5f0f\uff1aGET<br style=\"outline: 0px;\"  \/>2018-11-23 16:31:59.795 [http-nio-8888-exec-9] INFO  c.l.blog.config.LogApsect -&nbsp;\u54cd\u5e94\u65b9\u6cd5\uff1acom.lmx.blog.controller.UserController.achieve<br style=\"outline: 0px;\"  \/>2018-11-23 16:31:59.796 [http-nio-8888-exec-9] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42\u53c2\u6570\uff1a[]<br style=\"outline: 0px;\"  \/>2018-11-23&nbsp;16:31:59.796&nbsp;[http-nio-8888-exec-9]&nbsp;INFO&nbsp;&nbsp;c.l.blog.config.LogApsect&nbsp;-&nbsp;------------------------------------------------------<br style=\"outline: 0px;\"  \/>\u65b9\u6cd5\u6267\u884c-----------<br style=\"outline: 0px;\"  \/>2018-11-23&nbsp;16:31:59.806&nbsp;[http-nio-8888-exec-9]&nbsp;DEBUG&nbsp;c.l.b.m.A.selectPrimaryKey&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;select&nbsp;*&nbsp;from&nbsp;article_detail&nbsp;<span style=\"outline: 0px;color: rgb(230, 192, 123);line-height: 26px;\">where<\/span>&nbsp;id&nbsp;=&nbsp;?&nbsp;<br style=\"outline: 0px;\"  \/>2018-11-23&nbsp;16:31:59.806&nbsp;[http-nio-8888-exec-9]&nbsp;DEBUG&nbsp;c.l.b.m.A.selectPrimaryKey&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;select&nbsp;*&nbsp;from&nbsp;article_detail&nbsp;<span style=\"outline: 0px;color: rgb(230, 192, 123);line-height: 26px;\">where<\/span>&nbsp;id&nbsp;=&nbsp;?&nbsp;<br style=\"outline: 0px;\"  \/>2018-11-23&nbsp;16:31:59.806&nbsp;[http-nio-8888-exec-9]&nbsp;DEBUG&nbsp;c.l.b.m.A.selectPrimaryKey&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;1(Long)<br style=\"outline: 0px;\"  \/>2018-11-23&nbsp;16:31:59.806&nbsp;[http-nio-8888-exec-9]&nbsp;DEBUG&nbsp;c.l.b.m.A.selectPrimaryKey&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;1(Long)<br style=\"outline: 0px;\"  \/>2018-11-23&nbsp;16:31:59.814&nbsp;[http-nio-8888-exec-9]&nbsp;DEBUG&nbsp;c.l.b.m.A.selectPrimaryKey&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;1<br style=\"outline: 0px;\"  \/>2018-11-23&nbsp;16:31:59.814&nbsp;[http-nio-8888-exec-9]&nbsp;DEBUG&nbsp;c.l.b.m.A.selectPrimaryKey&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;1<br style=\"outline: 0px;\"  \/>\u65b9\u6cd5\u4e4b\u540e\u6267\u884c...after.<br style=\"outline: 0px;\"  \/>\u65b9\u6cd5\u6267\u884c\u5b8c\u6267\u884c...afterRunning<br style=\"outline: 0px;\"  \/>2018-11-23 16:31:59.824 [http-nio-8888-exec-9] INFO  c.l.blog.config.LogApsect -&nbsp;\u8017\u65f6\uff08\u6beb\u79d2\uff09\uff1a27<br style=\"outline: 0px;\"  \/>2018-11-23 16:31:59.824 [http-nio-8888-exec-9] INFO  c.l.blog.config.LogApsect -&nbsp;\u8fd4\u56de\u6570\u636e\uff1acom.lmx.blog.common.Response@8675ce5<br style=\"outline: 0px;\"  \/>2018-11-23&nbsp;16:31:59.824&nbsp;[http-nio-8888-exec-9]&nbsp;INFO&nbsp;&nbsp;c.l.blog.config.LogApsect&nbsp;-&nbsp;==========================================&gt;<br style=\"outline: 0px;\"  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u53ef\u4ee5\u770b\u5230\uff0c\u56e0\u4e3a\u6ca1\u6709\u5339\u914d<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u7684\u89c4\u5219\uff0c\u6240\u4ee5\u6ca1\u6709\u8fdb\u884c\u73af\u7ed5\u901a\u77e5\u3002\uff08PS\uff1a\u6211\u5b9a\u4e49\u7684\u73af\u7ed5\u901a\u77e5\u610f\u601d\u662f\u8981\u7b26\u5408\u662f controller \u5305\u4e0b\u7684\u65b9\u6cd5\u5e76\u4e14\u65b9\u6cd5\u5fc5\u987b\u5e26\u6709\u53c2\u6570\uff0c\u800c\u4e0a\u8ff0\u65b9\u6cd5\u6ca1\u6709\u53c2\u6570\uff0c\u6240\u4ee5\u53ea\u8d70\u4e86<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@before<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u548c<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@after<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u65b9\u6cd5\uff0c\u4e0d\u7b26\u5408<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u7684\u5339\u914d\u903b\u8f91\uff09\u3002<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u6211\u4eec\u518d\u8bd5\u4e00\u4e0b\u53e6\u4e00\u4e2a\u5e26\u6709\u53c2\u6570\u7684\u65b9\u6cd5<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><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;text-align: left;\"><span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@RedisCache<\/span>(type&nbsp;=&nbsp;Response<span style=\"outline: 0px;line-height: 26px;\">.<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">class<\/span>)<br style=\"outline: 0px;\"  \/>@<span style=\"outline: 0px;color: rgb(230, 192, 123);line-height: 26px;\">RequestMapping<\/span>(\"\/<span style=\"outline: 0px;color: rgb(230, 192, 123);line-height: 26px;\">sendEmail<\/span>\")<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(230, 192, 123);line-height: 26px;\">public<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(230, 192, 123);line-height: 26px;\">Response<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(230, 192, 123);line-height: 26px;\">sendEmailToAuthor<\/span>(<span style=\"outline: 0px;color: rgb(230, 192, 123);line-height: 26px;\">String<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(230, 192, 123);line-height: 26px;\">content<\/span>)<\/span>{<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u6d4b\u8bd5\u6267\u884c\u6b21\u6570\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">return<\/span>&nbsp;Response.ok(<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">true<\/span>);<br style=\"outline: 0px;\"  \/>}<br style=\"outline: 0px;\"  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u4ee5\u4e0b\u662f\u8be5\u90e8\u5206\u4ee3\u7801\u7684console\u6253\u5370<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><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;text-align: left;\">name:\u7b2c\u4e8c\u5c01\u90ae\u4ef6\u5462<br style=\"outline: 0px;\"  \/>\u65b9\u6cd5\u73af\u7ed5start...around<br style=\"outline: 0px;\"  \/>\u65b9\u6cd5\u6267\u884c\u524d\u6267\u884c......before<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.347<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>]&nbsp;INFO&nbsp;&nbsp;c.l.blog.config.LogApsect&nbsp;-&nbsp;&lt;=====================================================<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.347<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42\u6765\u6e90\uff1a&nbsp;=\u300b<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">1<\/span><br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.347<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42URL\uff1ahttp:<span style=\"outline: 0px;color: rgb(92, 99, 112);font-style: italic;line-height: 26px;\">\/\/localhost:8888\/user\/sendEmail<\/span><br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.348<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42\u65b9\u5f0f\uff1aGET<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.348<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u54cd\u5e94\u65b9\u6cd5\uff1acom.lmx.blog.controller.UserController.sendEmailToAuthor<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.348<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42\u53c2\u6570\uff1a[\u7b2c\u4e8c\u5c01\u90ae\u4ef6\u5462]<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.348<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>]&nbsp;INFO&nbsp;&nbsp;c.l.blog.config.LogApsect&nbsp;-&nbsp;------------------------------------------------------<br style=\"outline: 0px;\"  \/>\u6d4b\u8bd5\u6267\u884c\u6b21\u6570<br style=\"outline: 0px;\"  \/>com.lmx.blog.common.Response@<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">6<\/span>d17f2fdaop&nbsp;String<br style=\"outline: 0px;\"  \/>\u65b9\u6cd5\u73af\u7ed5end...around<br style=\"outline: 0px;\"  \/>\u65b9\u6cd5\u6267\u884c\u524d\u6267\u884c......before<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.349<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>]&nbsp;INFO&nbsp;&nbsp;c.l.blog.config.LogApsect&nbsp;-&nbsp;&lt;=====================================================<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.349<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42\u6765\u6e90\uff1a&nbsp;=\u300b<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">1<\/span><br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.349<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42URL\uff1ahttp:<span style=\"outline: 0px;color: rgb(92, 99, 112);font-style: italic;line-height: 26px;\">\/\/localhost:8888\/user\/sendEmail<\/span><br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.349<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42\u65b9\u5f0f\uff1aGET<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.349<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u54cd\u5e94\u65b9\u6cd5\uff1acom.lmx.blog.controller.UserController.sendEmailToAuthor<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.349<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42\u53c2\u6570\uff1a[\u7b2c\u4e8c\u5c01\u90ae\u4ef6\u5462]<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.350<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>]&nbsp;INFO&nbsp;&nbsp;c.l.blog.config.LogApsect&nbsp;-&nbsp;------------------------------------------------------<br style=\"outline: 0px;\"  \/>\u6d4b\u8bd5\u6267\u884c\u6b21\u6570<br style=\"outline: 0px;\"  \/>\u65b9\u6cd5\u4e4b\u540e\u6267\u884c...after.<br style=\"outline: 0px;\"  \/>\u65b9\u6cd5\u6267\u884c\u5b8c\u6267\u884c...afterRunning<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.350<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8017\u65f6\uff08\u6beb\u79d2\uff09\uff1a<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span><br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.350<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8fd4\u56de\u6570\u636e\uff1acom.lmx.blog.common.Response@<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">79f<\/span>85428<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">34<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">55.350<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>]&nbsp;INFO&nbsp;&nbsp;c.l.blog.config.LogApsect&nbsp;-&nbsp;==========================================&gt;<br style=\"outline: 0px;\"  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u663e\u800c\u6613\u89c1\uff0c\u8be5\u65b9\u6cd5\u7b26\u5408&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">&nbsp;\u73af\u7ed5\u901a\u77e5\u7684\u5339\u914d\u89c4\u5219\uff0c\u6240\u4ee5\u8fdb\u5165\u4e86<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u7684\u903b\u8f91\uff0c\u4f46\u662f\u53d1\u73b0\u4e86\u95ee\u9898\uff0c\u6240\u6709\u7684\u65b9\u6cd5\u90fd\u88ab\u6267\u884c\u4e862\u6b21\uff0c\u4e0d\u7ba1\u662f\u5207\u9762\u5c42\u8fd8\u662f\u65b9\u6cd5\u5c42\u3002\uff08\u6709\u4eba\u4f30\u8ba1\u8981\u95ee\u6211\u4e0d\u662f\u7528\u7684\u81ea\u5b9a\u4e49\u6ce8\u89e3&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@RedisCache(type = Response.class)<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">&nbsp;\u4e48\u3002\u4e3a\u4ec0\u4e48\u4f1a\u7b26\u5408&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u7684\u5339\u914d\u89c4\u5219\u5462\uff0c\u8fd9\u4e2a\u7b49\u4f1a\u5728\u4e0b\u9762\u8bf4\uff09<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u6211\u4eec\u5206\u6790\u65e5\u5fd7\u7684\u6253\u5370\u987a\u5e8f\u53ef\u4ee5\u5f97\u51fa\uff0c\u5728\u6267\u884c\u73af\u7ed5\u65b9\u6cd5\u65f6\u5019\uff0c\u4f1a\u4f18\u5148\u8fdb\u5165&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u4e0b\u7684\u65b9\u6cd5\u3002<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u7684\u65b9\u6cd5\u518d\u8d34\u4e00\u4e0b\u4ee3\u7801\u3002<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><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;text-align: left;\"><span style=\"outline: 0px;color: rgb(92, 99, 112);font-style: italic;line-height: 26px;\">\/\/&nbsp;\u5b9a\u4e49\u9700\u8981\u5339\u914d\u7684\u5207\u70b9\u8868\u8fbe\u5f0f\uff0c\u540c\u65f6\u9700\u8981\u5339\u914d\u53c2\u6570<\/span><br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Around<\/span>(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"pointCut()&nbsp;&amp;&amp;&nbsp;args(arg)\"<\/span>)<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">public<\/span>&nbsp;Response&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">around<\/span><span style=\"outline: 0px;line-height: 26px;\">(ProceedingJoinPoint&nbsp;pjp,String&nbsp;arg)<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">throws<\/span>&nbsp;Throwable<\/span>{<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"name:\"<\/span>&nbsp;+&nbsp;arg);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u65b9\u6cd5\u73af\u7ed5start...around\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;result&nbsp;=&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">null<\/span>;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">try<\/span>{<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result&nbsp;=&nbsp;pjp.proceed().toString()&nbsp;+&nbsp;<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"aop&nbsp;String\"<\/span>;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(result);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">catch<\/span>&nbsp;(Throwable&nbsp;e){<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e.printStackTrace();<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u65b9\u6cd5\u73af\u7ed5end...around\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">return<\/span>&nbsp;(Response)&nbsp;pjp.proceed();<br style=\"outline: 0px;\"  \/>}<br style=\"outline: 0px;\"  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u6253\u5370\u4e86\u524d\u4e24\u884c\u4ee3\u7801\u4ee5\u540e\uff0c\u8f6c\u800c\u53bb\u6267\u884c\u4e86&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Before<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u65b9\u6cd5\uff0c\u662f\u56e0\u4e3a\u4e2d\u9014\u89e6\u53d1\u4e86 &nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">ProceedingJoinPoint.proceed()<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">&nbsp;\u65b9\u6cd5\u3002<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f5c\u7528\u662f\u6267\u884c\u88ab\u4ee3\u7406\u7684\u65b9\u6cd5\uff0c\u4e5f\u5c31\u662f\u8bf4\u6267\u884c\u4e86\u8fd9\u4e2a\u65b9\u6cd5\u4e4b\u540e\u4f1a\u6267\u884c\u6211\u4eeccontroller\u7684\u65b9\u6cd5\uff0c\u800c\u540e\u6267\u884c&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@before<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\uff0c<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@after<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\uff0c\u7136\u540e\u56de\u5230@Around\u6267\u884c\u672a\u6267\u884c\u7684\u65b9\u6cd5\uff0c\u6700\u540e\u6267\u884c&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@afterRunning<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\uff0c\u5982\u679c\u6709\u5f02\u5e38\u629b\u51fa\u80fd\u6267\u884c&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@AfterThrowing<\/span><\/code><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u4e5f\u5c31\u662f\u8bf4\u73af\u7ed5\u7684\u6267\u884c\u987a\u5e8f\u662f &nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Around\u2192@Before\u2192@After\u2192@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u6267\u884c&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">ProceedingJoinPoint.proceed()<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">&nbsp;\u4e4b\u540e\u7684\u64cd\u4f5c\u2192<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@AfterRunning<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">(\u5982\u679c\u6709\u5f02\u5e38\u2192<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@AfterThrowing<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">)<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u800c\u6211\u4eec\u4e0a\u8ff0\u7684\u65e5\u5fd7\u76f8\u5f53\u4e8e\u628a\u4e0a\u8ff0\u7ed3\u679c\u6267\u884c\u4e862\u904d\uff0c\u6839\u672c\u539f\u56e0\u5728\u4e8e&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">ProceedingJoinPoint.proceed()<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">&nbsp;\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u53d1\u73b0\u5728@Around \u65b9\u6cd5\u4e2d\u6211\u4eec\u4f7f\u7528\u4e862\u6b21\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u7136\u800c\u6bcf\u6b21\u8c03\u7528\u8fd9\u4e2a\u65b9\u6cd5\u65f6\u90fd\u4f1a\u8d70\u4e00\u6b21<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Before\u2192@After\u2192@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u6267\u884c&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">ProceedingJoinPoint.proceed()<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">&nbsp;\u4e4b\u540e\u7684\u64cd\u4f5c\u2192<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@AfterRunning<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">(\u5982\u679c\u6709\u5f02\u5e38\u2192<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@AfterThrowing<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">)\u3002<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u56e0\u6b64\u95ee\u9898\u662f\u51fa\u73b0\u5728\u8fd9\u91cc\u3002\u6240\u4ee5\u66f4\u6539<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u90e8\u5206\u7684\u4ee3\u7801\u5373\u53ef\u89e3\u51b3\u8be5\u95ee\u9898\u3002\u66f4\u6539\u4e4b\u540e\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><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;text-align: left;\"><span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Around<\/span>(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"pointCut()&nbsp;&amp;&amp;&nbsp;args(arg)\"<\/span>)<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">public<\/span>&nbsp;Response&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">around<\/span><span style=\"outline: 0px;line-height: 26px;\">(ProceedingJoinPoint&nbsp;pjp,String&nbsp;arg)<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">throws<\/span>&nbsp;Throwable<\/span>{<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"name:\"<\/span>&nbsp;+&nbsp;arg);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u65b9\u6cd5\u73af\u7ed5start...around\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;result&nbsp;=&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">null<\/span>;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;Object&nbsp;object&nbsp;=&nbsp;pjp.proceed();<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">try<\/span>{<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result&nbsp;=&nbsp;object.toString()&nbsp;+&nbsp;<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"aop&nbsp;String\"<\/span>;<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(result);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">catch<\/span>&nbsp;(Throwable&nbsp;e){<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e.printStackTrace();<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"\u65b9\u6cd5\u73af\u7ed5end...around\"<\/span>);<br style=\"outline: 0px;\"  \/>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">return<\/span>&nbsp;(Response)&nbsp;object;<br style=\"outline: 0px;\"  \/>}<br style=\"outline: 0px;\"  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u66f4\u6539\u4ee3\u7801\u4e4b\u540e\u7684\u8fd0\u884c\u7ed3\u679c<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><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;text-align: left;\">name:\u7b2c\u4e8c\u5c01\u90ae\u4ef6\u5462<br style=\"outline: 0px;\"  \/>\u65b9\u6cd5\u73af\u7ed5start...around<br style=\"outline: 0px;\"  \/>\u65b9\u6cd5\u6267\u884c\u524d\u6267\u884c......before<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">52<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">14.315<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">4<\/span>]&nbsp;INFO&nbsp;&nbsp;c.l.blog.config.LogApsect&nbsp;-&nbsp;&lt;=====================================================<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">52<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">14.315<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">4<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42\u6765\u6e90\uff1a&nbsp;=\u300b<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">1<\/span><br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">52<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">14.315<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">4<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42URL\uff1ahttp:<span style=\"outline: 0px;color: rgb(92, 99, 112);font-style: italic;line-height: 26px;\">\/\/localhost:8888\/user\/sendEmail<\/span><br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">52<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">14.315<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">4<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42\u65b9\u5f0f\uff1aGET<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">52<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">14.316<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">4<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u54cd\u5e94\u65b9\u6cd5\uff1acom.lmx.blog.controller.UserController.sendEmailToAuthor<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">52<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">14.316<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">4<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8bf7\u6c42\u53c2\u6570\uff1a[\u7b2c\u4e8c\u5c01\u90ae\u4ef6\u5462]<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">52<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">14.316<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">4<\/span>]&nbsp;INFO&nbsp;&nbsp;c.l.blog.config.LogApsect&nbsp;-&nbsp;------------------------------------------------------<br style=\"outline: 0px;\"  \/>\u6d4b\u8bd5\u6267\u884c\u6b21\u6570<br style=\"outline: 0px;\"  \/>com.lmx.blog.common.Response@<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">1<\/span>b1c76afaop&nbsp;String<br style=\"outline: 0px;\"  \/>\u65b9\u6cd5\u73af\u7ed5end...around<br style=\"outline: 0px;\"  \/>\u65b9\u6cd5\u4e4b\u540e\u6267\u884c...after.<br style=\"outline: 0px;\"  \/>\u65b9\u6cd5\u6267\u884c\u5b8c\u6267\u884c...afterRunning<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">52<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">14.316<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">4<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8017\u65f6\uff08\u6beb\u79d2\uff09\uff1a<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">0<\/span><br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">52<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">14.316<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">4<\/span>] INFO  c.l.blog.config.LogApsect -&nbsp;\u8fd4\u56de\u6570\u636e\uff1acom.lmx.blog.common.Response@<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">1<\/span>b1c76af<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2018<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">11<\/span>-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">23<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">16<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">52<\/span>:<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">14.316<\/span>&nbsp;[http-nio-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">8888<\/span>-exec-<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">4<\/span>]&nbsp;INFO&nbsp;&nbsp;c.l.blog.config.LogApsect&nbsp;-&nbsp;==========================================&gt;<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\"><strong style=\"outline: 0px;\">\u56de\u5230\u4e0a\u8ff0\u672a\u89e3\u51b3\u7684\u95ee\u9898\uff0c\u4e3a\u4ec0\u4e48\u6211\u5b9a\u4e49\u4e86\u5207\u9762\u7684\u53e6\u4e00\u4e2a\u6ce8\u89e3\u8fd8\u53ef\u4ee5\u8fdb\u5165@Around\u65b9\u6cd5\u5462\uff1f<\/strong><\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u56e0\u4e3a\u6211\u4eec\u7684\u65b9\u6cd5\u4ecd\u7136\u5728controller\u4e0b\uff0c\u56e0\u6b64\u6ee1\u8db3\u8be5\u9700\u6c42\uff0c\u5982\u679c\u6211\u4eec\u5b9a\u4e49\u4e86controller\u5305\u4e0b\u7684\u67d0\u4e2acontroller\u624d\u6709\u7528\u3002<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u4f8b\u5982\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><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;text-align: left;\"><span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Pointcut<\/span>(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"execution(public&nbsp;*&nbsp;com.lmx.blog.controller.UserController.*(..))\"<\/span>)<br style=\"outline: 0px;\"  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u800c\u5982\u679c\u6211\u4eec\u521a\u624d\u5b9a\u4e49\u7684\u65b9\u6cd5\u662f\u5199\u5728 TestController \u4e4b\u4e0b\u7684\uff0c\u90a3\u4e48\u5c31\u4e0d\u7b26\u5408&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u65b9\u6cd5\u7684\u5339\u914d\u89c4\u5219\u4e86\uff0c\u4e5f\u4e0d\u7b26\u5408<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@before<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u548c<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@after<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u7684\u6ce8\u89e3\u89c4\u5219\uff0c\u56e0\u6b64\u4e0d\u4f1a\u5339\u914d\u4efb\u4f55\u4e00\u4e2a\u89c4\u5219\uff0c\u5982\u679c\u9700\u8981\u5339\u914d\u7279\u5b9a\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7528\u81ea\u5b9a\u4e49\u7684\u6ce8\u89e3\u5f62\u5f0f\u6216\u8005\u7279\u6027controller\u4e0b\u7684\u65b9\u6cd5<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u2460\uff1a\u7279\u6027\u7684\u6ce8\u89e3\u5f62\u5f0f<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><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;text-align: left;\"><span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Pointcut<\/span>(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"@annotation(com.lmx.blog.annotation.RedisCache)\"<\/span>)<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Order<\/span>(<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">1<\/span>)&nbsp;<span style=\"outline: 0px;color: rgb(92, 99, 112);font-style: italic;line-height: 26px;\">\/\/&nbsp;Order&nbsp;\u4ee3\u8868\u4f18\u5148\u7ea7\uff0c\u6570\u5b57\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8<\/span><br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">public<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">void<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">annoationPoint<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{};<br style=\"outline: 0px;\"  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u7136\u540e\u5728\u6240\u9700\u8981\u7684\u65b9\u6cd5\u4e0a\u52a0\u5165&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@RedisCache<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u6ce8\u89e3\uff0c\u5728<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Before<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\uff0c<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@After<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\uff0c<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">@Around<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u7b49\u65b9\u6cd5\u4e0a\u6dfb\u52a0\u8be5\u5207\u70b9\u7684\u65b9\u6cd5\u540d\uff08\u201c<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">annoationPoint()<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u201d\uff09\uff0c\u5982\u679c\u6709\u591a\u4e2a\u6ce8\u89e3\u9700\u8981\u5339\u914d\u5219\u7528&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">||<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">&nbsp;\u9694\u5f00<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u2461\uff1a\u6307\u5b9acontroller\u6216\u8005\u6307\u5b9acontroller\u4e0b\u7684\u65b9\u6cd5<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><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;text-align: left;\"><span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Pointcut<\/span>(<span style=\"outline: 0px;color: rgb(152, 195, 121);line-height: 26px;\">\"execution(public&nbsp;*&nbsp;com.lmx.blog.controller.UserController.*(..))\"<\/span>)<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">@Order<\/span>(<span style=\"outline: 0px;color: rgb(209, 154, 102);line-height: 26px;\">2<\/span>)<br style=\"outline: 0px;\"  \/><span style=\"outline: 0px;line-height: 26px;\"><span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">public<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(198, 120, 221);line-height: 26px;\">void<\/span>&nbsp;<span style=\"outline: 0px;color: rgb(97, 174, 238);line-height: 26px;\">pointCut<\/span><span style=\"outline: 0px;line-height: 26px;\">()<\/span><\/span>{};<br style=\"outline: 0px;\"  \/><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u8be5\u90e8\u5206\u4ee3\u7801\u662f\u6307\u5b9a\u4e86&nbsp;<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">com.lmx.blog.controller<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u5305\u4e0b\u7684UserController\u4e0b\u7684\u6240\u6709\u65b9\u6cd5\u3002<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u7b2c\u4e00\u4e2a<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">*<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u4ee3\u8868\u7684\u662f\u8fd4\u56de\u7c7b\u578b\u4e0d\u9650<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u7b2c\u4e8c\u4e2a<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">*<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u4ee3\u8868\u7684\u662f\u8be5controller\u4e0b\u7684\u6240\u6709\u65b9\u6cd5\uff0c<\/span><code style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">(..)<\/span><\/code><span style=\"outline: 0px;font-size: 16px;\">\u4ee3\u8868\u7684\u662f\u53c2\u6570\u4e0d\u9650<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><strong style=\"outline: 0px;\"><span style=\"outline: 0px;letter-spacing: 0.034em;font-size: 20px;\">\u603b\u7ed3<\/span><\/strong><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u5f53\u65b9\u6cd5\u7b26\u5408\u5207\u70b9\u89c4\u5219\u4e0d\u7b26\u5408\u73af\u7ed5\u901a\u77e5\u7684\u89c4\u5219\u65f6\u5019\uff0c\u6267\u884c\u7684\u987a\u5e8f\u5982\u4e0b<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\"><strong style=\"outline: 0px;\">@Before\u2192@After\u2192@AfterRunning(\u5982\u679c\u6709\u5f02\u5e38\u2192@AfterThrowing)<\/strong><\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\">\u5f53\u65b9\u6cd5\u7b26\u5408\u5207\u70b9\u89c4\u5219\u5e76\u4e14\u7b26\u5408\u73af\u7ed5\u901a\u77e5\u7684\u89c4\u5219\u65f6\u5019\uff0c\u6267\u884c\u7684\u987a\u5e8f\u5982\u4e0b<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;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;white-space: normal;background-color: rgb(255, 255, 255);line-height: 26px;text-align: left;\"><span style=\"outline: 0px;font-size: 16px;\"><strong style=\"outline: 0px;\">@Around\u2192@Before\u2192@Around\u2192@After\u6267\u884c ProceedingJoinPoint.proceed() \u4e4b\u540e\u7684\u64cd\u4f5c\u2192@AfterRunning(\u5982\u679c\u6709\u5f02\u5e38\u2192@AfterThrowing)<\/strong><\/span><\/p>\n<section class=\"mp_profile_iframe_wrp\"><mp-common-profile class=\"js_uneditable custom_select_card mp_profile_iframe\" data-pluginname=\"mpprofile\" data-weui-theme=\"light\" data-id=\"MjM5NDQ4MzA1Nw==\" data-headimg=\"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/7OPxOA8ic5m8iaZhZuawOQpg1kY6p7DsNdHYUDLY6XBfZYualr95vI5BKic0SbnZ7lzkibwdTfLmFkx9flmoEvLQiaQ\/0?wx_fmt=png\" data-nickname=\"IT\u725b\u5ba2\" data-alias=\"\" data-signature=\"\u4e13\u6ce8\u4e8eIT\u6280\u672f\u5206\u4eab\uff0c\u539f\u521b\u6280\u672f\u548c\u521b\u65b0\u6280\u672f\u5206\u4eab\uff0cIT\u725b\u5ba2\uff0c\u6211\u4eec\u4e00\u8d77\u8fdb\u6b65\u2026\u2026\" data-from=\"0\" data-is_biz_ban=\"0\"><\/mp-common-profile><\/section>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);font-size: 16px;color: rgb(63, 63, 63);text-align: left;\"><p style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;white-space: normal;color: rgb(62, 62, 62);text-align: center;widows: 1;word-spacing: 2px;font-family: -apple-system-font, 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;line-height: 2em;\"><span style=\"outline: 0px;font-size: 13px;letter-spacing: 0.5px;color: rgb(0, 128, 255);\"><span style=\"outline: 0px;font-family: -apple-system-font, system-ui, &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;\">\u5982\u559c\u6b22\u672c\u6587\uff0c\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u628a\u6587\u7ae0\u5206\u4eab\u5230\u670b\u53cb\u5708<\/span><br style=\"outline: 0px;\"  \/><\/span><\/p><p style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;white-space: normal;color: rgb(62, 62, 62);text-align: center;widows: 1;word-spacing: 2px;font-family: -apple-system-font, 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;line-height: 2em;\"><strong style=\"outline: 0px;\"><span style=\"outline: 0px;font-family: -apple-system-font, system-ui, &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;font-size: 13px;letter-spacing: 0.5px;color: rgb(217, 33, 66);\">\u56e0\u516c\u4f17\u53f7\u66f4\u6539\u63a8\u9001\u89c4\u5219\uff0c\u8bf7\u70b9\u201c\u5728\u770b\u201d\u5e76\u52a0\u201c\u661f\u6807\u201d<span style=\"outline: 0px;\">\u7b2c\u4e00\u65f6\u95f4\u83b7\u53d6\u7cbe\u5f69\u6280\u672f\u5206\u4eab<\/span><\/span><\/strong><\/p><p style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;letter-spacing: 0.544px;white-space: normal;color: rgb(62, 62, 62);text-align: center;widows: 1;word-spacing: 2px;font-family: -apple-system-font, 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;line-height: 2em;\"><strong style=\"outline: 0px;letter-spacing: 0.544px;font-family: \u5fae\u8f6f\u96c5\u9ed1;font-size: 16.3636px;\">\u00b7END\u00b7<\/strong><\/p><\/pre>\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:                 IT\u725b\u5ba2              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\uff1ablog.csdn.net\/lmx125254\/article\/details\/84398412 AOP\u4e2d\u6709@Before\uff0c &#8230;<\/p>\n","protected":false},"author":1,"featured_media":1219,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-1220","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528040301358-150x150.jpeg","content_first_image":null,"post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528040301358-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528040301358.jpeg","post_frist_image":null,"post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528040301358-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528040301358.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528040301358.jpeg","post_all_images":[],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring","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":205,"next_post_id":1974,"next_post_title":"Spring IoC\u901a\u4fd7\u7684\u89e3\u91ca","previous_post_id":1153,"previous_post_title":"\u5229\u7528Spring\u6269\u5c55\u70b9\u6a21\u62dfFeign\u5b9e\u73b0\u8fdc\u7a0b\u8c03\u7528","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1220","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=1220"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1220\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/1219"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}