springsecurity中的config设置放行以下资源即可
web.ignoring().antMatchers("/swagger/**")
.antMatchers("/swagger-ui.html")
.antMatchers("/webjars/**")
.antMatchers("/v2/**")
.antMatchers("/v2/api-docs-ext/**")
.antMatchers("/swagger-resources/**")
.antMatchers("/doc.html");
本文介绍如何在SpringSecurity中配置放行Swagger相关路径,确保API文档和UI可以正常访问,涉及的具体路径包括:/swagger/**、/swagger-ui.html、/webjars/**等。
2623

被折叠的 条评论
为什么被折叠?



