From f57ec4a8883abf2b53882e3463924b85716cf566 Mon Sep 17 00:00:00 2001 From: Leo <98382335+gaoziman@users.noreply.github.com> Date: Mon, 22 Sep 2025 23:09:14 +0800 Subject: [PATCH] =?UTF-8?q?config:=20=E4=BC=98=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新application.yml主配置文件,完善系统基础配置 - 优化application-dev.yml开发环境配置 - 更新.gitignore文件,完善版本控制规则 - 调整根目录pom.xml依赖配置 --- .gitignore | 3 +++ .../src/main/resources/application-dev.yml | 18 +++++++++--------- .../src/main/resources/application.yml | 2 +- pom.xml | 14 ++++++++++++++ 4 files changed, 27 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 328456a..e0e4af8 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,6 @@ spy.log ### Upload Files ### picture/ + +### Local Configuration Files ### +**/application-local.yml 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 4616bfe..62b845e 100755 --- a/coder-common-thin-web/src/main/resources/application-dev.yml +++ b/coder-common-thin-web/src/main/resources/application-dev.yml @@ -31,7 +31,7 @@ spring: # 主库数据源 master: # 没有@DS,默认数据源 type: ${spring.datasource.type} - url: jdbc:mysql://localhost:3306/coder-common-thin?serverTimezone=GMT%2b8&useUnicode=true&characterEncoding=utf-8&useSSL=false&rewriteBatchedStatements=true + url: jdbc:mysql://localhost:3306/xxxxxxxx?serverTimezone=GMT%2b8&useUnicode=true&characterEncoding=utf-8&useSSL=false&rewriteBatchedStatements=true driver-class-name: com.mysql.cj.jdbc.Driver username: root password: coder @@ -39,7 +39,7 @@ spring: slave: # @DS("dsName"),dsName可以为组名也可以为具体某个库的名称,使用多数据源遵循格式,注解都在mapper层使用。 lazy: true type: ${spring.datasource.type} - url: jdbc:mysql://localhost:3306/coder-common-thin-backup?serverTimezone=GMT%2b8&useUnicode=true&characterEncoding=utf-8&useSSL=false&rewriteBatchedStatements=true + url: jdbc:mysql://localhost:3306/xxxxxxxx?serverTimezone=GMT%2b8&useUnicode=true&characterEncoding=utf-8&useSSL=false&rewriteBatchedStatements=true driver-class-name: com.mysql.cj.jdbc.Driver username: root password: coder @@ -89,7 +89,7 @@ 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 + filePath: # 存储服务配置 storage: # 存储类型:local(本地存储) | oss(阿里云OSS) @@ -99,17 +99,17 @@ coder: # 是否启用OSS存储 enabled: true # OSS服务端点 - endpoint: oss-cn-hangzhou.aliyuncs.com + endpoint: xxxxxxxx # 访问密钥ID - access-key-id: ${OSS_ACCESS_KEY_ID:LTAI5t982gXi7A72gAa9yugE} + access-key-id: xxxxxxxx # 访问密钥Secret - access-key-secret: ${OSS_ACCESS_KEY_SECRET:Mi9ZsSWLGkvFoMiLNiZ71hHFzVso30} + access-key-secret: xxxxxxxx # 存储桶名称 - bucket-name: gaoziman + bucket-name: xxxxxxxx # 自定义域名(可选) - domain: https://gaoziman.oss-cn-hangzhou.aliyuncs.com + domain: xxxxxxxx # 路径前缀 - path-prefix: coder-files + path-prefix: xxxxxxxx # 是否使用HTTPS https: true # 连接超时时间(毫秒) diff --git a/coder-common-thin-web/src/main/resources/application.yml b/coder-common-thin-web/src/main/resources/application.yml index beb2536..d98d544 100755 --- a/coder-common-thin-web/src/main/resources/application.yml +++ b/coder-common-thin-web/src/main/resources/application.yml @@ -25,7 +25,7 @@ spring: encoding: UTF-8 basename: i18n/messages profiles: - active: dev + active: local # 操作日志配置 coder: diff --git a/pom.xml b/pom.xml index f1dd12b..b62d7cc 100644 --- a/pom.xml +++ b/pom.xml @@ -52,6 +52,8 @@ 1.6.2 2.3.34 2.7.0 + 3.17.4 + 8.5.7 3.14.0 @@ -216,6 +218,18 @@ springdoc-openapi-starter-webmvc-ui ${springdoc.version} + + + com.aliyun.oss + aliyun-sdk-oss + ${aliyun.oss.version} + + + + io.minio + minio + ${minio.version} +