package com.lf.server.config; import com.lf.server.helper.PathHelper; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; import org.springframework.stereotype.Component; /** * 初始化完成配置类 * @author WWW */ @Component public class InitConfig implements ApplicationRunner { private final static Log log = LogFactory.getLog(InitConfig.class); @Autowired private PathHelper pathHelper; @Override public void run(ApplicationArguments args) { try { pathHelper.init(); log.info("*****************系统启动完毕*****************"); } catch (Exception ex) { log.error(ex.getStackTrace()); } } }