通过Spring引导使用服务(内容类型= multipart / form-data; boundary =“ ==== errr123 ==”)'

时间:2019-08-16 11:50:23

标签: java spring-boot

我想使用请求正文包含“文本”的服务(内容类型= multipart / form-data; boundary =“ ==== out234 ==”')

请求正文-

`Content-Disposition: form-data; name="request";
Content-Type: application/xml; charset=UTF-8`
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <keyList>
        <listItem>
            <entryUri>44243513564125</entryUri>
        </listItem>
        <listItem>
            <entryUri>test:44243513564125@msg.tc.test.com</entryUri>
        </listItem>
    </keyList>`

`44243513564125` value will be set dynamically in below XML` tag `
`<entryUri>test:44243513564125@msg.tc.test.com</entryUri>`
`<entryUri>44243513564125</entryUri>`

那么如何使用restTemplate在春季启动中使用服务?

0 个答案:

没有答案