How do you maintain java webapps in different staging environments?

后端 未结 13 2546
傲寒
傲寒 2020-12-29 10:23

You might have a set of properties that is used on the developer machine, which varies from developer to developer, another set for a staging environment, and yet another fo

13条回答
  •  失恋的感觉
    2020-12-29 11:09

    Use different properties files and use ant replace filters which will do the replacement based on environment for which the build is done. See http://www.devrecipes.com/2009/08/14/environment-specific-configuration-for-java-applications/

提交回复
热议问题