SpringSecurity 过滤Swagger

SpringSecurity继承的是 extends WebSecurityConfigurerAdapter
重写configure(WebSecurity web)
 

    @Override
    public void configure(WebSecurity web) throws Exception {
        web.ignoring().antMatchers("/v2/api-docs", "/configuration/ui", "/swagger-resources", "/configuration/security", "/swagger-ui.html", "/webjars/**");
    }

你可能感兴趣的:(SpringBoot,spring,boot)