首先,调用
super.configure(http);将覆盖你之前拥有的整个配置。
尝试以下方法:
http .authorizeRequests() .anyRequest().authenticated() .and() .formLogin() .and() .httpBasic().disable();

首先,调用
super.configure(http);将覆盖你之前拥有的整个配置。
尝试以下方法:
http .authorizeRequests() .anyRequest().authenticated() .and() .formLogin() .and() .httpBasic().disable();