Dariusz Kuc
11/13/2019, 7:00 PMmyProps:
configs:
someName:
x: "foo"
y: 1
anotherName:
x: "bar"
y: 2
that can be mapped to something like
@ConstructorBinding
@ConfigurationProperties(prefix = "myProps")
data class MyProperties(val configs: Map<String, MyCustomProperties>)
data class MyCustomProperties(val x: String, val y: Int)
This seems to work fine and properties are loaded correctly in the application context but I don't get any auto-completion in the yml/properties files for MyCustomProperties
. Anyone knows whether it is possible to somehow provide the configuration metadata for the above that IntelliJ is able to understand?Dariusz Kuc
11/13/2019, 7:26 PM