摘要: 第三章 最小化Spring xml配置 自动装配(autowiring) 自动检测(autodiscovery) 自动装配 byName、byType、constructor autodetect(首先constructor,然后byType) 默认自动装配 (default-autowire默认为none,不进行自动装配) ... 阅读全文
posted @ 2014-09-02 16:08 dorothychai 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 初始化和销毁Bean init-method && destory-method 如果上下文中有很多Bean都有相同name的初始化方法和销毁方法。可以在Beans元素的default-init-method && default-destory-method方法中声明。 .... 使用元素配置Bean属性,... 阅读全文
posted @ 2014-09-02 11:15 dorothychai 阅读(143) 评论(0) 推荐(0) 编辑