restTemplate post 字符串到java后台

客户端:

 RestTemplate restTemplate = new RestTemplate();
        String content = "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABIMDhAOCxIQDxAUExIVGy0dGxkZGzcoKiEtQjpFREA6Pz5IUWhYSE1iTj4/WntcYmtvdHZ0RleAiX9xiGhydHD/2wBDARMUFBsYGzUdHTVwSz9LcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHD/wAARCALuAtADASIAAhEBAxEB/8QAGgABAQEBAQEBAAAAAAAAAAAAAQACAwQFBv/EACwQAQEAAgICAgEEAwACAgMAAAABAhEDIRIxBEFRBRNhcSIygSMzQpFDscH/xAAXAQEBAQEAAAAAAAAAAAAAAAAAAQID/8QAFhEBAQEAAAAAAAAAAAAAAAAAAAER/9oADAMBAAIRAxEAPwDr6Qh2rI2NragEf9RFWyDIBiQ2CZvU0VUUR34o5YTdenCIpF6avplGgkAadMJ0xhHWRFMagjUBKIipJRBRpIEkgQNAFJAklQSBApICgQSSAoEEkgSSBJIEkgSBBIIEggMMEMApIENFANIoAkAKSBIoAKUoyDUIKiKCFKojm0MlFEz9tUUQA0KJvDJiGIj5otNZtbYWzPQ13KfQL6X2YrBTCzCgayqNgrR+B7axm7oV24474zpy45p1t6RqDKsr3Uir2pO1+GsYit4xuCNQCQkUlmNQEVDASSBIoGaovsgkkCBQIhAQkBSIJJAiCCSAFJAkgBSQJBAkkCSQIqICkARBBJIACASSBpAgPsgqM0RqsiFloUAvoigzWW2b7VED9AFYLDtCMwxWJUfLrOq1e4K0wjBpSCtU7H0UCqti0UVk1m0Go6cf+zlHfjnYsdsYap1FWWhfTPum1SIpkbxjMdJAakKWxTsbCQaxjbOLQIggkkCVQoGERAkgBSQJBClJAUEBIhESSAoEEkAKSBBIEiAKSBJIEkgISBEICkgCKBlFAoUgSSAUGgRBJRJQgyzk3WbAYisVX0qAgiJUJUfKq+x0WmVaYzvtr2BI9H6RVexats2gLRPf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pTsFv8AJhgn2Cvd1VpUygvRqutIUZeulFfZx7/4IOzG+PjueWpWcp4Wy+9gL/Pteux5bVvegO/yzb3s3LU0zsDL0dCTdPcBLanqr6B//9k=";
        MultiValueMap<String, Object> paramMap = new LinkedMultiValueMap<>();
        paramMap.add("faceInfo", content);
        Map map = restTemplate.postForObject("http://172.31.12.99:8001/kuangshi/faceVerification", paramMap, Map.class);

 

服务器端:

@RequestMapping(value = "faceVerification",method = RequestMethod.POST)
    public responseModel verification(String faceInfo){
        long stime =  System.currentTimeMillis();
        Base64.Decoder decoder = Base64.getDecoder();
        byte[] buffer1 = decoder.decode(faceInfo);
       Integer resultFace = faceVerification.verificationMain(buffer1);
        long etime =  System.currentTimeMillis();
        return responseResult.resResult(resultFace,etime-stime);
    }

 

posted @ 2021-03-06 22:12  一夜听春雨  阅读(352)  评论(0编辑  收藏  举报