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(); } }