springSecurity自定义用户登录页面时,常见的问题

来源:互联网 发布:u型耳夹淘宝 编辑:程序博客网 时间:2024/05/29 15:51

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