I tried several versions but none work. What's the correct way to have this injected as a map:
application.yml
alias:
name: title
desc: description
content: body
I tried using @Value
annotation:
NamingService.kt
@Value("\${alias}")
private var alias: Map<String, String> = emptyMap()
I get:
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'alias' in value "${alias}"
kotlinVersion = '1.2.31'; springBootVersion = '2.0.1.RELEASE'