I am using Spring Java config to create my bean.But this bean is common to 2 applications.Both have one property file abc.properties but with different classpath locations.When i put explicit classpath like
@PropertySource("classpath:/app1/abc.properties")
then it works but when i try to use wildcard like
@PropertySource("classpath:/**/abc.properties")
then it doesn't work.I try many combinations of wildcard but it still not working.Is wildcard works in @ProeprtySource
Is there any other way to read to property in classed marked with @Configurations
.