Home > Back-end >  Consult springcloud, this kind of variables in the form of writing on behalf of what?
Consult springcloud, this kind of variables in the form of writing on behalf of what?

Time:10-19

Spring:
Application:
Name: foo
Cloud:
Config:
Uri: ${} SPRING_CONFIG_URI: http://localhost:8888

CodePudding user response:

Are different in writing, this kind of use in the configuration class at the end of yml, with Spaces to indent at the corresponding levels, this is a kind of the tree structure method and the normal situation is first loaded yml, then loading the properties file, if the same configuration is present in the two files, finally will use the properties of the configuration, finally read the highest priority set,

CodePudding user response:

reference ` 4 k, 1/f, response:
is different in the history of writing, this kind of use in the configuration class at the end of yml, with Spaces to indent at the corresponding levels, this is a kind of the tree structure method and the normal situation is first loaded yml, then loading the properties file, if the same configuration is present in the two files, finally will use the properties of the configuration, finally read the highest priority set,

I mean, behind the uri that variables represent what meaning
  • Related