
--- src/main/java/com/takensoft/cms/bbs/web/BbsMngController.java
+++ src/main/java/com/takensoft/cms/bbs/web/BbsMngController.java
... | ... | @@ -13,6 +13,7 @@ |
13 | 13 |
import com.takensoft.common.util.ResponseUtil; |
14 | 14 |
import lombok.RequiredArgsConstructor; |
15 | 15 |
import lombok.extern.slf4j.Slf4j; |
16 |
+import org.springframework.beans.factory.annotation.Value; |
|
16 | 17 |
import org.springframework.http.HttpHeaders; |
17 | 18 |
import org.springframework.http.HttpStatus; |
18 | 19 |
import org.springframework.http.MediaType; |
... | ... | @@ -49,6 +50,9 @@ |
49 | 50 |
private final BbsMngService bbsMngService; |
50 | 51 |
private final BbsTypeMngService bbsTypeMngService; |
51 | 52 |
private final CodeManageService codeManageService; |
53 |
+ |
|
54 |
+ @Value("${spring.servlet.multipart.max-file-size}") |
|
55 |
+ private String maxFileSize; |
|
52 | 56 |
|
53 | 57 |
/** |
54 | 58 |
* @param bbsMngVO - 게시판 관리 정보 |
... | ... | @@ -110,6 +114,9 @@ |
110 | 114 |
result.put("bbsMng", bbsMng); |
111 | 115 |
result.put("bbsTypeList", bbsType); |
112 | 116 |
result.put("pageTypeList", pageType); |
117 |
+ String size = maxFileSize.replaceAll("[^0-9]", ""); // 사이즈만 추출 |
|
118 |
+// String unit = maxFileSize.replaceAll("[0-9]", ""); // 단위만 추출 |
|
119 |
+ result.put("maxFileSize", size); |
|
113 | 120 |
|
114 | 121 |
// 응답 처리 |
115 | 122 |
return resUtil.successRes(result, MessageCode.COMMON_SUCCESS); |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?