I am working with the OAuth2 Authorization server & Resource server. For web configuration, I am extending WebMvcConfigurationSupport class and using @Ena
WebMvcConfigurationSupport
@Ena