title: Hard coding @PathVariable in Java
body: <p>I am new to java and am still trying to wrap around my mind around many of its concepts.</p>
  
  <p>Right now in my application that pulls in data from an external api. I am trying to hardcode a path, for now, to make sure that I am getting the response I am expecting (this is a temporary interaction as eventually, I want the app to be stateless. If I pass a hardcoded value for @PathVariable in my controller with the variable defined above the code doesn't read the value. </p>
  
  <p>Where should I be placing the hard-coded value and am I defining it the correct way? </p>
  
  <p>Code:</p>
  
  <pre><code>String identificationCode ="abcd";
  @RequestMapping(value ="/download/{identificationCode}", method = RequestMethod.GET)
  String downloadDocument(@PathVariable(value="identificationCode") String identificationCode) {
       .
       .
       .
  }
  </code></pre>