application.yml
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
server:
port: 8080
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://mysql.diligrp.com:3306/dili_rider?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
username: root
password: OTM0NjAwMTMyMjZlNzgy
data:
redis:
host: redis.diligrp.com
port: 6379
password:
database: 0
timeout: 3000ms
mybatis-plus:
mapper-locations: classpath:mapper/*.xml
type-aliases-package: com.diligrp.rider.entity
configuration:
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
logic-delete-field: isDel
logic-delete-value: 1
logic-not-delete-value: 0
jwt:
secret: diligrp-rider-secret-key-2024-please-change-this
expire: 604800 # 7天,单位秒
jpush:
enabled: true # 未配置 AppKey 前置 false,避免启动时报错
app-key: fd6e826ae6e67eaf7a7062c4
master-secret: 6eaa9a8d11493b56812b6ee9
apns-production: false # iOS APNs:true=生产 false=开发
time-to-live: 86400 # 离线消息保留秒数(默认 1 天)
amap:
enabled: true # false 时跳过高德调用,ETA 走直线距离 + 公式
key: 5aa7f0260a51dcb2f1dda3130f9a0dbd # 高德 Web 服务 API Key,可由环境变量注入
base-url: https://restapi.amap.com
connect-timeout-millis: 3000
read-timeout-millis: 3000
logging:
level:
com.diligrp.rider: debug