Spring Boot throws Exception get message

박상훈·2022년 6월 29일

SpringBoot 2.3 버전부터 클라이언트에게 많은 정보를 노출하지 않기 위해
error 객체에 message가 없이 전달된다

application.properties(or yaml)에 아래 옵션을 적용하여
클라이언트에게 다양한 정보를 노출하도록 설정할 수 있다.

server.error.include
-message
-errors
-stacktrace
-exception

profile
엔지니어

0개의 댓글