feat: auth develop
This commit is contained in:
@@ -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>
|
||||
|
@@ -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)) {
|
||||
|
@@ -4,5 +4,3 @@ minio:
|
||||
url: http://116.196.80.239:9090/
|
||||
accessKey: landaiqing
|
||||
secretKey: LDQ20020618xxx
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user