Spring Security放开swagger-ui.html资源路径过滤

			.antMatchers("/swagger-ui.html").permitAll() // 任意访问
			.antMatchers("/swagger-resources/**").permitAll()
			.antMatchers("/webjars/**").permitAll()
			.antMatchers("/v2/**").permitAll()
			.antMatchers("/api/**").permitAll()
posted @ 2020-07-15 18:51  程序员小召  阅读(1594)  评论(0编辑  收藏  举报