-
Notifications
You must be signed in to change notification settings - Fork 125
Properties/YAML Editors and Map Keys #292
Comments
I think you can just write:
Or doesn't that work? |
BTW: I think if you are going to use the '[]' notation, which is kind of logical here, I aggree, I think you probably shouldn't add the extra '.'. So like this:
But I checked and STS also doesn't 'approve' of that notation. I think it is because we are assuming the notation with '[]' is meant for indexing with numbers inside of 'array-like' constructs. If that was ever really the way it worked (?), at least it looks like this is no longer really the case, so this is definitely a bug we should fix. |
Unfortunately, no; Boot strips out the |
Looks like
|
I just tested it and boot doesn't care whether or not there is a dot before the logging:
level:
org.springframework.kafka.listener[KafkaMessageListenerContainer$ListenerConsumer]: info works too. and this
|
The STS 'parser' for these '.' and '[]' things probably does care... If I remember correctly. So that's another bug. |
I've asked on the boot doco issue: spring-projects/spring-boot#13506 (comment) |
The boot team confirmed that both syntaxes are supported (with/without |
See spring-projects/spring-boot#13555
This syntax is allowed:
and is required when the logger is for an innner class (contains
$
).However, STS flags this as invalid syntax
Also, similar keys in YAML are indicated in black:
The text was updated successfully, but these errors were encountered: