spring配置文件中bean標籤中init-method和destroy-method和用註解方式配置

Person類html public class Person { private int i = 0; public Person(){ System.out.println("實例化一個對象"); } public void init(){ System.out.println("調用初始化方法...."); } public void destory222(){
相關文章
相關標籤/搜索