@Configuration @EnableAutoConfiguration @EnableOAuth2Client @RestController public class ClientApplication extends Object
Constructor and Description |
---|
ClientApplication() |
Modifier and Type | Method and Description |
---|---|
ClientTokenServices |
clientTokenServices() |
List<Map<String,?>> |
home() |
static void |
main(String[] args) |
protected OAuth2ProtectedResourceDetails |
resource() |
OAuth2RestOperations |
restTemplate() |
public static void main(String[] args)
@RequestMapping(value="/") public List<Map<String,?>> home()
@Bean @Scope(value="session", proxyMode=INTERFACES) public OAuth2RestOperations restTemplate()
@Bean public ClientTokenServices clientTokenServices()
@Bean protected OAuth2ProtectedResourceDetails resource()
Copyright © 2014. All rights reserved.