title: How to inject RestTemplate
body: <p>I am not using xml configurations to define beans. Instead using component scanning and autowire to define and inject dependencies. 
  RestTemplate is part of springframework. How can I inject this class ?</p>