提交 6018c5bb 编写于 作者: 知源笔记's avatar 知源笔记

feat: ResourceInitializer

上级 a72cc364
package org.enthusa.askdata.misc;
import lombok.extern.slf4j.Slf4j;
import org.enthusa.askdata.task.impl.FillMetaDataTask;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
/**
* @author henry
* @date 2023/8/28
*/
@Slf4j
@Component
@DependsOn("mapperConfiguration")
public class ResourceInitializer implements InitializingBean {
@Resource
private FillMetaDataTask fillMetaDataTask;
@Override
public void afterPropertiesSet() throws Exception {
fillMetaDataTask.start();
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册