How to import spring xml basis on condition


How to import spring xml basis on condition



Is there any way to import to load the spring configuration file to another by placing some conditional value, which is taken from the .properties file


<import resource="classpath:META-INF/spring/MandatoryConfigForThisService.xml" />



desired solution want to be like the following:


<import condition="${isEnabled}" resource="classpath:META-INF/spring/MandatoryConfigForThisService.xml" />









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

how to run turtle graphics in Colaboratory

Export result set on Dbeaver to CSV