before: Run advice before the a method execution.after: Run advice after the a method execution regardless of its outcome.after-returning: Run advice after the a method execution only if method completes successfully.after-throwing: Run advice after the a method execution only if method exits by throwing an exception.
Instantiate - 容器在 XML 文件里找到定义并实例化它们Populate properties - 使用 DI 填充属性Set Bean Name - If the bean implements BeanNameAware interface, spring passes the bean's id to setBeanName() method.Set Bean factory - If Bean implements BeanFactoryAware interface, spring passes the beanfactory to setBeanFactory() method.