package com.esv.freight.file.common.component;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @project: freight-file-service
 * @name: com.esv.freight.file.common.component.ApplicationLoadRunner
 * @author: 黄朝斌
 * @email: huangchaobin@esvtek.com
 * @createTime: 2020/05/28 14:33
 * @version:1.0
 */
@Slf4j
@Component
public class ApplicationLoadRunner implements ApplicationRunner {

    @Value("${spring.application.name}")
    private String applicationName;

    @Override
    public void run(ApplicationArguments var) {
        log.info("-------------------- [{}]初始化完成 --------------------", applicationName);
    }
}