package com.malk.kabeiyi.config;

import com.malk.kabeiyi.service.McProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class StartupRunner implements ApplicationRunner {

    @Autowired
    private McProjectService mcProjectService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        mcProjectService.init();
    }
}