@@ -71,6 +71,7 @@ swagger.exclude-path=/error, /ops/**
71
71
72
72
### 默认配置
73
73
74
+ ```
74
75
- swagger.title=标题
75
76
- swagger.description=描述
76
77
- swagger.version=版本
@@ -83,6 +84,10 @@ swagger.exclude-path=/error, /ops/**
83
84
- swagger.base-package=swagger扫描的基础包,默认:全扫描
84
85
- swagger.base-path=需要处理的基础URL规则,默认:/**
85
86
- swagger.exclude-path=需要排除的URL规则,默认:空
87
+ - swagger.host=文档的host信息,默认:空
88
+ ```
89
+
90
+ ** host属性从1.3.0.RELEASE开始支持**
86
91
87
92
### Path规则说明
88
93
@@ -111,6 +116,7 @@ swagger.exclude-path=/ops/**, /error
111
116
112
117
具体配置内容如下:
113
118
119
+ ```
114
120
- swagger.docket.<name>.title=标题
115
121
- swagger.docket.<name>.description=描述
116
122
- swagger.docket.<name>.version=版本
@@ -123,6 +129,7 @@ swagger.exclude-path=/ops/**, /error
123
129
- swagger.docket.<name>.base-package=swagger扫描的基础包,默认:全扫描
124
130
- swagger.docket.<name>.base-path=需要处理的基础URL规则,默认:/**
125
131
- swagger.docket.<name>.exclude-path=需要排除的URL规则,默认:空
132
+ ```
126
133
127
134
说明:` <name> ` 为swagger文档的分组名称,同一个项目中可以配置多个分组,用来划分不同的API文档。
128
135
@@ -131,7 +138,7 @@ swagger.exclude-path=/ops/**, /error
131
138
``` properties
132
139
swagger.docket.aaa.title =group-a
133
140
swagger.docket.aaa.description =Starter for swagger 2.x
134
- swagger.docket.aaa.version =1.2 .0.RELEASE
141
+ swagger.docket.aaa.version =1.3 .0.RELEASE
135
142
swagger.docket.aaa.termsOfServiceUrl =https://gitee.com/didispace/spring-boot-starter-swagger
136
143
swagger.docket.aaa.contact.name =zhaiyongchao
137
144
swagger.docket.aaa.contact.url =http://spring4all.com/
@@ -146,4 +153,18 @@ swagger.docket.bbb.basePackage=com.yonghui
146
153
147
154
### JSR-303校验注解支持
148
155
149
- TODO 待完善内容
156
+ 支持对JSR-303校验注解的展示,如下图所示:
157
+
158
+ ![ JSR-303校验展示] ( https://github.com/dyc87112/spring-boot-starter-swagger/blob/master/images/jsr-303.png )
159
+
160
+ 目前共支持以下几个注解:
161
+
162
+ - ` @NotNull `
163
+ - ` @Max、@Min `
164
+ - ` @Size `
165
+ - ` @Pattern `
166
+
167
+ ## 贡献者
168
+
169
+ - [ 程序猿DD-翟永超] ( https://github.com/dyc87112/ )
170
+ - [ 小火] ( https://renlulu.github.io/ )
0 commit comments