merge to master
This commit is contained in:
commit
6eaf6bf09c
|
@ -84,11 +84,12 @@ public class ApiDocTest {
|
|||
//Set the api document output path.
|
||||
config.setOutPath("d:\\md");
|
||||
|
||||
//since 1.7.5
|
||||
//since smart-doc 1.7.5
|
||||
//corverd old AllIneOne.md file generated by smart-doc.
|
||||
config.setCoverOld(true);
|
||||
|
||||
//since 1.7.5
|
||||
//since smart-doc 1.7.9, default is true
|
||||
config.setShowAuthor(false);
|
||||
//since smart-doc 1.7.5
|
||||
//set project name
|
||||
config.setProjectName("Your project name");
|
||||
// If you do not configure PackageFilters, it matches all controllers by default.
|
||||
|
|
|
@ -88,6 +88,8 @@ public class ApiDocTest {
|
|||
//since 1.7.5
|
||||
//设置项目名(非必须),如果不设置会导致在使用一些自动添加标题序号的工具显示的序号不正常
|
||||
config.setProjectName("抢购系统");
|
||||
//since 1.7.9 新增是否显示接口作者 默认true
|
||||
config.setShowAuthor(false);
|
||||
//设置请求头,如果没有请求头,可以不用设置
|
||||
config.setRequestHeaders(
|
||||
ApiReqHeader.header().setName("access_token").setType("string").setDesc("Basic auth credentials"),
|
||||
|
|
Loading…
Reference in New Issue