摘要:
@Component("target")public class Target implements TargetInterface { public void save() { System.out.println("save running....."); //int i = 1/0; }} @ 阅读全文
摘要:
xml方式: 切面方法:内部有增强方法 public class MyAspect { public void before(){ System.out.println("前置增强.........."); }} 创建目标接口和目标类(内部有切点) public interface TargetIn 阅读全文