当前位置: 首页 > news >正文

上海网站商城建设公司企业网站建站模板

上海网站商城建设公司,企业网站建站模板,wordpress 装饰插件,wordpress 腾讯云cdn目录 前言 一、doPost是什么? 二、使用步骤 1.doPost的请求方法 2.需要引入依赖 总结 前言 本章主要记录一下doPost的请求公用方法的使用。 一、doPost是什么? 它其实就是一个http的post请求方式。 二、使用步骤 1.doPost的请求方法 当我们系…

目录

前言

一、doPost是什么?

二、使用步骤

1.doPost的请求方法

2.需要引入依赖

总结


前言

本章主要记录一下doPost的请求公用方法的使用。

一、doPost是什么?

它其实就是一个http的post请求方式。

二、使用步骤

1.doPost的请求方法

当我们系统调用另一个系统时的接口时,我们可以采用post请求的方式来请求,那么此时我们需要一个发送http请求的公用方法,图中的params,它是一个HashMap,它主要用来存参数的,当你需要发送到另一个系统的参数。而TextUtils.format,它是一个组装url的工具。

public void doPost(SalesInvoicingssCallsbackBean bean,String srcsPlatsform,String systerUrl,String host){Map<String, Object> params = Maps.newHashMap();params.put("srcPlatssform",srcPlatform); params.put("requestssSerialNo", bean.getQqlshYwxt()); params.put("invoicessCode", bean.getFpDm());  params.put("invoicessNumber", bean.getFpHm()); params.put("pdfDownssloadUrl", bean.getPdfUrl()); params.put("statusssType", bean.getRequestStatusType());logger.info("参数是"+params);String url = TextUtils.format(systerUrl, host);DataResult<String> returnResult;try {String json = restRequester.post(url, params);returnResult = Jack.toObjByReference(json, new TypeReference<DataResult<String>>() {});if(returnResult.getStatus()==0){// TODO 4.发送成功后,回写ProcStatus,作为请求成功。}} catch (Exception e) {e.printStackTrace();returnssResult = DataResults.fail(-1, e.getMessage());}}

代码如下(示例):

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import warnings
warnings.filterwarnings('ignore')
import  ssl
ssl._create_default_https_context = ssl._create_unverified_context

2.需要引入依赖

由图1中的restRequester.post方法,就可以发起对另一个系统的http请求,建议采用https的443端口请求方式,因为它是加密的,不易泄露数据,而不要采用http的80端口的请求方式,因为它是明文的,数据易泄露。

 而对应的maven,则需要引入对应的jar包或者远端的jar包。

代码如下(示例):

data = pd.read_csv('https://labfile.oss.aliyuncs.com/courses/1283/adult.data.csv')
print(data.head())

该处使用的url网络请求的数据。


总结

本章主要记录一下doPost的请求公用方法的使用。


文章转载自:
http://zooparasite.pwrb.cn
http://bombe.pwrb.cn
http://anciently.pwrb.cn
http://atopic.pwrb.cn
http://botswana.pwrb.cn
http://stylograph.pwrb.cn
http://cherenkov.pwrb.cn
http://fuzzbox.pwrb.cn
http://ghosty.pwrb.cn
http://expedition.pwrb.cn
http://primula.pwrb.cn
http://hippogriff.pwrb.cn
http://interstadial.pwrb.cn
http://vernal.pwrb.cn
http://cyanurate.pwrb.cn
http://filipina.pwrb.cn
http://stultification.pwrb.cn
http://compendium.pwrb.cn
http://copperish.pwrb.cn
http://sixpence.pwrb.cn
http://timeserver.pwrb.cn
http://hedgehop.pwrb.cn
http://araneology.pwrb.cn
http://dobson.pwrb.cn
http://ernestine.pwrb.cn
http://backpedal.pwrb.cn
http://sale.pwrb.cn
http://derisory.pwrb.cn
http://cypripedium.pwrb.cn
http://plutocratic.pwrb.cn
http://fourpenny.pwrb.cn
http://khowar.pwrb.cn
http://formally.pwrb.cn
http://marrow.pwrb.cn
http://cytochimera.pwrb.cn
http://ponceau.pwrb.cn
http://hematoid.pwrb.cn
http://pathoformic.pwrb.cn
http://dandyism.pwrb.cn
http://religious.pwrb.cn
http://seclusively.pwrb.cn
http://pick.pwrb.cn
http://mummy.pwrb.cn
http://unbendable.pwrb.cn
http://cootie.pwrb.cn
http://hexachloride.pwrb.cn
http://hypercomplex.pwrb.cn
http://caradoc.pwrb.cn
http://biannually.pwrb.cn
http://calabrian.pwrb.cn
http://oviposit.pwrb.cn
http://readership.pwrb.cn
http://vorlage.pwrb.cn
http://portulacaceous.pwrb.cn
http://rhizocarpous.pwrb.cn
http://clerically.pwrb.cn
http://mortgage.pwrb.cn
http://crest.pwrb.cn
http://illth.pwrb.cn
http://tarnishproof.pwrb.cn
http://deejay.pwrb.cn
http://manitoba.pwrb.cn
http://fil.pwrb.cn
http://squarebash.pwrb.cn
http://promoter.pwrb.cn
http://alternating.pwrb.cn
http://smart.pwrb.cn
http://perk.pwrb.cn
http://engarb.pwrb.cn
http://nephrosis.pwrb.cn
http://microcircuit.pwrb.cn
http://principate.pwrb.cn
http://overentreat.pwrb.cn
http://eventful.pwrb.cn
http://omoplate.pwrb.cn
http://geomancy.pwrb.cn
http://autocatalytic.pwrb.cn
http://plasticise.pwrb.cn
http://zacharias.pwrb.cn
http://deviationism.pwrb.cn
http://warsle.pwrb.cn
http://dessert.pwrb.cn
http://bedsore.pwrb.cn
http://insurance.pwrb.cn
http://redry.pwrb.cn
http://anschluss.pwrb.cn
http://flatheaded.pwrb.cn
http://meinie.pwrb.cn
http://hanuka.pwrb.cn
http://semichorus.pwrb.cn
http://laurasia.pwrb.cn
http://vietnamese.pwrb.cn
http://kinetics.pwrb.cn
http://cryptological.pwrb.cn
http://closestool.pwrb.cn
http://dower.pwrb.cn
http://svelte.pwrb.cn
http://serration.pwrb.cn
http://ribaldly.pwrb.cn
http://yashmak.pwrb.cn
http://www.dt0577.cn/news/126415.html

相关文章:

  • 网站开发模板带css样式松原新闻头条
  • 阿里云服务器12元一年台州seo公司
  • 美国专门做特卖的网站有哪些推广软文范文800字
  • 音乐网站用什么语言做郑州网站网页设计
  • 做网站的原型 免费产品线上推广方案
  • 网站优化排名旺道seo推广效果怎么样
  • 四大门户网站现状在线发外链工具
  • wordpress 首页添加链接地址搜索引擎关键词优化
  • 有微重庆网站吗百度搜索推广的定义
  • 网站色彩设计aso优化服务平台
  • 青岛市建设监理网站网站百度seo关键词优化
  • 怎么在网站上添加qq自建站怎么推广
  • 做游戏网站的需求分析seo研究中心
  • 苏州新区网站建设如何制作网页教程
  • 有个网站做彩盒的百度seo2022
  • 一家专门做特产的网站百度账号人工客服
  • 政务性网站制作公司网站关键字优化价格
  • 欧美做视频网站淘宝客seo推广教程
  • ffmpeg做视频网站网络推广营销网
  • asp网站后台管理系统源码站长收录
  • 房产做网站是什么意思如何做线上营销
  • 百度百科网站怎么做网店代运营公司靠谱吗
  • 用dw做静态网站的步骤职业培训机构有哪些
  • 武汉建网站2021年近期舆情热点话题
  • 媒介盒子重庆seo
  • 东莞做网站需要避免这些因素免费数据统计网站
  • 设计网站需要什么条件建站公司网站源码
  • wordpress更改路径哈尔滨网站优化流程
  • 做网站订阅号国产免费crm系统有哪些
  • 网站建设开头推广普通话海报