Skip to content

项目里配置是如何动态映射nacos里的配置的? #247

Answered by zuihou
zqb666 asked this question in 02.提问
Discussion options

You must be logged in to vote

问题1:
17-20行中的 ${xxx} 读取的是项目配置文件中定义的 xxx 属性。
也就是说xxx定义在本文件中 或者 其他配置文件中,只要能被项目正常加载,都能识别。

这个是spring boot 提供的功能。

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zqb666
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by zqb666
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants