merge to master

This commit is contained in:
oppofind 2020-01-26 16:41:10 +08:00
commit 6eaf6bf09c
2 changed files with 6 additions and 3 deletions

View File

@ -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.

View File

@ -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"),