配置文件变量
integer={one:"1", two:"2", three:"3"}
绑定参数时
@Value("#{${integer}}")
private Map<String, String> params;
网上找了好多都是这么写的,但是报错
Expression parsing failed; nested exception is org.springframework.expression.spel.SpelParseException: EL1043E:(pos 4): Unexpected token. Expected 'rcurly(})' but was 'colon(:)'
有大佬知道怎么解决吗?