Spring Security 3- How to customize username/password parameters?

前端 未结 2 619
挽巷
挽巷 2020-12-31 18:09

How do you customize the UsernamePasswordAuthenticationFilter usernameParameter (j_username) and passwordParameter (j_password) properties when using the

2条回答
  •  春和景丽
    2020-12-31 18:30

    Filter is configured using form-login element, but that element doesn't provide ability to set custom names for username and password.

    You can configure directly, as describe in Spring Reference

提交回复
热议问题