Open 1657486787 opened 3 years ago
Do you mean that you add a new JSON file to your directory?
I have the same question. @dreamhead After run java -jar .moco-runner-1.1.0-standalone.jar http -p 10001 -c "*.json"
, I add a new JSON file to current directory. It doesn't work.
There is no such feature for now.
Moco can detect file content change, rather than a new file.
没生效呢。启动方式是 HttpServer server = MocoJsonRunner.jsonHttpServer(port, Moco.file(file)); runner = Runner.runner(server); runner.start();
你好,我使用 java -jar .moco-runner-1.1.0-standalone.jar http -p 10001 -c "*.json" 加载多配置文件。发现新增一个json文件,如user.json时,并不能自动加载。而是需要重启项目才行。 希望能够动态加载配置文件