第一种 通过XML配置 配置AOP xml entity类 测试类 运算结果 第二种 通过注解配置 实现AOP xml entity类 测试类 运算结果 第三种 JDK8新特性 通过纯java实现AOP config类相当于配置的xml entity包 测试类 控制台结果