首页 > 数据库技术 > 详细

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

时间:2017-01-18 01:14:57      阅读:437      评论:0      收藏:0      [点我收藏+]
@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

原文:http://www.cnblogs.com/softidea/p/6295115.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!