{
"request": {
"method": "POST",
"urlPathPattern": "/v1/customer"
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"bodyFileName": "data/customer-{{jsonPath request.body '$.cid'}}.json",
"transformers": ["response-template"]
}
}
Mac,是工作的好!
在Linux,它给这个错误:
<pre> Server Error</pre></p><h3>Caused by:</h3>
<pre>java.lang.RuntimeException: java.io.FileNotFoundException:
/mocks/./__files/data/customer-{{jsonPath request.body '$.cid'}}.json
(No such file or directory)\n
是否有任何解决方案或解决方法? 感谢!