Spring-Security : Username is sent empty for login after upgrade to Spring-Security 4.1

后端 未结 2 1979
眼角桃花
眼角桃花 2021-01-12 03:28

I am working on a Spring-MVC based application in which we are using Spring-Security for login, authorization. We were using version 3.2.5 before and the upgrade was 4.1.1.

2条回答
  •  猫巷女王i
    2021-01-12 04:33

    In your securityApplicationContext.xml add username-parameter="j_username" password-parameter="j_password" as below:

    
    

提交回复
热议问题