我有这个属性设置
<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
并让系统属性优先。我怎样才能做到这一点?谢谢。