/**
* Overrides properties configured on beans.
*/
@Bean()
@Lazy(false)
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
public static BeanFactoryPostProcessor propertyOverrideConfigurer() {
PropertyOverrideConfigurer theOverrideConfigurer = new PropertyOverrideConfigurer();
final Properties thePropertiesHolder = new Properties();
/* Task refresh interval. */
thePropertiesHolder.put("starterService.taskReschedulingCronExpression", "* 4/30 * * * ?");
/* Transport service configuration refresh interval. */
thePropertiesHolder.put("starterService.transportServiceConfigurationRefreshCronExpression", "* 5/30 * * * ?");
/* Task execution status reports cleanup interval. */
thePropertiesHolder.put("starterService.taskExecutionStatusCleanupCronExpression", "0/5 * * * * ?");
theOverrideConfigurer.setProperties(thePropertiesHolder);
theOverrideConfigurer.setIgnoreInvalidKeys(false);
theOverrideConfigurer.setIgnoreResourceNotFound(false);
theOverrideConfigurer.setOrder(0);
return theOverrideConfigurer;
}
TaskExecutionStatusCleanupTestConfiguration.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:message-cowboy
作者:
评论列表
文章目录