配置文件

application:

name: nacos-test-a

cloud:

nacos:

# discovery:

# server-addr: localhost:8848

# username: nacos

# password: nacos

# service: nacos-test-a

config:

server-addr: localhost:8848

username: nacos

password: nacos

prefix: nacos-test-a

file-extension: yml

server:

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}” 原因,配置文件的编码格式不同 解决方法,

文章来源

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: