We have an application which is using spring-security-oauth2:1.0. I was trying to change it to a newer version, spring-security-oauth2:2.0.7.RELEASE
spring-security-oauth2:1.0
spring-security-oauth2:2.0.7.RELEASE
I had the same problem and my application.yml had this line:
servlet: path: /auth
so the token address was: /auth/oauth/token
/auth/oauth/token
I remove the path from application.yml so the token path became:
/oauth/token
And everything works fine.
I hope this help