로그 삭제

This commit is contained in:
주수현
2025-06-19 20:41:36 +09:00
parent 68b396921f
commit 3af1922d79
2 changed files with 13 additions and 13 deletions

View File

@@ -33,8 +33,6 @@ public class AdminCreatePostController {
if (bindingResult.hasErrors()) {
log.info("############Binding errors: {}", bindingResult.getAllErrors());
log.info("Binding 메세지 errors: {}", bindingResult.getAllErrors().get(0).getDefaultMessage());
return ResponseEntity.status(HttpStatus.UNPROCESSABLE_ENTITY)
.body(bindingResult.getAllErrors().get(0).getDefaultMessage());
}

View File

@@ -239,11 +239,13 @@
},
function (code, rstData) {
if(code == 422) alert(rstData.responseText);
if(code == 400) alert(rstData.responseJSON.message);
if(code == 200 ){
alert("등록이 완료되었습니다.");
location.href = '/settings/admins';
}
},
'post',
'json',
{ handle422Type: 'alert' }
'json'
);
}
</script>