.antMatchers("/swagger-ui.html").permitAll() // 任意访问
.antMatchers("/swagger-resources/**").permitAll()
.antMatchers("/webjars/**").permitAll()
.antMatchers("/v2/**").permitAll()
.antMatchers("/api/**").permitAll()
Spring Security放开swagger-ui.html资源路径过滤
最新推荐文章于 2024-02-27 15:06:28 发布