Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

classpath wildcard in @PropertySource

$
0
0

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 @ProeprtySourceIs there any other way to read to property in classed marked with @Configurations.


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>