@Configuration
@ConfigurationProperties("app")
public class AppConfig implements InitializingBean {
private Map<String, String> mapping;
public Map<String, String> getMapping() {
return mapping;
}
public void setMapping(Map<String, String> mapping) {
this.mapping = mapping;
}
app:
mapping:
/AAA/*1: "/*AAAAAAAAAAA*/"
===> why "/AAA/*1" ==> AAA ?
Comment From: mbhave
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.
Comment From: qxo
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:)
app:
mapping:
"[/AAA/*1]": "/*AAAAAAAAAAA*/"
"[/key2]": "value2"