I have a Spring Boot Web application XX, which in turn is using a library, YY, built using Spring. I have declared YY library details in XX's POM.
In my YY library I have a Cinfig class annotated with following :
@Configuration
@PropertySource({ "classpath:abc.properties" })
class YYLibraryConfig {
I have declared abc.properties in src/main/resources of YY library. Now when I am running Spring Boot application XX , I am getting the following error :
InvocationTargetException: Failed to process import candidates for configuration class [com.sample.YYLibraryConfig]; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'abc.properties' in string value "classpath:${abc.properties}"