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

浙公网安备 33010602011771号