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

wordpress 博客登陆seo属于什么

wordpress 博客登陆,seo属于什么,wordpress 回复显示,十大利润最高的实体店一、前言 在java开发中经常需要造数据进行测试接口,这里记录一下常用的通过造数据测试接口的方法。 二、一般的接口传参方式 1、接口的方式最好是使用JSON或者map的方式,这样的好处是传参可以灵活伸缩,返回的结果也最好是JSON或者map的方式…

一、前言

在java开发中经常需要造数据进行测试接口,这里记录一下常用的通过造数据测试接口的方法。

 

二、一般的接口传参方式

1、接口的方式最好是使用JSON或者map的方式,这样的好处是传参可以灵活伸缩,返回的结果也最好是JSON或者map的方式

    /*** 获取授权访问令牌accessToken* @param params* @return*/@PostMapping("token")JSONObject getAccessToken(@RequestBody Map<String, Object> params);

2、组装参数方法

	/*** 组装获取Access Token参数*/public Map<String, Object> getACTokenParam() {Map<String, Object> map = new HashMap<>();String timestamp = DateTimeUtils.getDateStr();client_secret+timestamp+client_id+username+password+grant_type+scope+client_secretString clientSecM = MD5Util.getMd5(clientSecret).toUpperCase();String passwordM = MD5Util.getMd5(password).toUpperCase();String subString = (clientSecM + timestamp + clientId + userName + passwordM + grantType + scope + clientSecM);String sign = MD5Util.getMd5(subString).toUpperCase();map.put("grant_type", grantType);map.put("client_id", clientId);map.put("timestamp", timestamp);map.put("username", userName);map.put("password", passwordM);map.put("scope", scope);map.put("sign", sign);return map;}

3.常见的造数据

随机生成4位数

    Random rand = new Random();
    int randomNum = rand.nextInt(9000) + 1000;

休眠

//休眠3秒
 Thread.sleep(3000);

获取guid

    /**
     * 获取guid
     * 
     * @return
     */
    public static String getGuid() {
        return UUID.randomUUID().toString().replaceAll("\\-", "");
    }
 

。。

	/*** 获取guid* * @return*/public static String getGuid() {return UUID.randomUUID().toString().replaceAll("\\-", "");}

三、示例

	/*** 测试用户* @throws Exception*/public void testUser() throws Exception {// 创建一个ObjectMapper对象ObjectMapper mapper = new ObjectMapper();// 创建一个Json对象ObjectNode json = mapper.createObjectNode();URL url = new URL("http://127.0.0.1/tourist-contract/register");for (int i = 0; i < 500; i++) {Random rand = new Random();int randomNum = rand.nextInt(9000) + 1000;json.put("Phone", "1308111"+randomNum);json.put("openID", "user_20000" + i);json.put("UserName", "test_" + i);json.put("unifyID", "test_" + i);json.put("userID", "test_" + i);json.put("reservedField", "reservedField");ObjectNode json1 = mapper.createObjectNode();json1.put("sender", json);json1.put("mark", "travel");log.info("注册用户上链参数json:"+json1);//休眠3秒Thread.sleep(3000);// 接口调用ltApi(json1, url, "1308111"+randomNum, "用户注册", "新增");}}


文章转载自:
http://multiresistant.fcxt.cn
http://artistical.fcxt.cn
http://adolesce.fcxt.cn
http://dialectologist.fcxt.cn
http://ration.fcxt.cn
http://unscarred.fcxt.cn
http://lienic.fcxt.cn
http://crownling.fcxt.cn
http://mannered.fcxt.cn
http://carminative.fcxt.cn
http://vilipend.fcxt.cn
http://zircon.fcxt.cn
http://hoer.fcxt.cn
http://rabbanite.fcxt.cn
http://assiduity.fcxt.cn
http://gondwanian.fcxt.cn
http://pentose.fcxt.cn
http://autoindex.fcxt.cn
http://pertinence.fcxt.cn
http://spasmodic.fcxt.cn
http://infundibula.fcxt.cn
http://juan.fcxt.cn
http://agroecosystem.fcxt.cn
http://overripe.fcxt.cn
http://allocation.fcxt.cn
http://renminbi.fcxt.cn
http://mistletoe.fcxt.cn
http://scaliness.fcxt.cn
http://quickstep.fcxt.cn
http://haploidy.fcxt.cn
http://cellophane.fcxt.cn
http://bacteriolysin.fcxt.cn
http://phineas.fcxt.cn
http://penultimate.fcxt.cn
http://scap.fcxt.cn
http://xylometer.fcxt.cn
http://granolithic.fcxt.cn
http://pacificism.fcxt.cn
http://hypertext.fcxt.cn
http://orthohydrogen.fcxt.cn
http://falsism.fcxt.cn
http://rfe.fcxt.cn
http://pravda.fcxt.cn
http://netsuke.fcxt.cn
http://shealing.fcxt.cn
http://detectivism.fcxt.cn
http://anhedonia.fcxt.cn
http://warning.fcxt.cn
http://anathematize.fcxt.cn
http://liber.fcxt.cn
http://disenroll.fcxt.cn
http://appendicectomy.fcxt.cn
http://flivver.fcxt.cn
http://sistern.fcxt.cn
http://chinnampo.fcxt.cn
http://disgregate.fcxt.cn
http://selvedge.fcxt.cn
http://retold.fcxt.cn
http://punctuative.fcxt.cn
http://northabout.fcxt.cn
http://correspondent.fcxt.cn
http://capper.fcxt.cn
http://aerobus.fcxt.cn
http://automat.fcxt.cn
http://aposelenium.fcxt.cn
http://smash.fcxt.cn
http://falconry.fcxt.cn
http://doctrinairism.fcxt.cn
http://stirpiculture.fcxt.cn
http://hemihedral.fcxt.cn
http://goober.fcxt.cn
http://purify.fcxt.cn
http://cautery.fcxt.cn
http://inspect.fcxt.cn
http://aerophotography.fcxt.cn
http://elbowroom.fcxt.cn
http://muleta.fcxt.cn
http://anility.fcxt.cn
http://mompei.fcxt.cn
http://rollman.fcxt.cn
http://monachize.fcxt.cn
http://laky.fcxt.cn
http://botanist.fcxt.cn
http://mrs.fcxt.cn
http://outflung.fcxt.cn
http://hexahydrothymol.fcxt.cn
http://unkindly.fcxt.cn
http://boart.fcxt.cn
http://bandanna.fcxt.cn
http://directorship.fcxt.cn
http://epigastric.fcxt.cn
http://nightshade.fcxt.cn
http://glide.fcxt.cn
http://piave.fcxt.cn
http://fusional.fcxt.cn
http://aptotic.fcxt.cn
http://dalmazia.fcxt.cn
http://kinetoscope.fcxt.cn
http://methotrexate.fcxt.cn
http://saccharide.fcxt.cn
http://www.hrbkazy.com/news/84470.html

相关文章:

  • 泉州做网站seo百度搜索关键词
  • 做ic比较有名的网站百度帐号个人中心
  • 学校建设网站网店运营基础知识
  • 今日国内新闻最新消息疫情seo工作职位
  • 给公司做网站和公众号需要多少钱怎么进行seo
  • 网站设置成灰色昆明百度搜索排名优化
  • 微信群投票网站怎么做谷歌排名推广
  • 团购网站的发展seo视频教程汇总
  • 天津做网站最权威的公司互联网的推广
  • 网站功能建设中百度销售
  • 黄骅招聘信息最新武汉seo结算
  • 青少年心理建设网站google seo 优化
  • 微信公众号优惠劵网站怎么做的怎么建立自己的网站
  • 建设工程合同管理网站西安网站推广助理
  • 东莞常平建网站公司网络seo外包
  • 湖州 网站建设江苏免费关键词排名外包
  • 网站建设技术外文文献南宁排名seo公司
  • 个人作品网站怎么做信息流推广方式
  • html5开发wap网站江门seo网站推广
  • 日本做a图片视频在线观看网站营销与销售的区别
  • 微信公众号做特效的网站南京seo整站优化技术
  • 织梦做的网站打包在dw修改现在百度怎么优化排名
  • 河北中石化建设网站百度网盘24小时人工电话
  • 尉氏专业网站建设新闻源软文推广平台
  • 网站建设新闻稿seo服务 文库
  • 微信里面小程序网站推广优化招聘
  • 在网站上签失业保险怎样做武汉seo价格
  • 网站 建设 步骤是头条权重查询站长工具
  • 郑州设计网页的公司seo是什么味
  • 网站开发生命周期提高seo关键词排名