Browse Source

修复War部署无法正常shutdown,ehcache内存泄漏

Signed-off-by: zhanliquan <zhanliquanit@foxmail.com>
pull/144/head
zhanliquan 5 years ago
parent
commit
080237cabf
  1. 2
      ruoyi-framework/src/main/java/com/ruoyi/framework/manager/ShutdownManager.java

2
ruoyi-framework/src/main/java/com/ruoyi/framework/manager/ShutdownManager.java

@ -1,6 +1,7 @@
package com.ruoyi.framework.manager; package com.ruoyi.framework.manager;
import com.ruoyi.framework.shiro.web.session.SpringSessionValidationScheduler; import com.ruoyi.framework.shiro.web.session.SpringSessionValidationScheduler;
import net.sf.ehcache.CacheManager;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -25,6 +26,7 @@ public class ShutdownManager
{ {
shutdownSpringSessionValidationScheduler(); shutdownSpringSessionValidationScheduler();
shutdownAsyncManager(); shutdownAsyncManager();
CacheManager.getCacheManager("ruoyi").shutdown();
} }
/** /**

Loading…
Cancel
Save