这是配置类。这里允许所有网址:
@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();}}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)