Hi,
I am trying to migrate my application module from
JBOSS to Spring boot.
I am done with most of the configuration changes.
But the build fails due to
test failures.
The error I get is:
java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'rrmUpdateTradesManagerPilot' defined in class path resource [com/theheat/tv/tc/spring/rrm-import-config-multi.xml]: Could not resolve placeholder 'tv.tc.clr.import.pollinginterval' in
string value "${tv.tc.clr.import.pollinginterval}";
I have application properties file defined under the environments folder which has defined the value for "tv.tc.clr.import.pollinginterval"
But seems like spring boot is unable to read this file and get the values and replace in above .xml file.
Below is my basic test class which defines the location of the property file
Can someone please let me know how to load the properties file and get rid of this error?
thanks
Trupti