스프링 부트 엔드 포인트 권한 에러

sangeun jo·2021년 10월 6일
0

스프링 엔드포인트 접속 시, 아래와 같은 에러 페이지가 뜨는 경우가 있다.

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Mar 09 02:22:08 KST 2021
There was an unexpected error (type=Unauthorized, status=401).
Full authentication is required to access this resource.

나는 /env로 접속시 발생했다.

resources/application.properties 파일에

management.security.enabled=false

를 추가하면 문제없이 페이지를 볼 수 있다.

중요한 정보라서 권한을 요구하는 것이니, 실제로 서비스를 배포할 때에는 절대 사용하면 안된다.

profile
코더가 아니라 개발자가 되자

0개의 댓글