您以JSON(内容类型)的形式发送
username和
password参数
application/json,但必须发送URL编码的参数(内容类型
application/x-www-form-urlenpred),请参阅Spring Security
Reference:
4 用户名必须作为名为username的HTTP参数存在
5 密码必须作为名为password的HTTP参数存在

您以JSON(内容类型)的形式发送
username和
password参数
application/json,但必须发送URL编码的参数(内容类型
application/x-www-form-urlenpred),请参阅Spring Security
4 用户名必须作为名为username的HTTP参数存在
5 密码必须作为名为password的HTTP参数存在