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