Update ApplicationInitRunner.java

木子李·De 3 years ago
parent 8462b0e3a7
commit ed3a022c61

@ -1,10 +1,14 @@
package com.anjiplus.template.gaea.business.runner;
import com.anji.plus.gaea.constant.Enabled;
import com.anji.plus.gaea.init.InitRequestUrlMappings;
import com.anjiplus.template.gaea.business.modules.dict.service.GaeaDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import java.util.List;
/**
*
* @author lr
@ -15,10 +19,18 @@ public class ApplicationInitRunner implements ApplicationRunner {
@Autowired
private GaeaDictService gaeaDictService;
@Autowired
private InitRequestUrlMappings initRequestUrlMappings;
@Override
public void run(ApplicationArguments args) throws Exception {
//1、数据字典刷新
gaeaDictService.refreshCache(null);
// gaeaDictService.refreshCache(null);
//获取当前应用中所有的请求信息
//List<InitRequestUrlMappings.RequestInfo> requestInfos = initRequestUrlMappings.getRequestInfos(Enabled.YES.getValue());
//System.out.println(requestInfos);
}
}

Loading…
Cancel
Save