简体   繁体   中英

How to replicate Postman POST request using java

I am trying to replicate Postman POST type request in java. I am sending a file with raw product data to datahub and processing it. According to requirement it should be replicated using a cronjob.

Any one help please.

If you are using spring framework you can use spring rest client for consuming RESTful service. Good sample is here .

If you are using java, you can use JAX-RS library, sample application here .

从 DataHub 发布后应该会生成一个 Impex 文件,该文件将通过 cronjob 导入。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM