Today We Done

동언 : Spring Security, OAuth 학습(accessToken 발급받는 로직 구현)

웅렬 : 신청곡 REST API 일부 구현

찬희 : JPA 학습, 사연 REST API 역할 할당받음


참고자료

Untitled

https://www.youtube.com/watch?v=nyN4o9eXqm0

@ControllerAdvice
public class GlobalExceptionHandler {

    @ExceptionHandler(Exception.class)
    public ResponseEntity<ErrorResponse> handleException(Exception ex) {
        ErrorResponse errorResponse = new ErrorResponse(HttpStatus.INTERNAL_SERVER_ERROR.value(), "Internal Server Error", ex.getMessage());
        return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(errorResponse);
    }
}

원하는 이름으로 git repo clone 받기