도담이 먹여 살려야하는 집사

[Spring Security] Security Config - Swagger Url 본문

Spring

[Spring Security] Security Config - Swagger Url

천재도담 2020. 12. 28. 11:41
   @Override
    public void configure(WebSecurity webSecurity) throws Exception {
        webSecurity.ignoring().antMatchers(
                "/v2/api-docs",
                "/configuration/ui",
                "/swagger-resources/**",
                "/configuration/security",
                "/swagger-ui.html",
                "/webjars/**");
    }

 

swagger- url 을 인가 없이 설정하는 방법 ignoring 사용하기 

 

stackoverflow.com/questions/37671125/how-to-configure-spring-security-to-allow-swagger-url-to-be-accessed-without-aut

 

How to configure Spring Security to allow Swagger URL to be accessed without authentication

My project has Spring Security. Main issue: Not able to access swagger URL at http://localhost:8080/api/v2/api-docs. It says Missing or invalid Authorization header. Screenshot of the browser win...

stackoverflow.com

 

'Spring' 카테고리의 다른 글

JavaConfig2[SwaggerConfig/WebMvcContextConfiguration]  (0) 2020.12.21
JAVAConfig[ApplicationConfig/DBConfig]  (0) 2020.12.01
[Spring] Container & Ioc & DI  (0) 2020.10.26
Spring Framework?  (0) 2020.10.26
Comments