Configuration Properties in Spring

Make configuration properties from a properties file available in a Spring context

<bean id="propertyPlaceholderConfigurer"
          class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
   <property name="locations">
      <list>
         <value>application.properties</value>
      </list>
   </property>
</bean>

Leave a Reply

Your email address will not be published. Required fields are marked *