Spring Security OAuth2 请求类型不能为空

Spring Security OAuth2  请求类型不能为空

问题描述:

图片说明
图片说明

secret参数传递不正确,参考
https://www.javaear.com/question/47392372.html

作为form data post过去,而不是作为url参数。
curl -u aClient:aSecret --data "grant_type=password&username=mauricio.coder&password=123" -X POST -H "Content-Type:application/x-www-form-urlencoded" http://localhost:9000/oauth/token