Could not resolve placeholder ‘my.name’ in value “${my.name}”
问题描述:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘helloController’: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘my.name’ in value “${my.name}”
原因分析:
这种一般都是配置文件错误
解决方案:
在配置文件中添加的属性的冒号后面加上个“空格”。
在运行: