I have a Spring Boot 2.0.0 / Kotlin / Gradle project.
I have a warning while injecting integers. I know the reason but don't know the fix. Is there a better way to inject these @Value
s?
Thanks
Warning:
\src\main\kotlin\com\tech\stands\PicturesDownloader.kt: (22, 31): This class shouldn't be used in Kotlin. Use kotlin.Int instead.
Code:
abstract class PicturesDownloader {
@Value("\${cache.adpics.concurrent}")
lateinit var MAX_CONCURRENT: Integer
@Value("\${cache.adpics.max}")
lateinit var MAX_AD_PICS: Integer
}
If there's no way to fix, is there way to suppress it?