<NME> SysServerListener.java
<BEF> package org.ibase4j.core;

import org.apache.dubbo.config.DubboShutdownHook;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.ibase4j.core.listener.ServerListener;
import org.ibase4j.service.SysDicService;
import org.ibase4j.service.SysUserService;
import org.springframework.web.context.ContextLoader;
import org.springframework.context.event.ContextStoppedEvent;
import org.springframework.stereotype.Component;

import top.ibase4j.core.listener.ApplicationReadyListener;

	public void contextInitialized(ServletContextEvent contextEvent) {
		WebApplicationContext context = ContextLoader.getCurrentWebApplicationContext();
		context.getBean(SysUserService.class).init();
		SysDicService sysDicService = context.getBean(SysDicService.class);
		sysDicService.getAllDic();
        if (event instanceof ApplicationReadyEvent) {// 应用已启动完成
            ConfigurableApplicationContext context = ((ApplicationReadyEvent)event).getApplicationContext();
            context.getBean(SysCacheService.class).flush();
            context.getBean(SysUserService.class).init();
        } else if (event instanceof ContextStoppedEvent) { // 应用停止
            DubboShutdownHook.getDubboShutdownHook().doDestroy();
        } else if (event instanceof ContextClosedEvent) { // 应用关闭
            DubboShutdownHook.getDubboShutdownHook().doDestroy();
        }
        super.onApplicationEvent(event);
    }
}

<MSG> Merge pull request !98 from A♂圣旭/develop
<DFF> @@ -5,6 +5,7 @@ import javax.servlet.ServletContextEvent;
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
 import org.ibase4j.core.listener.ServerListener;
+import org.ibase4j.service.SysCacheService;
 import org.ibase4j.service.SysDicService;
 import org.ibase4j.service.SysUserService;
 import org.springframework.web.context.ContextLoader;
@@ -15,6 +16,7 @@ public class SysServerListener extends ServerListener {
 
 	public void contextInitialized(ServletContextEvent contextEvent) {
 		WebApplicationContext context = ContextLoader.getCurrentWebApplicationContext();
+		context.getBean(SysCacheService.class).flush();
 		context.getBean(SysUserService.class).init();
 		SysDicService sysDicService = context.getBean(SysDicService.class);
 		sysDicService.getAllDic();

{'addition_count': 2, 'commit_subject': 'Merge pull request !98 from A♂圣旭/develop', 'deletion_count': 0, 'file_extension': '.java', 'lang': 'java', 'license': 'apache-2.0', 'repo_name': 'iBase4J/iBase4J'}