title: How to correctly specify a default value in the Spring @Value annotation?
body: <p>Initially, I have the following spec:</p>
  
  <pre><code>@Value("#{props.isFPL}")
  private boolean isFPL=false;
  </code></pre>
  
  <p>This works fine correctly getting the value from the property file:</p>
  
  <pre><code>isFPL = true
  </code></pre>
  
  <p>However, the following expression with default results in the error:</p>
  
  <pre><code>@Value("#{props.isFPL:false}")
  private boolean isFPL=false;
  </code></pre>
  
  <p><strong>Expression parsing failed; nested exception is org.springframework.expression.spel.SpelParseException: EL1041E:(pos 28): After parsing a valid expression, there is still more data in the expression: 'colon(:)'</strong></p>
  
  <p>I also tried to use $ instead of #.  </p>
  
  <pre><code>@Value("${props.isFPL:true}")
  private boolean isFPL=false;
  </code></pre>
  
  <p>Then the default value in annotation works fine but I did not get the correct value from the Properties file:</p>