-
Notifications
You must be signed in to change notification settings - Fork 41.2k
UNIFORM #29582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It sounds like you're asking why binding a map key with special characters doesn't contain the actual value. Please see this section of the docs to see what needs to be done when binding to a map with special characters in the key. |
Thanks, It's worked for me:)
|
Given: ```yaml my: map: "/key": "value" ``` --- Before this commit: It's equivalent to ```yaml my: map: "[key]": "value" # "[/key]" is expected ``` Such counter-intuitive behavior will confuse developers, there are several reported issues, incomplete list: spring-projectsGH-41099 spring-projectsGH-29582 spring-projectsGH-24548 --- After this commit: ``` *************************** APPLICATION FAILED TO START *************************** Description: Failed to bind properties under 'my.map' to java.util.Map<java.lang.String, java.lang.String>: Reason: java.lang.IllegalArgumentException: Please rewrite key '/key' to '[/key]' and surround it with quotes if YAML is using Action: Update your application's configuration ``` --- See spring-projectsGH-42802
Given: ```yaml my: map: "/key": "value" ``` --- Before this commit: It's equivalent to ```yaml my: map: "[key]": "value" # "[/key]" is expected ``` Such counter-intuitive behavior will confuse developers, there are several reported issues, incomplete list: spring-projectsGH-41099 spring-projectsGH-29582 spring-projectsGH-24548 --- After this commit: ``` *************************** APPLICATION FAILED TO START *************************** Description: Failed to bind properties under 'my.map' to java.util.Map<java.lang.String, java.lang.String>: Reason: java.lang.IllegalArgumentException: Please rewrite key '/key' to '[/key]' and surround it with quotes if YAML is using Action: Update your application's configuration ``` --- See spring-projectsGH-42802
Given: ```yaml my: map: "/key": "value" ``` --- Before this commit: It's equivalent to ```yaml my: map: "[key]": "value" # "[/key]" is expected ``` Such counter-intuitive behavior will confuse developers, there are several reported issues, incomplete list: spring-projectsGH-41099 spring-projectsGH-29582 spring-projectsGH-24548 --- After this commit: ``` *************************** APPLICATION FAILED TO START *************************** Description: Failed to bind properties under 'my.map' to java.util.Map<java.lang.String, java.lang.String>: Reason: java.lang.IllegalArgumentException: Please rewrite key '/key' to '[/key]' and surround it with quotes if YAML is using Action: Update your application's configuration ``` --- See spring-projectsGH-42802
Given: ```yaml my: map: "/key": "value" ``` --- Before this commit: It's equivalent to ```yaml my: map: "[key]": "value" # "[/key]" is expected ``` Such counter-intuitive behavior will confuse developers, there are several reported issues, incomplete list: spring-projectsGH-41099 spring-projectsGH-29582 spring-projectsGH-24548 --- After this commit: ``` *************************** APPLICATION FAILED TO START *************************** Description: Failed to bind properties under 'my.map' to java.util.Map<java.lang.String, java.lang.String>: Reason: java.lang.IllegalArgumentException: Please rewrite key '/key' to '[/key]' and surround it with quotes if YAML is using Action: Update your application's configuration ``` --- See spring-projectsGH-42802
Uh oh!
There was an error while loading. Please reload this page.
===> why "/AAA/*1" ==> AAA ?
The text was updated successfully, but these errors were encountered: