how to use spring annotations like @Autowired or @Value in kotlin for primitive types? : <p>Autowiring a non-primitive with spring annotations like</p>

<pre><code>@Autowired
lateinit var metaDataService: MetaDataService
</code></pre>

<p>works.</p>

<p>But this doesn't work:</p>

<pre><code>@Value("\${cacheTimeSeconds}")
lateinit var cacheTimeSeconds: Int
</code></pre>

<p>with an error: </p>

<blockquote>
  <p>lateinit modifier is not allowed for primitive types.</p>
</blockquote>

<p>How to autowire primitve properties into kotlin classes?</p>
