最近在研究spring cloud oauth2,通过百度,重写了/oauth/token接口,正常情况下可以获取到自定义的返回格式。
但是当client_id或者client_secret错误的时候没办法返回自定义错误,始终是
{ "error": "invalid_client", "error_description": "Bad client credentials" }
求此题解法
https://www.cnblogs.com/bndong/p/10275430.html