用spring profile或maven profile实现多环境配置切换

开发环境配置、测试环境以及线上环境的配置肯定是不一样的,比如:数据库配置、配置路径、log级别等。用以下两种方式,可以方便切换环境。

1、用spring3.1 profile
http://radiumxie.iteye.com/blog/1851919
2、用maven profile
http://blog.csdn.net/kangojian/article/details/6733006

猜你喜欢

转载自zheng19851.iteye.com/blog/2122629