{"id":64194,"date":"2026-01-22T23:40:35","date_gmt":"2026-01-22T15:40:35","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/64194.html"},"modified":"2026-01-22T23:40:35","modified_gmt":"2026-01-22T15:40:35","slug":"springboot-aop%e5%88%87%e9%9d%a2%e7%bc%96%e7%a8%8b%e5%ae%9e%e6%88%98%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/64194.html","title":{"rendered":"SpringBoot AOP\u5207\u9762\u7f16\u7a0b\u5b9e\u6218\u6307\u5357"},"content":{"rendered":"<p>\u597d\u7684&#xff0c;\u6211\u4eec\u5c06\u7cfb\u7edf\u6027\u5730\u89e3\u6790 Spring Boot \u4e2d\u7684 AOP \u5207\u9762\u7f16\u7a0b&#xff0c;\u6db5\u76d6\u6838\u5fc3\u6982\u5ff5\u3001\u5b9e\u73b0\u6b65\u9aa4\u53ca\u5b9e\u6218\u6848\u4f8b\u3002<\/p>\n<hr \/>\n<h4>\u4e00\u3001AOP \u6838\u5fc3\u6982\u5ff5<\/h4>\n<p>AOP&#xff08;Aspect-Oriented Programming&#xff09;\u662f\u4e00\u79cd\u6a2a\u5411\u5207\u5272\u4ee3\u7801\u903b\u8f91\u7684\u7f16\u7a0b\u8303\u5f0f&#xff0c;\u7528\u4e8e\u89e3\u8026\u4e0e\u4e1a\u52a1\u65e0\u5173\u7684\u901a\u7528\u884c\u4e3a&#xff08;\u5982\u65e5\u5fd7\u3001\u4e8b\u52a1\u3001\u6743\u9650\u6821\u9a8c&#xff09;\u3002\u5176\u6838\u5fc3\u7ec4\u4ef6\u5305\u62ec&#xff1a;<\/p>\n<li>\u5207\u9762&#xff08;Aspect&#xff09;<br \/>\n\u5c01\u88c5\u6a2a\u5207\u903b\u8f91\u7684\u6a21\u5757&#xff08;\u5982\u65e5\u5fd7\u5207\u9762\u3001\u4e8b\u52a1\u5207\u9762&#xff09;\u3002<\/li>\n<li>\u5207\u70b9&#xff08;Pointcut&#xff09;<br \/>\n\u901a\u8fc7\u8868\u8fbe\u5f0f\u5b9a\u4f4d\u9700\u8981\u62e6\u622a\u7684\u8fde\u63a5\u70b9&#xff08;\u5982&#xff1a;&#064;Pointcut(&#034;execution(* com.example.service.*.*(..))&#034;)&#xff09;\u3002<\/li>\n<li>\u901a\u77e5&#xff08;Advice&#xff09;<br \/>\n\u5b9a\u4e49\u5728\u5207\u70b9\u6267\u884c\u7684\u903b\u8f91\u7c7b\u578b&#xff1a;<\/p>\n<ul>\n<li>&#064;Before&#xff1a;\u76ee\u6807\u65b9\u6cd5\u6267\u884c\u524d<\/li>\n<li>&#064;AfterReturning&#xff1a;\u65b9\u6cd5\u6210\u529f\u8fd4\u56de\u540e<\/li>\n<li>&#064;AfterThrowing&#xff1a;\u65b9\u6cd5\u629b\u51fa\u5f02\u5e38\u540e<\/li>\n<li>&#064;After&#xff1a;\u65b9\u6cd5\u7ed3\u675f\u540e&#xff08;\u65e0\u8bba\u6210\u529f\u6216\u5f02\u5e38&#xff09;<\/li>\n<li>&#064;Around&#xff1a;\u73af\u7ed5\u6574\u4e2a\u65b9\u6cd5\u6267\u884c\u8fc7\u7a0b<\/li>\n<\/ul>\n<\/li>\n<li>\u8fde\u63a5\u70b9&#xff08;Joinpoint&#xff09;<br \/>\n\u7a0b\u5e8f\u6267\u884c\u8fc7\u7a0b\u4e2d\u7684\u7279\u5b9a\u70b9&#xff08;\u5982\u65b9\u6cd5\u8c03\u7528\u3001\u5f02\u5e38\u629b\u51fa&#xff09;\u3002<\/li>\n<hr \/>\n<h4>\u4e8c\u3001Spring Boot \u96c6\u6210 AOP \u6b65\u9aa4<\/h4>\n<h5>1. \u6dfb\u52a0\u4f9d\u8d56<\/h5>\n<p>&lt;dependency&gt;<br \/>\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;<br \/>\n    &lt;artifactId&gt;spring-boot-starter-aop&lt;\/artifactId&gt;<br \/>\n&lt;\/dependency&gt;<\/p>\n<h5>2. \u5b9a\u4e49\u5207\u9762\u7c7b<\/h5>\n<p>&#064;Aspect<br \/>\n&#064;Component<br \/>\npublic class LoggingAspect {<\/p>\n<p>    \/\/ \u5b9a\u4e49\u5207\u70b9&#xff1a;\u62e6\u622a service \u5305\u4e0b\u6240\u6709\u65b9\u6cd5<br \/>\n    &#064;Pointcut(&#034;execution(* com.example.service.*.*(..))&#034;)<br \/>\n    public void servicePointcut() {}<\/p>\n<p>    \/\/ \u524d\u7f6e\u901a\u77e5&#xff1a;\u8bb0\u5f55\u65b9\u6cd5\u5165\u53c2<br \/>\n    &#064;Before(&#034;servicePointcut()&#034;)<br \/>\n    public void logBefore(JoinPoint joinPoint) {<br \/>\n        String methodName &#061; joinPoint.getSignature().getName();<br \/>\n        Object[] args &#061; joinPoint.getArgs();<br \/>\n        System.out.println(&#034;Method &#034; &#043; methodName &#043; &#034; called with args: &#034; &#043; Arrays.toString(args));<br \/>\n    }<\/p>\n<p>    \/\/ \u73af\u7ed5\u901a\u77e5&#xff1a;\u8ba1\u7b97\u65b9\u6cd5\u6267\u884c\u8017\u65f6<br \/>\n    &#064;Around(&#034;servicePointcut()&#034;)<br \/>\n    public Object logTime(ProceedingJoinPoint joinPoint) throws Throwable {<br \/>\n        long startTime &#061; System.currentTimeMillis();<br \/>\n        Object result &#061; joinPoint.proceed(); \/\/ \u6267\u884c\u76ee\u6807\u65b9\u6cd5<br \/>\n        long duration &#061; System.currentTimeMillis() &#8211; startTime;<br \/>\n        System.out.println(&#034;Method execution time: &#034; &#043; duration &#043; &#034;ms&#034;);<br \/>\n        return result;<br \/>\n    }<br \/>\n}<\/p>\n<hr \/>\n<h4>\u4e09\u3001\u5b9e\u6218\u8fdb\u9636\u6848\u4f8b&#xff1a;\u6743\u9650\u6821\u9a8c\u5207\u9762<\/h4>\n<h5>\u573a\u666f<\/h5>\n<p>\u62e6\u622a\u5e26\u6709 &#064;RequiresPermission \u6ce8\u89e3\u7684\u65b9\u6cd5&#xff0c;\u6821\u9a8c\u7528\u6237\u6743\u9650\u3002<\/p>\n<h5>1. \u81ea\u5b9a\u4e49\u6ce8\u89e3<\/h5>\n<p>&#064;Target(ElementType.METHOD)<br \/>\n&#064;Retention(RetentionPolicy.RUNTIME)<br \/>\npublic &#064;interface RequiresPermission {<br \/>\n    String value(); \/\/ \u6743\u9650\u6807\u8bc6\u7b26&#xff0c;\u5982 &#034;admin:delete&#034;<br \/>\n}<\/p>\n<h5>2. \u6743\u9650\u6821\u9a8c\u5207\u9762<\/h5>\n<p>&#064;Aspect<br \/>\n&#064;Component<br \/>\npublic class PermissionAspect {<\/p>\n<p>    &#064;Autowired<br \/>\n    private PermissionService permissionService; \/\/ \u6743\u9650\u6821\u9a8c\u670d\u52a1<\/p>\n<p>    \/\/ \u5207\u70b9&#xff1a;\u62e6\u622a\u6240\u6709\u5e26 &#064;RequiresPermission \u6ce8\u89e3\u7684\u65b9\u6cd5<br \/>\n    &#064;Pointcut(&#034;&#064;annotation(com.example.annotation.RequiresPermission)&#034;)<br \/>\n    public void permissionCheck() {}<\/p>\n<p>    &#064;Before(&#034;permissionCheck()&#034;)<br \/>\n    public void checkPermission(JoinPoint joinPoint) {<br \/>\n        MethodSignature signature &#061; (MethodSignature) joinPoint.getSignature();<br \/>\n        RequiresPermission annotation &#061; signature.getMethod().getAnnotation(RequiresPermission.class);<br \/>\n        String permission &#061; annotation.value();<\/p>\n<p>        \/\/ \u6a21\u62df\u83b7\u53d6\u5f53\u524d\u7528\u6237&#xff08;\u5b9e\u9645\u53ef\u4ece ThreadLocal \u6216 SecurityContext \u83b7\u53d6&#xff09;<br \/>\n        String currentUser &#061; &#034;user123&#034;;<\/p>\n<p>        if (!permissionService.hasPermission(currentUser, permission)) {<br \/>\n            throw new SecurityException(&#034;Permission denied: &#034; &#043; permission);<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<h5>3. \u4f7f\u7528\u6ce8\u89e3<\/h5>\n<p>&#064;Service<br \/>\npublic class UserService {<\/p>\n<p>    &#064;RequiresPermission(&#034;user:delete&#034;)<br \/>\n    public void deleteUser(Long userId) {<br \/>\n        \/\/ \u5220\u9664\u7528\u6237\u903b\u8f91<br \/>\n    }<br \/>\n}<\/p>\n<hr \/>\n<h4>\u56db\u3001AOP \u6700\u4f73\u5b9e\u8df5<\/h4>\n<li>\u5207\u70b9\u8868\u8fbe\u5f0f\u4f18\u5316<br \/>\n\u4f7f\u7528 within() \u7f29\u5c0f\u62e6\u622a\u8303\u56f4&#xff0c;\u907f\u514d\u8fc7\u5ea6\u62e6\u622a&#xff1a;<\/p>\n<p>&#064;Pointcut(&#034;within(com.example.service..*) &amp;&amp; execution(* *.*(..))&#034;)<\/p>\n<\/li>\n<li>\u901a\u77e5\u6267\u884c\u987a\u5e8f<br \/>\n\u901a\u8fc7 &#064;Order \u6ce8\u89e3\u63a7\u5236\u591a\u4e2a\u5207\u9762\u7684\u6267\u884c\u4f18\u5148\u7ea7&#xff1a;<\/p>\n<p>&#064;Aspect<br \/>\n&#064;Order(1) \/\/ \u6570\u5b57\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8<br \/>\npublic class LoggingAspect { &#8230; }<\/p>\n<\/li>\n<li>\u907f\u514d\u5faa\u73af\u4f9d\u8d56<br \/>\n\u5207\u9762\u4e2d\u6ce8\u5165\u7684 Bean \u4e0d\u8981\u4f9d\u8d56\u88ab\u5207\u9762\u62e6\u622a\u7684 Bean&#xff08;\u53ef\u901a\u8fc7 &#064;Lazy \u5ef6\u8fdf\u6ce8\u5165\u89e3\u51b3&#xff09;\u3002<\/li>\n<hr \/>\n<h4>\u4e94\u3001\u5e38\u89c1\u95ee\u9898\u6392\u67e5<\/h4>\n<li>\u5207\u9762\u672a\u751f\u6548\n<ul>\n<li>\u68c0\u67e5\u5207\u9762\u7c7b\u662f\u5426\u88ab Spring \u626b\u63cf&#xff08;&#064;Component \u6216\u663e\u5f0f\u914d\u7f6e &#064;EnableAspectJAutoProxy&#xff09;\u3002<\/li>\n<li>\u786e\u8ba4\u5207\u70b9\u8868\u8fbe\u5f0f\u5339\u914d\u76ee\u6807\u65b9\u6cd5\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5d4c\u5957\u8c03\u7528\u5931\u6548<br \/>\nSpring AOP \u57fa\u4e8e\u4ee3\u7406\u673a\u5236&#xff0c;\u540c\u7c7b\u5185\u90e8\u65b9\u6cd5\u8c03\u7528\u4e0d\u4f1a\u89e6\u53d1\u5207\u9762&#xff08;\u53ef\u901a\u8fc7 AopContext.currentProxy() \u83b7\u53d6\u4ee3\u7406\u5bf9\u8c61\u89e3\u51b3&#xff09;\u3002<\/li>\n<hr \/>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u5185\u5bb9&#xff0c;\u60a8\u5df2\u638c\u63e1 Spring Boot AOP \u7684\u6838\u5fc3\u7528\u6cd5\u4e0e\u8fdb\u9636\u5b9e\u8df5\u3002\u5982\u6709\u5177\u4f53\u573a\u666f\u95ee\u9898&#xff0c;\u53ef\u8fdb\u4e00\u6b65\u6df1\u5165\u63a2\u8ba8&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u597d\u7684&#xff0c;\u6211\u4eec\u5c06\u7cfb\u7edf\u6027\u5730\u89e3\u6790 Spring Boot \u4e2d\u7684 AOP \u5207\u9762\u7f16\u7a0b&#xff0c;\u6db5\u76d6\u6838\u5fc3\u6982\u5ff5\u3001\u5b9e\u73b0\u6b65\u9aa4\u53ca\u5b9e\u6218\u6848\u4f8b\u3002\u4e00\u3001AOP \u6838\u5fc3\u6982\u5ff5AOP&#xff08;Aspect-Oriented Programming&#xff09;\u662f\u4e00\u79cd\u6a2a\u5411\u5207\u5272\u4ee3\u7801\u903b\u8f91\u7684\u7f16\u7a0b\u8303\u5f0f&#xff0c;\u7528\u4e8e\u89e3\u8026\u4e0e\u4e1a\u52a1\u65e0\u5173\u7684\u901a\u7528\u884c\u4e3a&#xff08;\u5982\u65e5\u5fd7\u3001\u4e8b\u52a1\u3001\u6743\u9650\u6821\u9a8c&#xff09;\u3002\u5176\u6838\u5fc3\u7ec4\u4ef6\u5305\u62ec&#xff1a;\u5207\u9762&#xff08;Aspect&#xff09;<br \/>\n\u5c01\u88c5\u6a2a\u5207\u903b\u8f91\u7684\u6a21\u5757&amp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,190,100],"topic":[],"class_list":["post-64194","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-190","tag-100"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SpringBoot AOP\u5207\u9762\u7f16\u7a0b\u5b9e\u6218\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/64194.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SpringBoot AOP\u5207\u9762\u7f16\u7a0b\u5b9e\u6218\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u597d\u7684&#xff0c;\u6211\u4eec\u5c06\u7cfb\u7edf\u6027\u5730\u89e3\u6790 Spring Boot \u4e2d\u7684 AOP \u5207\u9762\u7f16\u7a0b&#xff0c;\u6db5\u76d6\u6838\u5fc3\u6982\u5ff5\u3001\u5b9e\u73b0\u6b65\u9aa4\u53ca\u5b9e\u6218\u6848\u4f8b\u3002\u4e00\u3001AOP \u6838\u5fc3\u6982\u5ff5AOP&#xff08;Aspect-Oriented Programming&#xff09;\u662f\u4e00\u79cd\u6a2a\u5411\u5207\u5272\u4ee3\u7801\u903b\u8f91\u7684\u7f16\u7a0b\u8303\u5f0f&#xff0c;\u7528\u4e8e\u89e3\u8026\u4e0e\u4e1a\u52a1\u65e0\u5173\u7684\u901a\u7528\u884c\u4e3a&#xff08;\u5982\u65e5\u5fd7\u3001\u4e8b\u52a1\u3001\u6743\u9650\u6821\u9a8c&#xff09;\u3002\u5176\u6838\u5fc3\u7ec4\u4ef6\u5305\u62ec&#xff1a;\u5207\u9762&#xff08;Aspect&#xff09; \u5c01\u88c5\u6a2a\u5207\u903b\u8f91\u7684\u6a21\u5757&amp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/64194.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-22T15:40:35+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/64194.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/64194.html\",\"name\":\"SpringBoot AOP\u5207\u9762\u7f16\u7a0b\u5b9e\u6218\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-22T15:40:35+00:00\",\"dateModified\":\"2026-01-22T15:40:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/64194.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/64194.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/64194.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SpringBoot AOP\u5207\u9762\u7f16\u7a0b\u5b9e\u6218\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SpringBoot AOP\u5207\u9762\u7f16\u7a0b\u5b9e\u6218\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/64194.html","og_locale":"zh_CN","og_type":"article","og_title":"SpringBoot AOP\u5207\u9762\u7f16\u7a0b\u5b9e\u6218\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u597d\u7684&#xff0c;\u6211\u4eec\u5c06\u7cfb\u7edf\u6027\u5730\u89e3\u6790 Spring Boot \u4e2d\u7684 AOP \u5207\u9762\u7f16\u7a0b&#xff0c;\u6db5\u76d6\u6838\u5fc3\u6982\u5ff5\u3001\u5b9e\u73b0\u6b65\u9aa4\u53ca\u5b9e\u6218\u6848\u4f8b\u3002\u4e00\u3001AOP \u6838\u5fc3\u6982\u5ff5AOP&#xff08;Aspect-Oriented Programming&#xff09;\u662f\u4e00\u79cd\u6a2a\u5411\u5207\u5272\u4ee3\u7801\u903b\u8f91\u7684\u7f16\u7a0b\u8303\u5f0f&#xff0c;\u7528\u4e8e\u89e3\u8026\u4e0e\u4e1a\u52a1\u65e0\u5173\u7684\u901a\u7528\u884c\u4e3a&#xff08;\u5982\u65e5\u5fd7\u3001\u4e8b\u52a1\u3001\u6743\u9650\u6821\u9a8c&#xff09;\u3002\u5176\u6838\u5fc3\u7ec4\u4ef6\u5305\u62ec&#xff1a;\u5207\u9762&#xff08;Aspect&#xff09; \u5c01\u88c5\u6a2a\u5207\u903b\u8f91\u7684\u6a21\u5757&amp;","og_url":"https:\/\/www.wsisp.com\/helps\/64194.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-22T15:40:35+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/64194.html","url":"https:\/\/www.wsisp.com\/helps\/64194.html","name":"SpringBoot AOP\u5207\u9762\u7f16\u7a0b\u5b9e\u6218\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-22T15:40:35+00:00","dateModified":"2026-01-22T15:40:35+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/64194.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/64194.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/64194.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"SpringBoot AOP\u5207\u9762\u7f16\u7a0b\u5b9e\u6218\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/64194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=64194"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/64194\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=64194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=64194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=64194"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=64194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}