We have spring security oauth2 based application. Every thing is working fine. But i am failed to change default token endpoint from \"/oauth/token\" to \"/external/oauth/to
You are making this harder than what it should be, it's actually very simple ! (Notice I'm using "oauth2:" instead of "oauth:" as the XML tag)
Go to your security-context.xml
Find "oauth2:authorization-server" in the above file.
Just add token-endpoint-url="/oauth/whatever_you_like"
token-endpoint-url="/oauth/whatever_you_like"