Moco is an easy setup stub framework.
More details in Release Notes
Integration, especially based on HTTP protocol, e.g. web service, REST etc, is wildly used in most of our development.
In the old days, we just deployed another WAR to an application server, e.g. Jetty or Tomcat etc. As we all know, it's so boring to develop a WAR and deploy it to any application server, even if we use an embeded server. And the WAR needs to be reassembled even if we just want to change a little bit.
[
{
"response" :
{
"text" : "Hello, Moco"
}
}
]
(foo.json)
java -jar moco-runner-<version>-standalone.jar http -p 12306 -c foo.json
Make sure you have JDK and Gradle installed.
git clone git@github.com:dreamhead/moco.git
./gradlew build
./gradlew uberjar
./gradlew check
Check out what you can help here if you do not have any existing idea.
Copyright 2012-2021 ZHENG Ye
Licensed under MIT License (the "License"); You may obtain a copy of the License in the LICENSE file, or at:
https://raw.github.com/dreamhead/moco/master/MIT-LICENSE.txt
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。