
Spring Security 적용 시 설정한 api-docs URL 기본으로 안나오는 현상 해결 어제 springdoc 으로 swagger 간단하게 만들어 테스트해봤고 프로젝트 중인 패키지에도 적용을 해봤는데 테스트 했던 것과는 다르게 springdoc.api-docs.path (springdoc.swagger-ui.url) 대로 동작하지 않았다. 자꾸 swagger 디폴트 페이지가 먼저 뜸 ( https://petstore.swagger.io/v2/swagger.json ) 내가 설정한 /api-docs 라는 url 로 검색해야 나오는 상황... 그래서 디폴트 페이지를 아예 안나오게 옵션을 추가해봤더니 springdoc: swagger-ui: disable-swagger-default-url: true..
Java/SpringBoot&Spring
2023. 1. 18. 11:31