0

The below bean is placed in applicationContext.xml file and i need to read the host, port, username, password values from config.properties file which is placed at some xyz path. How to read it in applicationContext.xml?

<bean id="ftpSessionFactory" class="org.springframework.integration.ftp.session.DefaultFtpSessionFactory">
        <property name="host" value=""/>
        <property name="port" value=""/>
        <property name="username" value=""/>
        <property name="password" value=""/>
</bean>
CupawnTae
  • 14,192
  • 3
  • 29
  • 60
surya
  • 11
  • 4
  • 1
    Possible duplicate of [Spring application context external properties?](http://stackoverflow.com/questions/8270290/spring-application-context-external-properties) – benbenw Nov 26 '15 at 11:01
  • ref http://stackoverflow.com/questions/30640453/loading-property-file-from-system-properties-with-default-path-in-spring-context – Lovababu Padala Nov 26 '15 at 12:53

0 Answers0