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) {
7373 }
7474
7575 Docket docket = new Docket (DocumentationType .SWAGGER_2 )
76+ .host (swaggerProperties .getHost ())
7677 .apiInfo (apiInfo )
7778 .select ()
7879 .apis (RequestHandlerSelectors .basePackage (swaggerProperties .getBasePackage ()))
@@ -126,6 +127,7 @@ public List<Docket> createRestApi(SwaggerProperties swaggerProperties) {
126127 }
127128
128129 Docket docket = new Docket (DocumentationType .SWAGGER_2 )
130+ .host (swaggerProperties .getHost ())
129131 .apiInfo (apiInfo )
130132 .groupName (groupName )
131133 .select ()
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ public class SwaggerProperties {
4444 /**分组文档**/
4545 private Map <String , DocketInfo > docket = new LinkedHashMap <>();
4646
47+ /**host信息**/
48+ private String host = "" ;
49+
4750 @ Data
4851 @ NoArgsConstructor
4952 public static class DocketInfo {
You can’t perform that action at this time.
0 commit comments