From b8d62de41ff7e1e0549061308aa11f68cf881ed9 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 16 七月 2025 17:01:20 +0800 Subject: [PATCH] 修改所有的controller --- se-common/src/main/java/com/terra/common/entity/all/SpringDocProperties.java | 135 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 135 insertions(+), 0 deletions(-) diff --git a/se-common/src/main/java/com/terra/common/entity/all/SpringDocProperties.java b/se-common/src/main/java/com/terra/common/entity/all/SpringDocProperties.java new file mode 100644 index 0000000..6a906dd --- /dev/null +++ b/se-common/src/main/java/com/terra/common/entity/all/SpringDocProperties.java @@ -0,0 +1,135 @@ +package com.terra.common.entity.all; + +import io.swagger.v3.oas.models.info.Contact; +import io.swagger.v3.oas.models.info.License; +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.boot.context.properties.NestedConfigurationProperty; + +/** + * Swagger 閰嶇疆灞炴�� + * + * @author admin + */ +@ConfigurationProperties(prefix = "springdoc") +public class SpringDocProperties +{ + /** + * 缃戝叧 + */ + private String gatewayUrl; + + /** + * 鏂囨。鍩烘湰淇℃伅 + */ + @NestedConfigurationProperty + private InfoProperties info = new InfoProperties(); + + /** + * <p> + * 鏂囨。鐨勫熀纭�灞炴�т俊鎭� + * </p> + * + * @see io.swagger.v3.oas.models.info.Info + * + * 涓轰簡 springboot 鑷姩鐢熶骇閰嶇疆鎻愮ず淇℃伅锛屾墍浠ヨ繖閲屽鍒朵竴涓被鍑烘潵 + */ + public static class InfoProperties + { + /** + * 鏍囬 + */ + private String title = null; + + /** + * 鎻忚堪 + */ + private String description = null; + + /** + * 鑱旂郴浜轰俊鎭� + */ + @NestedConfigurationProperty + private Contact contact = null; + + /** + * 璁稿彲璇� + */ + @NestedConfigurationProperty + private License license = null; + + /** + * 鐗堟湰 + */ + private String version = null; + + public String getTitle() + { + return title; + } + + public void setTitle(String title) + { + this.title = title; + } + + public String getDescription() + { + return description; + } + + public void setDescription(String description) + { + this.description = description; + } + + public Contact getContact() + { + return contact; + } + + public void setContact(Contact contact) + { + this.contact = contact; + } + + public License getLicense() + { + return license; + } + + public void setLicense(License license) + { + this.license = license; + } + + public String getVersion() + { + return version; + } + + public void setVersion(String version) + { + this.version = version; + } + } + + public String getGatewayUrl() + { + return gatewayUrl; + } + + public void setGatewayUrl(String gatewayUrl) + { + this.gatewayUrl = gatewayUrl; + } + + public InfoProperties getInfo() + { + return info; + } + + public void setInfo(InfoProperties info) + { + this.info = info; + } +} -- Gitblit v1.9.3