- 零侵入式mock平台,多协议支持(dubbo2.x,3.x,openfeign,http)
- 自动扫描、自动注册
- 支持动态参数匹配
- 支持动态数据(支持函数生成数据)
- 云原生支持
- 支持模拟耗时
- 随机字符串:${__RandomString(11,0123456789)}
- 时间戳:${__time(yyyyMMdd)} 或者 ${__time(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')}
- 引用入参的某个值:${__refer($[1].name)}
{
"date": "${__time(yyyyMMdd)}",
"trans_no": "${__time(yyyyMMdd)}${__RandomString(11,0123456789)}A",
"refer_value": "${__refer($[1].name)}"
}
The following code snippet comes from Dubbo Samples. You may clone the sample project and step into the dubbo-samples-api
subdirectory before proceeding.
git clone https://github.com/apache/dubbo-samples.git
cd dubbo-samples/1-basic/dubbo-samples-api
There's a README file under dubbo-samples-api
directory. We recommend referencing the samples in that directory by following the below-mentioned instructions: