Raysmond / SpringBlog

A simple blogging system implemented with Spring Boot + Hibernate + MySQL + Bootstrap4.
http://raysmond.com
BSD 3-Clause "New" or "Revised" License
1.64k stars 695 forks source link

没找到"/authenticate"这个链接的处理呢 #12

Closed OrdinaryYZH closed 7 years ago

OrdinaryYZH commented 8 years ago

SecurityConfig中

.formLogin()
                .loginPage("/signin")
                .permitAll()
                .failureUrl("/signin?error=1")
                .loginProcessingUrl("/authenticate")
                .and()

还有这里:

block content
  .row
    .col-md-4.col-md-offset-4.login-container
      .login-panel
        form.signin-form(method="post",action="/authenticate")
          input(type="hidden", name='_csrf', value='#{_csrf.token}')
          input.form-control(type="text",name="username",placeholder="Email")
          input.form-control(type="password",name="password",placeholder="Password")
          button.btn.btn-primary.btn-block(type="submit") Login

请问这个loginProcessingUrl("/authenticate")的处理方法是哪个呢?没找到

Raysmond commented 8 years ago

登录是Spring Security处理的,不用自己写。