hello! I'm trying to create configuration property...
# spring
d
hello! I'm trying to create configuration property metadata (https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-configuration-metadata.html) for a map of objects, e.g.
Copy code
myProps:
  configs:
    someName:
      x: "foo"
      y: 1
    anotherName:
      x: "bar"
      y: 2
that can be mapped to something like
Copy code
@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?