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

Posted 沧海一滴

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了How to configure Spring Security to allow Swagger URL to be accessed without authentication相关的知识,希望对你有一定的参考价值。

@Configuration
public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {

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

}

 

 

 

http://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的主要内容,如果未能解决你的问题,请参考以下文章

How to configure CDB in Qt Creator(使用VC调试器)

How to find configuration file MySQL uses?(转)

How to configure security of ActiveMQ ?

How to configure postfix to send email via Gmail

How to configure postfix to send email via Gmail

How to configure locales to Unicode in a Docker Ubuntu 14.04 container?