package com.microservices.zone.task;

import com.microservices.zone.common.service.IZoneAsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author OTTO
 */
@Component
public class ZoneApplicationRunner implements ApplicationRunner {

    @Autowired
    private IZoneAsyncService zoneAsyncService;

    @Override
    public void run(ApplicationArguments args) {
        zoneAsyncService.initProjectGitlinkInfo();
    }
}
