File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
src/main/java/com/didispace/swagger Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ public List<Docket> createRestApi(SwaggerProperties swaggerProperties) {
73
73
}
74
74
75
75
Docket docket = new Docket (DocumentationType .SWAGGER_2 )
76
+ .host (swaggerProperties .getHost ())
76
77
.apiInfo (apiInfo )
77
78
.select ()
78
79
.apis (RequestHandlerSelectors .basePackage (swaggerProperties .getBasePackage ()))
@@ -126,6 +127,7 @@ public List<Docket> createRestApi(SwaggerProperties swaggerProperties) {
126
127
}
127
128
128
129
Docket docket = new Docket (DocumentationType .SWAGGER_2 )
130
+ .host (swaggerProperties .getHost ())
129
131
.apiInfo (apiInfo )
130
132
.groupName (groupName )
131
133
.select ()
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ public class SwaggerProperties {
44
44
/**分组文档**/
45
45
private Map <String , DocketInfo > docket = new LinkedHashMap <>();
46
46
47
+ /**host信息**/
48
+ private String host = "" ;
49
+
47
50
@ Data
48
51
@ NoArgsConstructor
49
52
public static class DocketInfo {
You can’t perform that action at this time.
0 commit comments