From 2e50c813f2d089e0265b13a7f9c5a9b23829130c Mon Sep 17 00:00:00 2001 From: liriming <1343021927@qq.com> Date: 星期四, 20 三月 2025 18:11:57 +0800 Subject: [PATCH] sdk修改 --- iailab-plat-sdk/src/main/java/com/iailab/sdk/auth/config/SdkAutoConfiguration.java | 16 +--------------- 1 files changed, 1 insertions(+), 15 deletions(-) diff --git a/iailab-plat-sdk/src/main/java/com/iailab/sdk/auth/config/SdkAutoConfiguration.java b/iailab-plat-sdk/src/main/java/com/iailab/sdk/auth/config/SdkAutoConfiguration.java index 651da56..d8811da 100644 --- a/iailab-plat-sdk/src/main/java/com/iailab/sdk/auth/config/SdkAutoConfiguration.java +++ b/iailab-plat-sdk/src/main/java/com/iailab/sdk/auth/config/SdkAutoConfiguration.java @@ -1,19 +1,11 @@ package com.iailab.sdk.auth.config; -import com.iailab.sdk.auth.client.IailabAuthClient; import com.iailab.sdk.auth.factory.YamlPropertySourceFactory; -import com.iailab.sdk.util.http.IailabHttpUtils; import org.springframework.beans.factory.annotation.Value; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.PropertySource; -import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; -import org.springframework.core.io.ClassPathResource; import javax.annotation.PostConstruct; -import javax.annotation.Resource; /** @@ -21,7 +13,7 @@ */ @Configuration @PropertySource( - value = "classpath:auth.yaml", + value = "classpath:application.yaml", factory = YamlPropertySourceFactory.class // 使用自定义加载器 ) public class SdkAutoConfiguration { @@ -40,9 +32,6 @@ @Value("${iailab.token.username}") public String username; - @Value("${iailab.token.password}") - public String password; - public static String BASE_URL; public static Long TENANT_ID; @@ -53,8 +42,6 @@ public static String USERNAME; - public static String PASSWORD; - @PostConstruct public void initUrl() { BASE_URL = this.baseUrl; @@ -62,6 +49,5 @@ CLIENT_ID = this.clientId; CLIENT_SECRET = this.clientSecret; USERNAME = this.username; - PASSWORD = this.password; } } -- Gitblit v1.9.3