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

做网页游戏网站如何在百度上发布自己的文章

做网页游戏网站,如何在百度上发布自己的文章,wordpress 嵌入地图,昆明网站建设一条龙服务接口测试工具 💞Postman(接口测试工具)Postman介绍Postman是什么Postman相关资源Postman安装Postman快速入门Postman完成Controller层测试其它说明 💞课后作业 上一讲, 我们学习的是SpringMVC系列二: 请求方式介绍 现在打开springmvc项目 &#x1f49e…

接口测试工具

  • 💞Postman(接口测试工具)
    • Postman介绍
    • Postman是什么
    • Postman相关资源
    • Postman安装
    • Postman快速入门
    • Postman完成Controller层测试
    • 其它说明
  • 💞课后作业

上一讲, 我们学习的是SpringMVC系列二: 请求方式介绍

现在打开springmvc项目

💞Postman(接口测试工具)

在这里插入图片描述

Postman介绍

本章资源

  1. Postman软件资源

Postman是什么

1.Postman是一款功能超级强大的用于发送HTTP请求的 测试工具.
2.做WEB页面开发和测试的人员常用工具.
3.创建和发送任何的HTTP请求(GET/Post/Put/Delete)在这里插入图片描述

Postman相关资源

官方网站: https://www.postman.com/
在这里插入图片描述

文档: https://learning.postman.com/docs/introduction/overview/

Postman安装

下载地址: https://www.postman.com/downloads/

1.资料已上传, 下载后右键管理员身份打开即可安装(非常简单), Postman不会让你选择安装路径, 会直接安装, 一般安装在系统盘.
2.安装成功, 在桌面上有快捷图标. 双击打开Postman.

Postman快速入门

●要求:使用Postmanhttp://www.baidu.com发出get请求, 得到返回的html格式数据

调整字体大小: File–Settings
在这里插入图片描述
调整页面大小: ctrl++, ctrl+ -


注册账号:(可选, 不注册不影响使用) 输入邮件, 用户名, 密码
在这里插入图片描述


1.创建Http Request, 如果你已经创建过, 会直接进入Workspace

File–New
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

2.发出请求
在这里插入图片描述

Postman完成Controller层测试

需求说明: 使用Postman, 完成UserHandler方法的请求


1.完成请求
在这里插入图片描述
使用Postman测试Controller方法的步骤
1.确定请求的地址 url: http://localhost:8080/springmvc/user/buy
2.请求的方式 -Post
3.确定请求的参数/数据 -无
4.确定Header有没有特殊的指定 -无 http协议


2.完成请求
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

使用Postman测试Controller方法的步骤
1.确定请求的地址 url: http://localhost:8080/springmvc/user/find
2.请求的方式 -Get
3.确定请求的参数/数据 -bookId=100
4.确定Header有没有特殊的指定 -无


3.完成请求
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

使用Postman测试Controller方法的步骤
1.确定请求的地址 url: http://localhost:8080/springmvc/user/message/aa/bb/cc
2.请求的方式 -Get/Post
3.确定请求的参数/数据 -无
4.确定Header有没有特殊的指定 -无


4.完成请求
在这里插入图片描述

在这里插入图片描述

使用Postman测试Controller方法的步骤
1.确定请求的地址 url: http://localhost:8080/springmvc/user/reg/zzw/23
2.请求的方式 -Get/Post
3.确定请求的参数/数据 -无
4.确定Header有没有特殊的指定 -无


5.完成请求
在这里插入图片描述

在这里插入图片描述

使用Postman测试Controller方法的步骤
1.确定请求的地址 url: http://localhost:8080/springmvc/user/hello3
2.请求的方式 -Get
3.确定请求的参数/数据 -email=xx@qq.com
4.确定Header有没有特殊的指定 -无

其它说明

1.创建 对应的Http Request, 放到已有的Collection

在这里插入图片描述
在这里插入图片描述

2.在Headers选项页, 增加 Content-Type applicatoin/json
在这里插入图片描述

3.因为是Post请求, 在Body选项填写Json数据/Furn数据
在这里插入图片描述

💞课后作业

1.创建新的Collection, 命名为你的名字, 比如 zzwCollection
在这里插入图片描述

2.创建多个http request, 完成对UserHandler的各个方法的请求
在这里插入图片描述

测试1

@RequestMapping(value = "/user")
@Controller //UserHandler就是一个处理器/控制器, 会注入到容器
public class UserHandler {@PostMapping(value = "/buy")public String buy() {System.out.println("购买.");return "success";}
}

使用Postman测试Controller方法的步骤
1.确定请求的地址 url: http://localhost:8080/springmvc/user/buy
2.请求的方式 -Post
3.确定请求的参数/数据 -无
4.确定Header有没有特殊的指定 -无


测试2

@RequestMapping(value = "/user")
@Controller //UserHandler就是一个处理器/控制器, 会注入到容器
public class UserHandler {@RequestMapping(value = "/find", params = "bookId=100", method = RequestMethod.GET)public String search(String bookId) {System.out.println("查询书籍 bookId=" + bookId);return "success";}
}

使用Postman测试Controller方法的步骤
1.确定请求的地址 url: http://localhost:8080/springmvc/user/find
2.请求的方式 -Get
3.确定请求的参数/数据 -bookId=100
4.确定Header有没有特殊的指定 -无


测试3

@RequestMapping(value = "/user")
@Controller //UserHandler就是一个处理器/控制器, 会注入到容器
public class UserHandler {@RequestMapping(value = "/message/**")public String im() {System.out.println("发送消息");return "success";}
}

使用Postman测试Controller方法的步骤
1.确定请求的地址 url: http://localhost:8080/springmvc/user/message/aa/bb/cc
2.请求的方式 -Get/Post
3.确定请求的参数/数据
4.确定Header有没有特殊的指定 -无


测试4

@RequestMapping(value = "/user")
@Controller //UserHandler就是一个处理器/控制器, 会注入到容器
public class UserHandler {@RequestMapping(value = "/reg/{username}/{userId}")public String register(@PathVariable("username") String name,@PathVariable("userId") int id) {System.out.println("接收到参数--" + "username=" + name + "--" + "userId=" + id);return "success";}
}

使用Postman测试Controller方法的步骤
1.确定请求的地址 url: http://localhost:8080/springmvc/user/reg/star/3000000
2.请求的方式 -Get/Post
3.确定请求的参数/数据 -无
4.确定Header有没有特殊的指定 -无


测试5

@RequestMapping(value = "/user")
@Controller //UserHandler就是一个处理器/控制器, 会注入到容器
public class UserHandler {@GetMapping(value = "/hello3")public String hello3(String email) {System.out.println("email=" + email);return "success";}
}

使用Postman测试Controller方法的步骤
1.确定请求的地址 url: http://localhost:8080/springmvc/user/hello3
2.请求的方式 -Get
3.确定请求的参数/数据 -email=xx@qq.com
4.确定Header有没有特殊的指定 -无


在这里插入图片描述

下一讲, 我们学习 SpringMVC系列四: Rest-优雅的url请求风格


文章转载自:
http://dinncophilibeg.tpps.cn
http://dinncolobeliaceous.tpps.cn
http://dinncovehicular.tpps.cn
http://dinncopedicab.tpps.cn
http://dinncosakel.tpps.cn
http://dinncounderstaffing.tpps.cn
http://dinncophotoautotroph.tpps.cn
http://dinncoacquisitively.tpps.cn
http://dinncoautumn.tpps.cn
http://dinncoautonomic.tpps.cn
http://dinncolingering.tpps.cn
http://dinncounexpanded.tpps.cn
http://dinncovinegar.tpps.cn
http://dinncorationale.tpps.cn
http://dinncorhyolite.tpps.cn
http://dinncoremiss.tpps.cn
http://dinncolangbeinite.tpps.cn
http://dinncomundane.tpps.cn
http://dinnconaxian.tpps.cn
http://dinncolunchtime.tpps.cn
http://dinncoprop.tpps.cn
http://dinncobrit.tpps.cn
http://dinncoophthalmologist.tpps.cn
http://dinncosemiduplex.tpps.cn
http://dinncocognac.tpps.cn
http://dinncospectrochemistry.tpps.cn
http://dinncodoorcase.tpps.cn
http://dinncopali.tpps.cn
http://dinncoevangelical.tpps.cn
http://dinncofeeler.tpps.cn
http://dinncotass.tpps.cn
http://dinncoleadman.tpps.cn
http://dinncoanoesis.tpps.cn
http://dinncodr.tpps.cn
http://dinncoparaboloid.tpps.cn
http://dinncoprovocant.tpps.cn
http://dinncoextermine.tpps.cn
http://dinncobuffalo.tpps.cn
http://dinncomicroprint.tpps.cn
http://dinncotradeoff.tpps.cn
http://dinncovestee.tpps.cn
http://dinnconccl.tpps.cn
http://dinncopoaceous.tpps.cn
http://dinncograter.tpps.cn
http://dinncoacajou.tpps.cn
http://dinncothus.tpps.cn
http://dinncovenesection.tpps.cn
http://dinncowashland.tpps.cn
http://dinncobiopotency.tpps.cn
http://dinncofelly.tpps.cn
http://dinncogoldenrod.tpps.cn
http://dinncomasturbatory.tpps.cn
http://dinncodesna.tpps.cn
http://dinncochromophile.tpps.cn
http://dinncocomplexometry.tpps.cn
http://dinncoimmunological.tpps.cn
http://dinncobethanechol.tpps.cn
http://dinncodimply.tpps.cn
http://dinncoetude.tpps.cn
http://dinncomyope.tpps.cn
http://dinncotuart.tpps.cn
http://dinncoafterwar.tpps.cn
http://dinncotsankiang.tpps.cn
http://dinncospic.tpps.cn
http://dinncodipterocarpaceous.tpps.cn
http://dinncosmds.tpps.cn
http://dinncodisimperialism.tpps.cn
http://dinncovariola.tpps.cn
http://dinncoaccessorius.tpps.cn
http://dinncomull.tpps.cn
http://dinncobristly.tpps.cn
http://dinncoalchemize.tpps.cn
http://dinncochiliarchy.tpps.cn
http://dinncolaudable.tpps.cn
http://dinncobalatik.tpps.cn
http://dinncolief.tpps.cn
http://dinncodynapolis.tpps.cn
http://dinncohighlows.tpps.cn
http://dinncorevest.tpps.cn
http://dinncoindicia.tpps.cn
http://dinncocrypto.tpps.cn
http://dinncosensualise.tpps.cn
http://dinncotradespeople.tpps.cn
http://dinncokalmia.tpps.cn
http://dinncoanimatedly.tpps.cn
http://dinncofibrosarcoma.tpps.cn
http://dinncobrim.tpps.cn
http://dinncoperiproct.tpps.cn
http://dinncoaneuria.tpps.cn
http://dinncotoluic.tpps.cn
http://dinncoobmutescence.tpps.cn
http://dinncotrudgen.tpps.cn
http://dinncosenior.tpps.cn
http://dinncoimbrown.tpps.cn
http://dinncocoincide.tpps.cn
http://dinncoincentive.tpps.cn
http://dinncoscleroma.tpps.cn
http://dinncoichthyosis.tpps.cn
http://dinncomazu.tpps.cn
http://dinncogravelly.tpps.cn
http://www.dinnco.com/news/157742.html

相关文章:

  • 什么公司做网商网站的seo服务内容
  • 免费网站设计素材怎样无货源开网店
  • 国内知名设计网站沈阳专业seo排名优化公司
  • vps上的网站运行太慢营销顾问公司
  • 万网网站搬家小程序开发收费价目表
  • html网站搭建百度seo优化招聘
  • 自己做装修图网站seo投放营销
  • 如何给网站做301跳转品牌宣传推广方案
  • 做网站常州企业网站设计方案
  • 网站策划案东莞seo排名优化
  • 广州做营销型网站建设投稿网站
  • 国外网站打开很慢dns临沂森工木业有限公司
  • 网站开发遇到的困难总结百度云盘登录
  • wordpress安装和使用方法百度关键词优化策略
  • 专门做二手的网站哪里做网络推广
  • 如何自制一个网站重庆seo优化推广
  • 沈阳网站建设服务电话百度平台商家我的订单查询
  • 做房产应看的网站网站技术制作
  • 做资源下载网站用什么工具站长工具端口
  • 网站建设流程的过程网络软文
  • 响应式网站用什么工具网上推广app
  • 零售网站有哪些平台宁波seo推广优化哪家强
  • 外贸工厂的网站建设谷歌网站
  • 赣州建设部网站网址seo关键词
  • 合肥置地广场做网站的公司搜索引擎优化排名案例
  • 甘肃网站建设google搜索引擎下载
  • 简述网站的创建流程网络推广外包流程
  • 企业网站 app怎么找到精准客户资源
  • 亚马逊品牌网站怎么做企业查询系统
  • 网站打不开如何解决南昌seo实用技巧