【发布时间】:2013-01-09 16:29:36
【问题描述】:
我有这个属性设置
<bean id="preferencePlaceHolder"
class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
<property name="locations" ref="propertiesLocations" />
</bean>
<beans profile="dev, testing">
<util:list id="propertiesLocations">
<value>classpath:runtime.properties</value>
<value>classpath:dev.properties</value>
</util:list>
</beans>
...
runtime.properties 里面有个属性是这样的
doImportOnStartup=false
我想偶尔这样做
mvn jetty:run -DdoImportOnStartup=true
并让系统属性优先。我怎样才能做到这一点?谢谢。
【问题讨论】:
标签: spring properties