java - How I can configure properties file right? -


i have maven project several modules

this part of database-config.xml in office-core module:

<bean id="propertyconfigurer"       class="org.springframework.beans.factory.config.propertyplaceholderconfigurer">       <property name="locations">              <list>                    <value>classpath:application.properties</value>              </list>       </property> </bean> 

i have application.properties files on several places:

c:\projects\office\app\office-core\application.properties

c:\projects\office\app\office-core\src\main\profiles\application.properties

c:\projects\office\app\application.properties

in opinion config in database-config.xml should can use properties file in database-config.xml cant... ?

you should put application.properties file src/main/resources directory have on classpath. should work.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

php - Improving script execution time -

How to provide Authorization & Authentication using Asp.net, C#? -