feat: auth develop

This commit is contained in:
2024-02-18 15:07:07 +08:00
parent 4e025dc47d
commit 3d475f690f
9 changed files with 68 additions and 97 deletions

View File

@@ -47,11 +47,6 @@
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.alibaba.boot</groupId>-->
<!-- <artifactId>nacos-config-spring-boot-starter</artifactId>-->
<!-- <version>0.2.11</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>

View File

@@ -20,13 +20,14 @@ import org.springframework.context.annotation.Configuration;
@Configuration
@RefreshScope
public class StorageConfig {
@Value("${storage.service.type}")
private String storageType;
@Bean
@RefreshScope
public StorageAdapter storageService(){
public StorageAdapter storageService() {
if ("minio".equals(storageType)) {
return new MinioStorageAdapter();
} else if ("aliyun".equals(storageType)) {

View File

@@ -4,5 +4,3 @@ minio:
url: http://116.196.80.239:9090/
accessKey: landaiqing
secretKey: LDQ20020618xxx