学习SpringAOP和作业
This commit is contained in:
@@ -17,6 +17,7 @@ public class LifecycleDemo implements BeanFactoryAware, InitializingBean, Dispos
|
||||
public void destroy() throws Exception {
|
||||
System.out.println("--destroy捣毁, 销毁");
|
||||
}
|
||||
|
||||
public void xiaohui() {
|
||||
System.out.println("--xiaohui销毁");
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans.xsd"
|
||||
default-init-method="init"
|
||||
default-init-method="init"
|
||||
default-destroy-method="xiaohui"
|
||||
default-lazy-init="false"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user