摘要: 和maven profile类似,Spring bean definition profile 有两个组件:声明和激活。 【栗子:开发测试环境使用HyperSQL 生产环境使用JNDI上下文根据配置查找数据库源】 <beans> <beans profile="development,qa"> <j 阅读全文
posted @ 2018-04-02 13:58 chenhui7373 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 【配置Spring Framework】 1.XML配置依赖关系 bean是由Springframework管理,我们自己编写bean,Spring也内建了bean,比如ApplicationContext、ResourceLoader、BeanFactory、MessageSource、Appli 阅读全文
posted @ 2018-04-02 12:35 chenhui7373 阅读(250) 评论(0) 推荐(0) 编辑