这是配置类。这里允许所有网址:
@Configuration@ConditionalOnProperty(value = "app.security.basic.enabled", havingValue = "false")public class WebSecurityConfig extends WebSecurityConfigurerAdapter{@Overrideprotected void configure(HttpSecurity http) throws Exception { http.csrf().disable() .authorizeRequests() .antMatchers("/**").permitAll() .anyRequest().authenticated();}}


