How to achieve conditional resource import in a Spring XML context?

前端 未结 8 729
醉梦人生
醉梦人生 2020-11-27 14:25

What I would like to achieve is the ability to "dynamically" (i.e. based on a property defined in a configuration file) enable/disable the importing of a child Spr

8条回答
  •  迷失自我
    2020-11-27 14:59

    Another one to consider for Spring 3.0:

     
    

    where ${xyzzy} interpolates a property from the system properties.

提交回复
热议问题