| | |
| | | import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; |
| | | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 配置Spring Security |
| | | */ |
| | |
| | | .antMatchers("/swagger-resources/**") |
| | | .antMatchers("/v3/api-docs/**") |
| | | .antMatchers("/js/**"); |
| | | List<String> interfaceAuthenticationExcludes = userSetup.getInterfaceAuthenticationExcludes(); |
| | | System.out.println(interfaceAuthenticationExcludes.size()); |
| | | for (String interfaceAuthenticationExclude : interfaceAuthenticationExcludes) { |
| | | web.ignoring().antMatchers(interfaceAuthenticationExclude); |
| | | } |
| | | } |
| | | } |
| | | |