chore: 优化部分代码

This commit is contained in:
2024-06-05 19:45:09 +08:00
parent cc079e8bf4
commit 5cd6af8e7b
14 changed files with 13 additions and 16 deletions

View File

@@ -40,7 +40,7 @@ import java.util.Map;
@EnableWebMvc
@AutoConfiguration
@EnableConfigurationProperties(LocalStorageProperties.class)
@ConditionalOnProperty(prefix = PropertiesConstants.STORAGE_LOCAL, name = PropertiesConstants.ENABLED, havingValue = "true")
@ConditionalOnProperty(prefix = PropertiesConstants.STORAGE_LOCAL, name = PropertiesConstants.ENABLED, matchIfMissing = true)
public class LocalStorageAutoConfiguration implements WebMvcConfigurer {
private static final Logger log = LoggerFactory.getLogger(LocalStorageAutoConfiguration.class);

View File

@@ -35,7 +35,7 @@ public class LocalStorageProperties {
/**
* 是否启用本地存储
*/
private boolean enabled = false;
private boolean enabled = true;
/**
* 存储映射