@Override
 public void configure(ResourceServerSecurityConfigurer resources) {
   resources
       .resourceId(SENS_RESOURCE_ID)
       .stateless(
           false); // .authenticationEntryPoint(new RestAuthenticationEntryPoint());
                   // //.stateless(false);
 }
    @Override
    public void configure(ResourceServerSecurityConfigurer resources) {
      RemoteTokenServices tokenService = new RemoteTokenServices();
      tokenService.setClientId("clientauthcode");
      tokenService.setClientSecret("123456");
      tokenService.setCheckTokenEndpointUrl("http://localhost:10000/oauth/check_token");

      resources.resourceId(RESOURCE_ID).tokenServices(tokenService);
    }
 @Override
 public void configure(ResourceServerSecurityConfigurer resources) throws Exception {
   if (this.config.getId() != null) {
     resources.resourceId(this.config.getId());
   }
 }
 @Override
 public void configure(ResourceServerSecurityConfigurer resources) throws Exception {
   resources.resourceId("my_resource_id");
 }
 @Override
 public void configure(ResourceServerSecurityConfigurer resources) throws Exception {
   resources.resourceId(RESOURCE_ID);
 }
 @Override
 public void configure(ResourceServerSecurityConfigurer resources) {
   resources.resourceId("TierraRestAPI");
 }
 @Override
 public void configure(ResourceServerSecurityConfigurer resources) throws Exception {
   resources.resourceId("settings-services").tokenServices(resourceTokenServices());
 }
 @Override
 public void configure(ResourceServerSecurityConfigurer resources) {
   resources.resourceId(RESOURCE_ID).stateless(true);
 }