게시글 작성 수정

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