【发布时间】:2015-04-15 09:07:50
【问题描述】:
如何在 Spring 中使用 RestTemplate 来执行这样的请求?
curl --key test.key --cert test.pem --cacert testca.pem -k https://example.com
【问题讨论】:
如何在 Spring 中使用 RestTemplate 来执行这样的请求?
curl --key test.key --cert test.pem --cacert testca.pem -k https://example.com
【问题讨论】:
我相信您可以将它们作为标题发送。有一个名为 HttpEntity 的类,可用于将标头和请求发送到 REST 模板。如需更多参考,请找到以下链接
【讨论】: