Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
存储配置服务
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7a5593db
authored
Feb 21, 2022
by
xmh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
上传文件大小
不允许存储配置名称为空字符串
1 parent
d852e7bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
src/main/java/com/viontech/storage/controller/StorageConfigController.java
src/main/resources/application.properties
src/main/java/com/viontech/storage/controller/StorageConfigController.java
View file @
7a5593d
...
...
@@ -76,7 +76,7 @@ public class StorageConfigController {
@PostMapping
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
())
.
count
();
Assert
.
isTrue
(
count
==
0
,
"已存在同名存储配置"
);
...
...
src/main/resources/application.properties
View file @
7a5593d
spring.cloud.consul.discovery.metadata.version
=
0.0.1-SNAPSHOT
\ 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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment