配置文件
application:name: nacos-test-acloud:nacos:#discovery:# server-addr: localhost:8848# username: nacos# password: nacos# service: nacos-test-aconfig:server-addr: localhost:8848username: nacospassword: nacosprefix: nacos-test-afile-extension: ymlserver:port: 8086
运行报错Error creating bean with name ‘testController’: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘hero.name’ in value “${hero.name}”
原因,配置文件的编码格式不同
解决方法,