ITeye博客

14.14.14.14.14.14.14.14.14.14.

taeky · 2010-01-15 09:28 · Spring2 · 企业架构 · junit · Spring · 项目管理 · 配置管理 · Bean · Markdown

14.14.14.14.14.14.14.14.14.14.14.14.14.14.

评论(1)

  1. #1 楼 · TheMatrix · 2010-03-08 17:23

    如果有:@Scope("prototype"),以下代码并不执行,为什么?

    
    @PreDestroy //在bean实例被摧毁之前,会执行这个方法   
        public void destory(){   
            System.out.println("关闭资源");   
        }
    
    

评论功能维护中,当前仅展示历史评论。