From b4f9d3a8f238e3d40d97f0d947b5b4b302d0c04e Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期四, 27 五月 2021 22:06:36 +0800 Subject: [PATCH] update 优化dataScope参数防止注入 --- ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/SwaggerProperties.java | 29 ++++++++++++++++++++++++++++- 1 files changed, 28 insertions(+), 1 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 4a37fbc..f99c3da 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 @@ -2,7 +2,6 @@ import lombok.Data; import lombok.NoArgsConstructor; -import lombok.experimental.Accessors; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @@ -20,6 +19,10 @@ * 楠岃瘉鐮佺被鍨� */ private Boolean enabled; + /** + * 璁剧疆璇锋眰鐨勭粺涓�鍓嶇紑 + */ + private String pathMapping; /** * 楠岃瘉鐮佺被鍒� */ @@ -33,4 +36,28 @@ */ private String version; + /** + * 鑱旂郴鏂瑰紡 + */ + private Contact contact; + + @Data + @NoArgsConstructor + public static class Contact{ + + /** + * 鑱旂郴浜� + **/ + private String name; + /** + * 鑱旂郴浜簎rl + **/ + private String url; + /** + * 鑱旂郴浜篹mail + **/ + private String email; + + } + } -- Gitblit v1.9.3