Is it possible to have multiple PropertyPlaceHolderConfigurer in my applicationContext?

前端 未结 8 1272
臣服心动
臣服心动 2020-12-01 01:16

I need to load a specific applicationContext.xml file according to a given system property. This itself loads a file with the actual configuration. Therefore I need 2 Proper

8条回答
  •  独厮守ぢ
    2020-12-01 01:51

    We have the following approach working:

    
        DEV
        localhost
    
    
    

    System property app.properties.path can be used to override path to config file.

    And application bundles some default values for placeholders that cannot be defined with defaults in common modules.

提交回复
热议问题