게시글 작성 수정

This commit is contained in:
khj0414 2025-01-23 12:35:18 +09:00
parent aa91b4191c
commit 9386b18ec4

View File

@ -159,16 +159,17 @@ public class BoardController {
map.put("LOCBRDPWD", encodedPassword);
}
// <--- 프론드 단에서 해줌 할필요 없음 삭제 --->
// LOCBRDCON 필드를 JSON 문자열로 변환
ObjectMapper objectMapper = new ObjectMapper();
if (map.containsKey("LOCBRDCON")) {
try {
String jsonContent = objectMapper.writeValueAsString(map.get("LOCBRDCON"));
map.put("LOCBRDCON", jsonContent); // JSON 문자열로 변환된 설정
} catch (Exception e) {
throw new RuntimeException("Error serializing LOCBRDCON field", e);
}
}
// ObjectMapper objectMapper = new ObjectMapper();
// if (map.containsKey("LOCBRDCON")) {
// try {
// String jsonContent = objectMapper.writeValueAsString(map.get("LOCBRDCON"));
// map.put("LOCBRDCON", jsonContent); // JSON 문자열로 변환된 설정
// } catch (Exception e) {
// throw new RuntimeException("Error serializing LOCBRDCON field", e);
// }
// }
//로그인 미개발 ->임시
map.put("MEMBERSEQ", 1);