优化代码结构

This commit is contained in:
zhaojun1998
2020-01-20 21:35:20 +08:00
parent dcc4cb19ad
commit f6163c7e19
5 changed files with 2 additions and 18 deletions

View File

@@ -37,9 +37,6 @@ public class SystemConfigService {
@Resource
private SystemConfigRepository systemConfigRepository;
@Resource
private FileAsyncCacheService fileAsyncCacheService;
@Resource
private FileCacheService fileCacheService;
@@ -101,8 +98,6 @@ public class SystemConfigService {
systemConfigRepository.saveAll(systemConfigList);
AbstractFileService currentFileService = getCurrentFileService();
if (!oldEnableCache && curEnableCache) {
log.debug("检测到开启了缓存, 开启预热缓存");
fileCacheService.enableCache();