From a2d8705903ec73b585eaca24f013e081929db953 Mon Sep 17 00:00:00 2001 From: maven <2163098428@qq.com> Date: 星期五, 22 八月 2025 10:00:46 +0800 Subject: [PATCH] yys --- ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerProperties.java | 63 +++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerProperties.java b/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerProperties.java new file mode 100644 index 0000000..3cb9cbc --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerProperties.java @@ -0,0 +1,63 @@ +package com.ruoyi.web.core.config; + + +import jakarta.validation.constraints.NotEmpty; +import lombok.Data; +import org.springframework.boot.context.properties.ConfigurationProperties; +/** + * @author :yys + * @date : 2025/8/22 9:16 + */ + + + +/** + * Swagger 閰嶇疆灞炴��*/ +@ConfigurationProperties("aixin.swagger") +@Data +public class SwaggerProperties { + + /** + * 鏍囬 + */ + @NotEmpty(message = "鏍囬涓嶈兘涓虹┖") + private String title; + /** + * 鎻忚堪 + */ + @NotEmpty(message = "鎻忚堪涓嶈兘涓虹┖") + private String description; + /** + * 浣滆�� + */ + @NotEmpty(message = "浣滆�呬笉鑳戒负绌�") + private String author; + /** + * 鐗堟湰 + */ + @NotEmpty(message = "鐗堟湰涓嶈兘涓虹┖") + private String version; + /** + * url + */ + @NotEmpty(message = "鎵弿鐨� package 涓嶈兘涓虹┖") + private String url; + /** + * email + */ + @NotEmpty(message = "鎵弿鐨� email 涓嶈兘涓虹┖") + private String email; + + /** + * license + */ + @NotEmpty(message = "鎵弿鐨� license 涓嶈兘涓虹┖") + private String license; + + /** + * license-url + */ + @NotEmpty(message = "鎵弿鐨� license-url 涓嶈兘涓虹┖") + private String licenseUrl; + +} -- Gitblit v1.9.3