Skip to content

Commit

Permalink
修复War部署无法正常shutdown,ehcache内存泄漏
Browse files Browse the repository at this point in the history
Signed-off-by: zhanliquan <[email protected]>
  • Loading branch information
zhanliquan committed Nov 20, 2019
1 parent 005418e commit 080237c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -25,6 +26,7 @@ public void destroy()
{
shutdownSpringSessionValidationScheduler();
shutdownAsyncManager();
CacheManager.getCacheManager("ruoyi").shutdown();
}

/**
Expand Down

0 comments on commit 080237c

Please sign in to comment.