我有一个spring config server
和spring config client
。在客户端中,我已设置spring.cloud.config.uri
为,http://localhost:8888
但我想将其更改为其他一些 uri,例如http://example.com:8888
在 Windows 中使用带有setx
. 所以我跑了
setx spring.cloud.config.uri "http://example.com:8888"
但是当我运行它时spring config client
,它仍在尝试从localhost
. 根据此链接,我spring.cloud.config.uri
的 inbootstrap.yml
应该被我设置的内容覆盖,OS environment
但它没有。请让我知道我在这里做错了什么。