Thanks Enrico for all your help.
<property name="location" value = "file:D:\emailer\mailer.properties" /> worked for me.
Type: Posts; User: nn12; Keyword(s):
Thanks Enrico for all your help.
<property name="location" value = "file:D:\emailer\mailer.properties" /> worked for me.
I exactly have this same piece of code in my application context xml
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property...
I have placed both the jar file & the mailer.properties inside D:\emailer folder and I run the jar file using D:\emailer>java -jar test.jar
java.io.FileNotFoundException: class path resource...
I have placed my properties file outside my jar file, so that it can edited later in future. But with the below code its not able to read my properties file.
package com.abc.gip.mailer.utils;
...
In my java app there is a code which reads the properties file from src/main/resources folder.
@Component("mailerProperties")
public class MailerProperties {
private static Properties...