Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想根据 url 中的 ID 存根合同(这是用于 Spring 应用程序)。有没有办法在运行时向 Stub Runner 添加一个 ID,或者是否必须在 @AutoConfigureStubRunner 注释中专门定义所有存根?
从理论上讲,您可以启动自己的 BatchStubRunner 并手动为其提供数据。因此,换句话说,您可以手动执行 @AutoConfigureStubRunner 为您执行的操作