1、Excel优化

Former-commit-id: 13796a5278b56358150f1ce53771c37e42ed5a40
master
王兵 5 years ago
parent 2c63b106a5
commit bfc26c9317

@ -18,7 +18,8 @@ public class CacheConfig {
@Bean
public EhCacheCacheManager getCacheManager() {
net.sf.ehcache.config.Configuration configuration = new net.sf.ehcache.config.Configuration();
configuration.setMaxBytesLocalHeap("4G");
// todo 需根据服务器物理内存配置
configuration.setMaxBytesLocalHeap("1G");
configuration.updateCheck(false);
configuration.addDiskStore(new DiskStoreConfiguration().path("java.io.tmpdir"));
CacheManager cacheManager = CacheManager.create(configuration);

Loading…
Cancel
Save

Powered by TurnKey Linux.