From 12d76e4f205c41cf3fd8ea215b787e900b3cc876 Mon Sep 17 00:00:00 2001 From: sxq <812980466@qq.com> Date: 星期三, 20 十月 2021 11:56:17 +0800 Subject: [PATCH] 1:properties 换成yml 配置文件。 2:默认端口改成9100。 --- ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/SwaggerProperties.java | 33 +++++++++++++++++++++++++++++---- 1 files changed, 29 insertions(+), 4 deletions(-) diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/SwaggerProperties.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/SwaggerProperties.java index ece75ef..9c4cd23 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/SwaggerProperties.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/SwaggerProperties.java @@ -5,6 +5,8 @@ import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; +import java.util.List; + /** * swagger 閰嶇疆灞炴�� * @@ -41,23 +43,46 @@ */ private Contact contact; + /** + * 缁勯厤缃� + */ + private List<Groups> groups; + @Data @NoArgsConstructor - public static class Contact{ + public static class Contact { /** * 鑱旂郴浜� - **/ + */ private String name; + /** * 鑱旂郴浜簎rl - **/ + */ private String url; + /** * 鑱旂郴浜篹mail - **/ + */ private String email; } + @Data + @NoArgsConstructor + public static class Groups { + + /** + * 缁勫悕 + */ + private String name; + + /** + * 鍩虹鍖呰矾寰� + */ + private String basePackage; + + } + } -- Gitblit v1.9.3