스프링 엔드포인트 접속 시, 아래와 같은 에러 페이지가 뜨는 경우가 있다.
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
를 추가하면 문제없이 페이지를 볼 수 있다.
중요한 정보라서 권한을 요구하는 것이니, 실제로 서비스를 배포할 때에는 절대 사용하면 안된다.
'Java > Spring Boot' 카테고리의 다른 글
[SpringBoot] google oauth2 관련 설정 (0) | 2024.05.11 |
---|---|
[SpringBoot] Could not find acceptable representation (0) | 2024.05.11 |
[SpringBoot] Spring Seurity 적용 후 회원가입 안됨 (0) | 2024.05.11 |
[SpringBoot] 서버 시작 시 에러 (0) | 2024.05.11 |
[SpringBoot] Spring Seurity 정리 (0) | 2024.05.11 |