需求背景:
开发过程中需要依赖一些接口,这些接口要么是搭建环境困难,要么是还没有实现,要么是交互比较复杂。这种情况下,使用mock server来mock这些接口,以便开发和测试能够正常进行。
安装
1、首先安装JDK
2、下载moco-runner-0.10.0-standalone.jar
链接:https://pan.baidu.com/s/1tFcPYOXQQM_IfSxtv9NxJg
提取码:ev1t
使用步骤:
1、在moco-runner-0.10.0-standalone.jar目录下新建11_config.json
2、打开编辑11_config.json输入:
[
{
"request" :
{
"uri" : "/"
},
"response" :