this explains the process :
so the process happens :
client asks for an authorization.
Application requests an Access Token by authenticating with the Authorization Server.
if it successfuly authorized ,the Authorization Server issues an Access Token and sends it to the Application.
the app asks for access by showing the token.
AuthorizationServerConfigurerAdapter class which implements AuthorizationServerConfigurer interface and use @EnableAuthorizationServer annotation.
@EnableResourceServer annotation and extend ResourceServerConfigurerAdapter class.
@EnableResourceServer