Search:

Type: Posts; User: nn12; Keyword(s):

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    1,344

    Thanks Enrico for all your help.

    Thanks Enrico for all your help.
    <property name="location" value = "file:D:\emailer\mailer.properties" /> worked for me.
  2. Replies
    6
    Views
    1,344

    I exactly have this same piece of code in my...

    I exactly have this same piece of code in my application context xml

    <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property...
  3. Replies
    6
    Views
    1,344

    I have placed both the jar file & the...

    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...
  4. Replies
    6
    Views
    1,344

    Unable to locate prop file

    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;
    ...
  5. Replies
    1
    Views
    1,964

    Reading properties file

    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...
Results 1 to 5 of 5