config: 优化项目配置文件
- 更新application.yml主配置文件,完善系统基础配置 - 优化application-dev.yml开发环境配置 - 更新.gitignore文件,完善版本控制规则 - 调整根目录pom.xml依赖配置
This commit is contained in:
parent
2a4fb00385
commit
f57ec4a888
3
.gitignore
vendored
3
.gitignore
vendored
@ -44,3 +44,6 @@ spy.log
|
|||||||
|
|
||||||
### Upload Files ###
|
### Upload Files ###
|
||||||
picture/
|
picture/
|
||||||
|
|
||||||
|
### Local Configuration Files ###
|
||||||
|
**/application-local.yml
|
||||||
|
|||||||
@ -31,7 +31,7 @@ spring:
|
|||||||
# 主库数据源
|
# 主库数据源
|
||||||
master: # 没有@DS,默认数据源
|
master: # 没有@DS,默认数据源
|
||||||
type: ${spring.datasource.type}
|
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
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
username: root
|
username: root
|
||||||
password: coder
|
password: coder
|
||||||
@ -39,7 +39,7 @@ spring:
|
|||||||
slave: # @DS("dsName"),dsName可以为组名也可以为具体某个库的名称,使用多数据源遵循格式,注解都在mapper层使用。
|
slave: # @DS("dsName"),dsName可以为组名也可以为具体某个库的名称,使用多数据源遵循格式,注解都在mapper层使用。
|
||||||
lazy: true
|
lazy: true
|
||||||
type: ${spring.datasource.type}
|
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
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
username: root
|
username: root
|
||||||
password: coder
|
password: coder
|
||||||
@ -89,7 +89,7 @@ coder:
|
|||||||
# 版本
|
# 版本
|
||||||
projectVersion: 1.0.0
|
projectVersion: 1.0.0
|
||||||
# 文件路径 示例[Windows配置D:/CoderFile,Linux配置 /usr/local/CoderFile]
|
# 文件路径 示例[Windows配置D:/CoderFile,Linux配置 /usr/local/CoderFile]
|
||||||
filePath: /Users/leocoder/leocoder/develop/templates/coder-common-thin/coder-common-thin-backend/picture
|
filePath:
|
||||||
# 存储服务配置
|
# 存储服务配置
|
||||||
storage:
|
storage:
|
||||||
# 存储类型:local(本地存储) | oss(阿里云OSS)
|
# 存储类型:local(本地存储) | oss(阿里云OSS)
|
||||||
@ -99,17 +99,17 @@ coder:
|
|||||||
# 是否启用OSS存储
|
# 是否启用OSS存储
|
||||||
enabled: true
|
enabled: true
|
||||||
# OSS服务端点
|
# OSS服务端点
|
||||||
endpoint: oss-cn-hangzhou.aliyuncs.com
|
endpoint: xxxxxxxx
|
||||||
# 访问密钥ID
|
# 访问密钥ID
|
||||||
access-key-id: ${OSS_ACCESS_KEY_ID:LTAI5t982gXi7A72gAa9yugE}
|
access-key-id: xxxxxxxx
|
||||||
# 访问密钥Secret
|
# 访问密钥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
|
||||||
https: true
|
https: true
|
||||||
# 连接超时时间(毫秒)
|
# 连接超时时间(毫秒)
|
||||||
|
|||||||
@ -25,7 +25,7 @@ spring:
|
|||||||
encoding: UTF-8
|
encoding: UTF-8
|
||||||
basename: i18n/messages
|
basename: i18n/messages
|
||||||
profiles:
|
profiles:
|
||||||
active: dev
|
active: local
|
||||||
|
|
||||||
# 操作日志配置
|
# 操作日志配置
|
||||||
coder:
|
coder:
|
||||||
|
|||||||
14
pom.xml
14
pom.xml
@ -52,6 +52,8 @@
|
|||||||
<captcha.version>1.6.2</captcha.version>
|
<captcha.version>1.6.2</captcha.version>
|
||||||
<freemarker.version>2.3.34</freemarker.version>
|
<freemarker.version>2.3.34</freemarker.version>
|
||||||
<springdoc.version>2.7.0</springdoc.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>
|
<maven-compiler-plugin.verison>3.14.0</maven-compiler-plugin.verison>
|
||||||
@ -216,6 +218,18 @@
|
|||||||
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
||||||
<version>${springdoc.version}</version>
|
<version>${springdoc.version}</version>
|
||||||
</dependency>
|
</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>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user