title: Spring-Data Couchbase - How to set TTL to document from property file
body: <p>I am trying to set a TTL for document, I've learned that by putting <code>@Document(expiry = x sec)</code> works. But is there a way to read the value from a property file?</p>
  
  <p>Here's my dependency:</p>
  
  <pre><code>    &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;2.1.3.RELEASE&lt;/version&gt;
          &lt;relativePath /&gt;
      &lt;/parent&gt;
  ...
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
          &lt;artifactId&gt;spring-data-couchbase&lt;/artifactId&gt;
      &lt;/dependency&gt;
  </code></pre>