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