mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-10 20:57:14 +08:00
chore: 优化部分配置及注释
This commit is contained in:
@@ -71,6 +71,7 @@ public class CommonController {
|
||||
@Operation(summary = "上传文件", description = "上传文件")
|
||||
@PostMapping("/file")
|
||||
public FileUploadResp upload(@NotNull(message = "文件不能为空") MultipartFile file) {
|
||||
// TODO 实际开发时请删除本条校验
|
||||
ValidationUtils.throwIf(projectProperties.isProduction(), "演示环境不支持上传文件");
|
||||
ValidationUtils.throwIf(file::isEmpty, "文件不能为空");
|
||||
FileInfo fileInfo = fileService.upload(file);
|
||||
|
@@ -185,7 +185,7 @@ continew-starter.web.cors:
|
||||
## 接口文档增强配置
|
||||
knife4j:
|
||||
# 开启生产环境屏蔽
|
||||
production: true
|
||||
production: ${project.production}
|
||||
|
||||
--- ### WebSocket 配置
|
||||
continew-starter.messaging.websocket:
|
||||
|
@@ -193,7 +193,7 @@ cosid:
|
||||
friendly: true
|
||||
provider:
|
||||
safe-js:
|
||||
machine-bit: 3
|
||||
machine-bit: 7
|
||||
sequence-bit: 9
|
||||
|
||||
--- ### 认证配置
|
||||
|
Reference in New Issue
Block a user