config: 优化项目配置文件

- 更新application.yml主配置文件,完善系统基础配置
- 优化application-dev.yml开发环境配置
- 更新.gitignore文件,完善版本控制规则
- 调整根目录pom.xml依赖配置
This commit is contained in:
Leo 2025-09-22 23:09:14 +08:00
parent 2a4fb00385
commit f57ec4a888
4 changed files with 27 additions and 10 deletions

3
.gitignore vendored
View File

@ -44,3 +44,6 @@ spy.log
### Upload Files ###
picture/
### Local Configuration Files ###
**/application-local.yml

View File

@ -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:/CoderFileLinux配置 /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
# 连接超时时间(毫秒)

View File

@ -25,7 +25,7 @@ spring:
encoding: UTF-8
basename: i18n/messages
profiles:
active: dev
active: local
# 操作日志配置
coder:

14
pom.xml
View File

@ -52,6 +52,8 @@
<captcha.version>1.6.2</captcha.version>
<freemarker.version>2.3.34</freemarker.version>
<springdoc.version>2.7.0</springdoc.version>
<aliyun.oss.version>3.17.4</aliyun.oss.version>
<minio.version>8.5.7</minio.version>
<!-- 插件版本 -->
<maven-compiler-plugin.verison>3.14.0</maven-compiler-plugin.verison>
@ -216,6 +218,18 @@
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>${springdoc.version}</version>
</dependency>
<!-- 阿里云OSS SDK -->
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<version>${aliyun.oss.version}</version>
</dependency>
<!-- MinIO SDK -->
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>${minio.version}</version>
</dependency>
</dependencies>
</dependencyManagement>