Most of the tutorials in order to implement authorization server guide to use @EnableResourceServer on the main method.
https://developer.okta.com/blog/2019/03/12/oauth2-