i am learning spring and trying to understand retrieve value from properties file.
I am trying the following way to try out some samples
<util:properties id="spelProp" location="classpath:/META-INF/spelProperties.properties"></util:properties>
where the content of spelProperties.properties are
spelTeacher.firstName="First name from Properties"
spelTeacher.lastName="Last name from properties"
I try to access the lastName inorder to set one of the bean property like
<bean id="spelTeacher3Xml" class="com.learningweb.Service.SpelSampleTeacher">
<property name="lastName" value="#{spelProp[spelTeacher.lastName]}" />
</bean>
When i try to run using STS i am getting an error that "/META-INF/spelProperties.properties" does not exists.
Can someone help me to understand what is wrong here. Did i miss any item in configuring classpath or any Spring framework related settings?
Appreciate your help (Also any refernce to understand "classpath:" would be helpful. I tried to search but i am getting the right material i am looking for. I am trying to understand what does classpath: does in spring) Thanks!!!