Skip to content

Commit 3d8cadb

Browse files
committed
chore: 抽取本地配置并完善 ignore 规则
1 parent c1d51a3 commit 3d8cadb

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.gitignore

283 Bytes
Binary file not shown.

src/main/resources/application.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
spring:
22

3+
profiles:
4+
include: local
5+
36
application:
47
name: TinyFlow
58
datasource:
69
url: jdbc:mysql://localhost:3306/tiny-flow?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=utf8&connectionCollation=utf8mb4_unicode_ci
710
username: root
8-
password: 123456
11+
password: CHANGE_ME_DB_PASSWORD
912
driver-class-name: com.mysql.cj.jdbc.Driver
1013
hikari:
1114
maximum-pool-size: 100
@@ -21,9 +24,9 @@ spring:
2124
database-platform: org.hibernate.dialect.MySQL8Dialect
2225
data:
2326
redis:
24-
host: 47.97.110.128
27+
host: localhost
2528
port: 6379
26-
password: 123456
29+
password: CHANGE_ME_REDIS_PASSWORD
2730
timeout: 2s
2831
lettuce:
2932
pool:
@@ -209,6 +212,6 @@ resilience4j:
209212
# JWT 配置
210213
jwt:
211214
# 密钥(生产环境请使用环境变量或加密存储,至少256位)
212-
secret: 404E635266556A586E3272357538782F413F4428472B4B6250645367566B5970337336763979244226452948404D635166546A576E5A7134743777217A25432A
215+
secret: CHANGE_ME_SECRET_KEY
213216
# 过期时间(毫秒),默认7天
214217
expiration: 604800000

0 commit comments

Comments
 (0)