@EnableResourceServer @EnableAuthorizationServer are deprecated? : <p>I am writing a simple application to test Oauth. But i see that both the annotations @EnableResourceServer @EnableAuthorizationServer were deprecated!</p>

<p>I don't find an alternative way to deal with it and I don't find any info anywhere.</p>

<p>What is the latest way to configure resource server and Auth server?</p>

<p>Thanks!</p>
