通过配置服务器使用具有特殊字符的值进行加密时,有人会遇到问题吗?
目前我正在做这个
curl http://localhost:8888/configser/config/encrypt -d eF345edo=
我还提到了这个https://github.com/spring-cloud/spring-cloud-config/issues/620并尝试如下
curl http://localhost:8888/configser/config/encrypt --data-urlencode eF345edo=
但仍未成功加密该'='符号。
提前致谢
最佳答案
最后我从spring cloud config的官方文档中得到了解决方法:(特殊字符请参见TIP区域) http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_encryption_and_decryption
curl命令得到最终结果:
curl -H "Content-Type: text/plain" http://localhost:8888/configser/config/encrypt -d eF345edo=
感谢@Bond - Java Bond
感谢大家的帮助。
关于Spring Config Server "="符号加密问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42106008/