2

文档org.springframework.restdocs.RestDocumentation声明它已被弃用。

我正在尝试在这样的 JUnit 测试中使用该类:

@Rule
public RestDocumentation restDocumentation = new RestDocumentation("target/generated-snippets");

我应该改用什么类?

4

1 回答 1

5

尝试JUnitRestDocumentation restDocumentation = new JUnitRestDocumentation("target/generated-snippets")

于 2017-08-30T17:42:17.650 回答