摘要: Example: the PropertyPlaceholderConfigurer 属性配置文件内容如下所示: jdbc.driverClassName=org.hsqldb.jdbcDriverjdbc.url=jdbc:hsqldb:hsql://production:9002jdbc... 阅读全文
posted @ 2013-09-02 10:52 梦见舟 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 注入方式一:set注入 element --> public class ExampleBean { private AnotherBean beanOne; private YetAnotherBean beanTwo; private int i; public void se... 阅读全文
posted @ 2013-09-02 10:39 梦见舟 阅读(110) 评论(0) 推荐(0) 编辑
摘要: this information below just for study record of mine. 默认情况下:Spring 创建singleton bean 以便于错误能够被发现。 延迟加载:延迟加载可以使bean 在被需要的时候实例化 Bean Scope singleto... 阅读全文
posted @ 2013-09-02 09:29 梦见舟 阅读(115) 评论(0) 推荐(0) 编辑