Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR BASIC

resttemplate with basic authentication

HttpEntity<String> request = new HttpEntity<String>(headers);
ResponseEntity<Account> response = restTemplate.exchange(url, HttpMethod.GET, request, Account.class);
Account account = response.getBody();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #resttemplate #basic #authentication
ADD COMMENT
Topic
Name
1+8 =