当前位置:Gxlcms > 数据库问题 > How to configure Spring Security to allow Swagger URL to be accessed without authentication

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

时间:2021-07-01 10:21:17 帮助过:26人阅读

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

标签:ext   ant   access   exce   throws   xtend   config   oid   rri   

人气教程排行