The documentation对于 org.springframework.restdocs.RestDocumentation
声明它已被弃用。
我尝试在 JUnit 测试中使用该类,如下所示:
@Rule
public RestDocumentation restDocumentation = new RestDocumentation("target/generated-snippets");
我应该使用什么类?
最佳答案
尝试 JUnitRestDocumentation restDocumentation = new JUnitRestDocumentation("target/generated-snippets")
关于java - RestDocumentation 类已弃用,我应该使用什么来代替?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45966475/