@Configuration @Order(value=2) public class ScheduleRollover extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.context.ApplicationContextAware
| 构造器和说明 |
|---|
ScheduleRollover() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
扫描ESMetaData注解的类,并自动开启定时任务根据配置执行rollover
特别注意,不支持分布式调度
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>event - public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2021. All rights reserved.