Map vars = Collections.singletonMap("hotel", "42"); String result = restTemplate.getForObject( "https://example.com/hotels/{hotel}/rooms/{hotel}", String.class, vars); https://docs.spring.io/spring-framework/docs/current/reference/html/integration.html#rest-client-access Integration The Spring Framework provides abstractions for the asynchronous execution and scheduling of tasks with the TaskExe..