EnableResourceServer is deprecated code example
Example: @EnableAuthorizationServer deprecated
@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@Import(value={AuthorizationServerEndpointsConfiguration.class,AuthorizationServerSecurityConfiguration.class})
@Deprecated
public @interface EnableAuthorizationServer