Commit 7a5593db by xmh

上传文件大小

不允许存储配置名称为空字符串
1 parent d852e7bf
...@@ -76,7 +76,7 @@ public class StorageConfigController { ...@@ -76,7 +76,7 @@ public class StorageConfigController {
@PostMapping @PostMapping
public Message<StorageConfig> add(@RequestBody StorageConfigVo storageConfigVo) { public Message<StorageConfig> add(@RequestBody StorageConfigVo storageConfigVo) {
Assert.notNull(storageConfigVo.getName(), "name不能为空"); Assert.hasText(storageConfigVo.getName(), "name不能为空");
Long count = storageConfigService.lambdaQuery().eq(StorageConfig::getName, storageConfigVo.getName()) Long count = storageConfigService.lambdaQuery().eq(StorageConfig::getName, storageConfigVo.getName())
.count(); .count();
Assert.isTrue(count == 0, "已存在同名存储配置"); Assert.isTrue(count == 0, "已存在同名存储配置");
......
spring.cloud.consul.discovery.metadata.version=0.0.1-SNAPSHOT
\ No newline at end of file \ No newline at end of file
spring.cloud.consul.discovery.metadata.version=0.0.1-SNAPSHOT
spring.servlet.multipart.max-file-size=64MB
spring.servlet.multipart.max-request-size=64MB
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!