The task is to fill list of pairs from application.yml file. So in my kotlin code I've got something like this:
@Component
class LocalImageStore(
@Value("\${images.thumbnails_sizes}")
private val thumbnailsSizes: List<Pair<Int, Int>>
) : ImageStore
{
// unrelated code here
}
Inside of application.yml file I've got following:
images:
dir:
path: images
thumbnails_sizes:
- [150, 150]
- [200, 200]
- [400, 450]
So I expected that my thumbnailsSizes will contain the list of pairs from the .yml file, but all I see is error message Could not resolve placeholder 'images.thumbnails_sizes' in value "${images.thumbnails_sizes}"n
I didn't find the way I can store list of pairs in .yml file, so please advise how to do it in a right way.