1.基于XML配置上下文比较复杂,可借助Spring Tool Suite插件创建配置文件 https://spring.io/tools/sts
2.实现aop
a.@EnableAspectJAutoProxy 啟用AspectJ 自動代理
b.暴露一个已定义的切面Bean
c.切面Bean添加@Aspect注册该Bean为切面
zengt 2016-07-05 14:54 原文
1.基于XML配置上下文比较复杂,可借助Spring Tool Suite插件创建配置文件 https://spring.io/tools/sts
2.实现aop
a.@EnableAspectJAutoProxy 啟用AspectJ 自動代理
b.暴露一个已定义的切面Bean
c.切面Bean添加@Aspect注册该Bean为切面