spring-cloud-starter-config POST /env not working

爱⌒轻易说出口 提交于 2019-12-06 06:28:44

You need to run refresh after posting changes to env

curl -X POST http://localhost:8081/management/refresh

for me it only works with

curl -H "Content-Type: application/json" -X POST -d '{"name":"foo", "value":"bar"}' http://localhost:8081/management/env/

otherwise I get

"Missing parameters: value,name"

Maybe you need to set management.security.enabled:false to allow sending POST requests to /env endpoint.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!