Commit 080237ca by zhanliquan

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

Signed-off-by: zhanliquan <zhanliquanit@foxmail.com>
parent 005418e0
package com.ruoyi.framework.manager;
import com.ruoyi.framework.shiro.web.session.SpringSessionValidationScheduler;
import net.sf.ehcache.CacheManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -25,6 +26,7 @@ public class ShutdownManager
{
shutdownSpringSessionValidationScheduler();
shutdownAsyncManager();
CacheManager.getCacheManager("ruoyi").shutdown();
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment