We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.1. As-is
1.2. To-be
2024-11-27T17:41:21.161+09:00 WARN 14504 --- [friendogly] [http-nio-8080-exec-1] c.h.friendogly.GlobalExceptionHandler : 유효하지 않은 요청 값입니다. detail: [latitude: 위도는 -90도 이상 90도 이하로 입력해 주세요. [요청 값: -100.0], longitude: 경도는 -180도 이상 180도 이하로 입력해 주세요. [요청 값: -1000.0]] org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [1] in public org.springframework.http.ResponseEntity<com.happy.friendogly.common.ApiResponse<com.happy.friendogly.playground.dto.response.SavePlaygroundResponse>> com.happy.friendogly.playground.controller.PlaygroundController.save(java.lang.Long,com.happy.friendogly.playground.dto.request.SavePlaygroundRequest) with 2 errors: [Field error in object 'savePlaygroundRequest' on field 'latitude': rejected value [-100.0]; codes [DecimalMin.savePlaygroundRequest.latitude,DecimalMin.latitude,DecimalMin.double,DecimalMin]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [savePlaygroundRequest.latitude,latitude]; arguments []; default message [latitude],true,-90.0]; default message [위도는 -90도 이상 90도 이하로 입력해 주세요.]] [Field error in object 'savePlaygroundRequest' on field 'longitude': rejected value [-1000.0]; codes [DecimalMin.savePlaygroundRequest.longitude,DecimalMin.longitude,DecimalMin.double,DecimalMin]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [savePlaygroundRequest.longitude,longitude]; arguments []; default message [longitude],true,-180.0]; default message [경도는 -180도 이상 180도 이하로 입력해 주세요.]] at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(RequestResponseBodyMethodProcessor.java:144) at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:122) at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:224) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:178) ...
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <maxHistory>30</maxHistory> </rollingPolicy>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
요구 사항
1. 예외 메시지가 중복되어 예외 원인을 파악하기 힘듦
1.1. As-is
1.2. To-be
2. 로그에 담긴 정보 부족
3. 로그 보관 기간이 너무 짧음
The text was updated successfully, but these errors were encountered: