让value的值不写从外部文件中读取该怎么写
<!--时间间隔触发器,到指定时间执行 -->
<bean id="timerTigger"
class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail">
<ref bean="timerConfig" />
</property>
<property name="cronExpression" >
<value>0/10 * * * * ?</value>
</property>
</bean>
这样写:
<!-- <bean id="prop" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<value>classpath:test.properties</value>
</property>
</bean>
test.properties里内容: cron=0/10 * * * * ?
把上面value位置改为:${cron}