JavaConfiguration for Spring 4.0 + Security 3.2 + j_spring_security_check

て烟熏妆下的殇ゞ 提交于 2019-11-28 23:42:57

In 3.2 version post parameters have changed from j_username to username and j_password to password. The login url has also changed from /j_spring_security_check to /login.

See this link for the explanation of why this change was implemented: http://docs.spring.io/spring-security/site/docs/3.2.0.RELEASE/reference/htmlsingle/#jc-httpsecurity. These are the changes:

  • GET /login renders the login page instead of /spring_security_login

  • POST /login authenticates the user instead of /j_spring_security_check

  • The username parameter defaults to username instead of j_username

  • The password parameter defaults to password instead of j_password

And this for an example of a login form: http://docs.spring.io/spring-security/site/docs/3.2.0.RELEASE/reference/htmlsingle/#jc-form

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!