启动报错
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'slymUrlController':
Unsatisfied dependency expressed through field 'qlrlxZjzlDzMap';
nested exception is org.springframework.beans.factory.BeanExpressionException:
Expression parsing failed;
nested exception is java.lang.IllegalStateException:
Cannot handle (65292) ','
中文翻译
org.springframework.beans.factory.UnsatisfiedDependencyException: 创建名为 'slymUrlController' 的 bean 时出错:
通过字段 'qlrlxZjzlDzMap' 表示的不满足的依赖关系;嵌套异常是 org.springframework.beans.factory.
BeanExpressionException: 表达式解析失败;嵌套异常是 java.lang.IllegalStateException:
无法处理 (65292) ',
原因
配置项的配置值是中文逗号,改为英文逗号就可以了。
@Value("#{${slym.qlrlxZjzlDzMap:null}}")
private Map<String, String> qlrlxZjzlDzMap;
标签:factory,springframework,逗号,报错,项值,qlrlxZjzlDzMap,org,bug,beans
From: https://blog.51cto.com/u_16375957/8926010