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

Signed-off-by: zhanliquan <zhanliquanit@foxmail.com>
dep_wangsr
zhanliquan 5 years ago committed by Limy
parent d99664ecd0
commit 9dd7de9567

@ -1,6 +1,7 @@
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();
}
/**

Loading…
Cancel
Save