package com.yeejoin.amos.boot.module.jcs.biz.config;

import com.yeejoin.amos.boot.module.common.biz.service.impl.ESOrgUsrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import java.sql.SQLOutput;

/**
 * @author DELL
 */
@Component
public class JCSRunnner implements ApplicationRunner {

    @Autowired
    ESOrgUsrService esOrgUsrService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println("开始初始化ES");
        esOrgUsrService.init();
    }
}
