dnd-side-project / dnd-5th-10-backend

IT 면접 지식 공유 플랫폼 IT'erview Backend-repo
4 stars 0 forks source link

swagger-ui Authorization 설정 #16

Closed d36choi closed 3 years ago

d36choi commented 3 years ago

https://www.baeldung.com/spring-boot-swagger-jwt

d36choi commented 3 years ago

image swagger-ui 의 테스트 요청들을 보낼 때 Authorization 헤더를 포함하지 않으면 원하는 결과가 리턴되지 않고 다 거부됩니다. (필터에서 걸러지니까)

그래서 최초 접속시에 헤더값을 추가하면 원활하게 테스트 가능하게끔 설정했습니다.