diff --git a/coder-common-thin-web/pom.xml b/coder-common-thin-web/pom.xml index f311bd4..e2694d1 100644 --- a/coder-common-thin-web/pom.xml +++ b/coder-common-thin-web/pom.xml @@ -31,6 +31,12 @@ org.springdoc springdoc-openapi-starter-webmvc-ui + + + org.leocoder.thin + coder-common-thin-oss + ${revision} + diff --git a/coder-common-thin-web/src/main/java/org/leocoder/thin/web/CoderApplication.java b/coder-common-thin-web/src/main/java/org/leocoder/thin/web/CoderApplication.java index c970fbf..cc1f17b 100644 --- a/coder-common-thin-web/src/main/java/org/leocoder/thin/web/CoderApplication.java +++ b/coder-common-thin-web/src/main/java/org/leocoder/thin/web/CoderApplication.java @@ -6,6 +6,7 @@ import org.leocoder.thin.easyexcel.anno.EnableCoderEasyExcel; import org.leocoder.thin.limit.anno.EnableCoderLimit; import org.leocoder.thin.mybatisplus.anno.EnableMybatisPlus; import org.leocoder.thin.operlog.annotation.EnableOperLog; +import org.leocoder.thin.oss.annotation.EnableCoderOss; import org.leocoder.thin.repect.anno.EnableCoderRepeatSubmit; import org.leocoder.thin.resultex.anno.EnableResultEx; import org.leocoder.thin.satoken.anno.EnableCoderSaToken; @@ -27,6 +28,7 @@ import org.springframework.scheduling.annotation.EnableScheduling; @EnableMybatisPlus @EnableResultEx @EnableOperLog +@EnableCoderOss // @EnableCoderDict @EnableScheduling @Slf4j @@ -45,7 +47,7 @@ public class CoderApplication { "| | ( <_> ) | /_____/ / | \\| ` \\/ Y \\ / | \\ \n" + "|____|__ \\____/|__| \\____|__ /_______ /\\____|__ /___\\____|__ / \n" + " \\/ \\/ \\/ \\/ \\/ \n" + - "CoderApplication[18088] => 闪亮登场(๑•̀ㅂ•́) ✧" + "CoderApplication[18099] => 闪亮登场(๑•̀ㅂ•́) ✧" ); } } diff --git a/coder-common-thin-web/src/main/resources/application-dev.yml b/coder-common-thin-web/src/main/resources/application-dev.yml index 3330afa..b11dbb8 100755 --- a/coder-common-thin-web/src/main/resources/application-dev.yml +++ b/coder-common-thin-web/src/main/resources/application-dev.yml @@ -90,6 +90,32 @@ coder: projectVersion: 1.0.0 # 文件路径 示例[Windows配置D:/CoderFile,Linux配置 /usr/local/CoderFile] filePath: /Users/leocoder/leocoder/develop/templates/coder-common-thin/coder-common-thin-backend/picture + # 存储服务配置 + storage: + # 存储类型:local(本地存储) | minio(MinIO对象存储) | oss(阿里云OSS) + type: oss + # 阿里云OSS配置 + oss: + # 是否启用OSS存储 + enabled: true + # OSS服务端点 + endpoint: oss-cn-hangzhou.aliyuncs.com + # 访问密钥ID + access-key-id: ${OSS_ACCESS_KEY_ID:LTAI5t982gXi7A72gAa9yugE} + # 访问密钥Secret + access-key-secret: ${OSS_ACCESS_KEY_SECRET:Mi9ZsSWLGkvFoMiLNiZ71hHFzVso30} + # 存储桶名称 + bucket-name: gaoziman + # 自定义域名(可选) + domain: https://gaoziman.oss-cn-hangzhou.aliyuncs.com + # 路径前缀 + path-prefix: coder-files + # 是否使用HTTPS + https: true + # 连接超时时间(毫秒) + connect-timeout: 10000 + # 读取超时时间(毫秒) + read-timeout: 10000 # 全局限流 globalLimit: # 是否开启全局限流