I am using OAuth2 with Spring Security to secure my APIs. Below is my code:
Authorization Server
@Configuration @EnableAuthorizationServer public class Aut