title: How to read properties file in Controller using annotations only? Spring MVC
body: <p>How to read properties file in Controller using annotations only?</p>
  
  <p>Properties file contains (env.properties):</p>
  
  <pre><code> document.portal.path=http://flana.gost.com/service
  </code></pre>
  
  <p>Spring Controller:</p>
  
  <pre><code>@Controller
  @RequestMapping("/kap/*")
  @SessionAttributes({"user", "KapForm", "activity"})
  public class KapController {
  @Value("${document.portal.path}")
  private String URL; 
  }
  </code></pre>
  
  <p>Nothing else is done. In XML, we use to use placeholder, which i am not getting how to introduce in it. So I am getting exception.</p>
  
  <pre><code>Injection of autowired dependencies failed; 
  </code></pre>