SyntaxFix
Write A Post
Hire A Developer
Questions
(maybe) the easiest way without importing spring-boot.
restTemplate.getInterceptors().add(new BasicAuthorizationInterceptor("user", "password"));