I want to import the resource based on value of property in properties file, there are several context files and spring should load only those whose value is set to true. These values are different for different customers.
<import if{property} = true resource="classpath*:prod-config.xml"/>
and I can't use spring profiles here. Please suggest.
You can use Spring 4's Conditionals to achieve that behaviour
For instance:
MyConditionalProd would implement the conditional logic: