Spring入门篇 学习笔记
Introduction 允许一个切面声明一个实现指定接口的通知对象,并且提供了一个接口实现类来代表这些对象
由 aop:aspect 中的 aop:declare-parents 元素声明该元素用于声明所匹配的类型拥有一个新的 parents
示例
新增接口:
1 | public interface Fit { |
添加实现:
1 | public class FitImpl implements Fit { |
修改配置:
1 | <?xml version="1.0" encoding="UTF-8"?> |
添加测试:
1 | @Test |
schema-defined (基于配置文件) aspects 只支持 singleton model