package com.weiqi.mis.contorller;

import com.weiqi.mis.MsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * 项目启动后执行一次
 *
 * @author createTime 2024-10-07 22:37
 **/
@Component
public class AppRunnerController implements ApplicationRunner {

    @Autowired
    MsgService msgService;


    @Override
    public void run(ApplicationArguments args) throws Exception {

        // 启动后初始化参数表信息
        msgService.addinfo();
    }
}
