缓存功能优化, 修改设置后自动修改缓存, 且缓存未完成, 搜索功能暂时禁用.

This commit is contained in:
zhaojun1998
2020-01-02 18:17:11 +08:00
parent 2a367afc37
commit de947e510c
6 changed files with 35 additions and 7 deletions

View File

@@ -19,9 +19,13 @@ public class StorageStrategyInitCheckAspect {
public void logStart() {
SystemConfigService systemConfigService = SpringContextHolder.getBean(SystemConfigService.class);
AbstractFileService currentFileService = systemConfigService.getCurrentFileService();
if (currentFileService == null || !currentFileService.getIsInitialized()) {
if (currentFileService == null) {
throw new StorageStrategyUninitializedException("存储策略尚未初始化, 请联系管理员!");
}
if (!currentFileService.getIsInitialized()) {
throw new StorageStrategyUninitializedException("存储策略异常, 请联系管理员!");
}
}
}