Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用RestTemplate发送授权证书_Java_Spring_Maven_Curl - Fatal编程技术网

Java 使用RestTemplate发送授权证书

Java 使用RestTemplate发送授权证书,java,spring,maven,curl,Java,Spring,Maven,Curl,如何在Spring中使用RestTemplate来执行这样的请求 curl --key test.key --cert test.pem --cacert testca.pem -k https://example.com 我相信你可以把它们作为标题发送。有一个名为HttpEntity的类,可用于向REST模板发送头和请求。如需更多参考,请查看以下链接

如何在Spring中使用RestTemplate来执行这样的请求

curl --key test.key --cert test.pem --cacert testca.pem -k https://example.com

我相信你可以把它们作为标题发送。有一个名为HttpEntity的类,可用于向REST模板发送头和请求。如需更多参考,请查看以下链接