title: Spring boot + Jpa queries from properties file
body: <p>I am working on spring boot + JPA repository methods. here is my simple query method.</p>
  
  <pre><code>@Query("SELECT g FROM Greeting g where g.text = :text")
  Greeting findGreetingByText(@Param("text") String sText);
  </code></pre>
  
  <p>Is there any way we can configure this query values in properties file instead of hardcode like above method.</p>
  
  <p>for example:</p>
  
  <pre><code>@Query("Greet.SelectQuery")
   Greeting findGreetingByText(@Param("text") String sText);
  </code></pre>
  
  <p>//application.properties</p>
  
  <pre><code>Greet.SelectQuery=SELECT g FROM Greeting g where g.text = :text
  </code></pre>
  
  <p>Thank you.</p>