1、spring aop和事务失效 解决办法:
http://blog.csdn.net/z2007130205/article/details/41284381
http://blog.csdn.net/lw_power/article/details/47368145
2、SpringAOP配置详解带实例(基于XML配置文件方式)
http://blog.csdn.net/RobertoHuang/article/details/70148474
3、Spring AOP实战例子与springmvc整合不起效果的解决办法
http://www.cnblogs.com/wcyBlog/p/4342077.html
==============================================================
springmvc4.0 aop @annotation 对方法进行切面不好用,一定要看官方文档,以下这种方式才行
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Auditable {
AuditCode value();
}
@Before("com.xyz.lib.Pointcuts.anyPublicMethod() && @annotation(auditable)")
public void audit(Auditable auditable) {
AuditCode code = auditable.value();
// ...
}