로그 삭제
This commit is contained in:
@@ -33,8 +33,6 @@ public class AdminCreatePostController {
|
|||||||
|
|
||||||
if (bindingResult.hasErrors()) {
|
if (bindingResult.hasErrors()) {
|
||||||
|
|
||||||
log.info("############Binding errors: {}", bindingResult.getAllErrors());
|
|
||||||
log.info("Binding 메세지 errors: {}", bindingResult.getAllErrors().get(0).getDefaultMessage());
|
|
||||||
return ResponseEntity.status(HttpStatus.UNPROCESSABLE_ENTITY)
|
return ResponseEntity.status(HttpStatus.UNPROCESSABLE_ENTITY)
|
||||||
.body(bindingResult.getAllErrors().get(0).getDefaultMessage());
|
.body(bindingResult.getAllErrors().get(0).getDefaultMessage());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -239,11 +239,13 @@
|
|||||||
},
|
},
|
||||||
function (code, rstData) {
|
function (code, rstData) {
|
||||||
if(code == 422) alert(rstData.responseText);
|
if(code == 422) alert(rstData.responseText);
|
||||||
if(code == 400) alert(rstData.responseJSON.message);
|
if(code == 200 ){
|
||||||
|
alert("등록이 완료되었습니다.");
|
||||||
|
location.href = '/settings/admins';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
'post',
|
'post',
|
||||||
'json',
|
'json'
|
||||||
{ handle422Type: 'alert' }
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user