spring - How to specify dozer.properties location? -


i'm using dozer spring 3.0.x. here mapper bean definition:

<bean id="mapper" class="org.dozer.dozerbeanmapper" lazy-init="true">     <property name="mappingfiles">         <list>             <value>dozer-bean-mappings.xml</value>         </list>     </property> </bean> 

i want put dozer.properties file in src/main/resources/conf/app/dozer.properties.

how can specify custom dozer.properties location?

as mentioned in the documentation:

an alternative dozer properties file can specified via dozer.configuration system property. ex) -ddozer.configuration=somedozerconfigurationfile.properties

so launch app -ddozer.configuration=/conf/app/dozer.properties


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -