Skip to content

Commit d2e7147

Browse files
committed
[TUT-56] 코멘트 추가
1 parent d83f91e commit d2e7147

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

springboot-whitelabel-error-page/src/main/java/kr/pe/advenoh/controller/CustomErrorController.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ public String handleError(HttpServletRequest request) {
2525
return "error";
2626
}
2727

28+
/**
29+
* 이 메서드는 스프링 부트 2.3.x부터 deprecated 됨
30+
* - 이 메서드 대신 custom path를 지정하려면 server.error.path 속성으로 지정해야 한다
31+
*/
2832
@Override
2933
public String getErrorPath() {
30-
return "/error";
34+
return null;
3135
}
3236
}

0 commit comments

Comments
 (0)