From 1cd975325ff8e8800b336da387707aeb15bf4a7b Mon Sep 17 00:00:00 2001 From: taking Date: Sat, 14 Oct 2023 12:13:32 +0900 Subject: [PATCH] Fix : Minor Updated (#32) * Fix: Minor Updated --- application.properties_docker | 3 +++ .../main/java/lab/cherry/nw/controller/QsheetController.java | 3 ++- nw/src/main/resources/application.properties_sample | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/application.properties_docker b/application.properties_docker index 8da10b1..f338d91 100644 --- a/application.properties_docker +++ b/application.properties_docker @@ -12,6 +12,9 @@ server.port=8888 #server.error.include-message=always server.servlet.encoding.charset=UTF-8 server.servlet.encoding.force=true +spring.servlet.multipart.max-file-size=3096MB +spring.servlet.multipart.max-request-size=3096MB +spring.servlet.multipart.enabled=true # Swagger springdoc-ui Configuration spring.messages.encoding=UTF-8 diff --git a/nw/src/main/java/lab/cherry/nw/controller/QsheetController.java b/nw/src/main/java/lab/cherry/nw/controller/QsheetController.java index bb6b3b2..0f5f0fa 100644 --- a/nw/src/main/java/lab/cherry/nw/controller/QsheetController.java +++ b/nw/src/main/java/lab/cherry/nw/controller/QsheetController.java @@ -7,6 +7,7 @@ import org.springframework.data.domain.Sort; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; @@ -99,7 +100,7 @@ public ResponseEntity findAllQsheets( * * Author : yby654(yby654@github.com) */ - @PostMapping("") + @PostMapping(value = "", consumes = {MediaType.APPLICATION_JSON_VALUE, MediaType.MULTIPART_FORM_DATA_VALUE, MediaType.APPLICATION_OCTET_STREAM_VALUE}) @ApiResponses(value = { @ApiResponse(responseCode = "200", description = "큐시트 생성이 완료되었습니다.", content = @Content(schema = @Schema(implementation = ResponseEntity.class))), @ApiResponse(responseCode = "400", description = "입력 값이 잘못 되었습니다.", content = @Content(schema = @Schema(implementation = ErrorResponse.class))), diff --git a/nw/src/main/resources/application.properties_sample b/nw/src/main/resources/application.properties_sample index 3d30e37..7cc8fc9 100644 --- a/nw/src/main/resources/application.properties_sample +++ b/nw/src/main/resources/application.properties_sample @@ -12,6 +12,9 @@ server.port=8888 #server.error.include-message=always server.servlet.encoding.charset=UTF-8 server.servlet.encoding.force=true +spring.servlet.multipart.max-file-size=3096MB +spring.servlet.multipart.max-request-size=3096MB +spring.servlet.multipart.enabled=true # Swagger springdoc-ui Configuration spring.messages.encoding=UTF-8