protected void configure(HttpSecurity http) throws Exception { // http.httpBasic(). http.formLogin() .loginPage("/imooc-signIn.html") .and() .authorizeRequests() .anyRequest() .authenticated(); }没有给 imooc-signIn.html 设置权限,让其通过,否则自己也需要权限,一直跳,死循环了
protected void configure(HttpSecurity http) throws Exception { // http.httpBasic(). http.formLogin() .loginPage("/imooc-signIn.html") .and() .authorizeRequests() .anyRequest() .authenticated(); }没有给 imooc-signIn.html 设置权限,让其通过,否则自己也需要权限,一直跳,死循环了