42. ResponseDto 수정
by 볼빵빵오춘기GlobalExceptionHandler
handleArgumentException() 수정한다.
@ExceptionHandler(value = IllegalArgumentException.class)
public ResponseDto<String> handleArgumentException(IllegalArgumentException e){
return new ResponseDto<String>(HttpStatus.INTERNAL_SERVER_ERROR,e.getMessage());
}
ResponseDto
status Type 변경한다.
public class ResponseDto <T>{
// HttpStatus status; 기존 HttpStatus -> int로 변경
int status;
T data;
}
'강의 따라하기 > blog' 카테고리의 다른 글
46. 스프링의 전통적인 트랜잭션 (0) | 2024.01.03 |
---|---|
43.44. 45 DB 격리수준 READ COMMIT & 정합성 문제 & REPEACTABLE READ (1) | 2024.01.02 |
41. 회원가입 하기 두번째 완료 (0) | 2024.01.02 |
40. 회원가입 하기 Ajax 요청 (1) | 2024.01.02 |
38,39 Ajax를 사용하는 이유 첫번째, 두번째 (0) | 2024.01.02 |
블로그의 정보
Hello 춘기's world
볼빵빵오춘기