配置moco-runner-0.12.0-standalone.jar,提示找不到jar
来源:5-4 Mock和mockrunner的区别
慕桂英5751595
2020-08-07
现在的结果是:
有在config.json中添加数据,我是在项目的Mock目录下执行的,结果显示
jiangjuanjuandeMacBook-Pro:Mock jiangjuanjuan$ java -jar moco-runner-0.12.0-standalone.jar start -p 8801 -c config.json
08 八月 2020 16:47:18 [main] INFO Unrecognized field: Unrecognized field “url” (class com.github.dreamhead.moco.parser.model.RequestSetting), not marked as ignorable (14 known properties: “method”, “headers”, “json”, “factory”, “uri”, “text”, “cookies”, “xpaths”, “json_paths”, “version”, “file”, “queries”, “path_resource”, “forms”])
at [Source: (FileInputStream); line: 4, column: 17] (through reference chain: java.util.ArrayList[0]->com.github.dreamhead.moco.parser.model.SessionSetting[“request”]->com.github.dreamhead.moco.parser.model.RequestSetting[“url”])
08 八月 2020 16:47:18 [main] ERROR Unrecognized field [ url ], please check!
修改了config.json 的格式 还是不行
2回答
-
慕桂英5751595
提问者
2020-08-08
问题已经解决:应改是‘uri’,不识别“url”
112020-08-10 -
Mushishi
2020-08-08
你cd到你文件所在目录下面然后去执行java -jar
022020-08-10
相似问题