gpt4 book ai didi

java - 更改 WireMock __files 目录

转载 作者:行者123 更新时间:2023-12-05 03:53:26 25 4
gpt4 key购买 nike

来自docs :

To read the body content from a file, place the file under the __files directory. By default this is expected to be under src/test/resources when running from the JUnit rule. When running standalone it will be under the current directory in which the server was started. To make your stub use the file, simply call bodyFile() on the response builder with the file’s path relative to __files:

可以改吗?为什么 WireMock 会坚持使用这个特定目录?

最佳答案

WireMock 坚持该特定目录,因为它必须有一些特定目录。

如果你想改变它,你可以这样做。 Check out the File Locations section under the configuration documentation.

关于java - 更改 WireMock __files 目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61593477/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com