2024-05-02 22:25:29 +08:00
|
|
|
|
server:
|
|
|
|
|
port: 8800
|
|
|
|
|
|
|
|
|
|
spring:
|
|
|
|
|
profiles:
|
|
|
|
|
active: dev
|
|
|
|
|
application:
|
|
|
|
|
name: bunny-service
|
|
|
|
|
|
|
|
|
|
datasource:
|
|
|
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
url: jdbc:mysql://${bunny.datasource.host}:${bunny.datasource.port}/${bunny.datasource.sqlData}?serverTimezone=GMT%2B8&useSSL=false&characterEncoding=utf-8&allowPublicKeyRetrieval=true
|
|
|
|
|
username: ${bunny.datasource.username}
|
|
|
|
|
password: ${bunny.datasource.password}
|
|
|
|
|
|
|
|
|
|
data:
|
|
|
|
|
redis:
|
|
|
|
|
host: ${bunny.redis.host}
|
|
|
|
|
port: ${bunny.redis.port}
|
|
|
|
|
database: ${bunny.redis.database}
|
|
|
|
|
password: ${bunny.redis.password}
|
|
|
|
|
lettuce:
|
|
|
|
|
pool:
|
|
|
|
|
max-active: 20 #最大连接数
|
|
|
|
|
max-wait: -1 #最大阻塞等待时间(负数表示没限制)
|
|
|
|
|
max-idle: 5 #最大空闲
|
|
|
|
|
min-idle: 0 #最小空闲
|
|
|
|
|
|
|
|
|
|
jackson:
|
|
|
|
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
|
|
|
time-zone: GMT+8
|
2024-05-03 18:38:55 +08:00
|
|
|
|
security:
|
|
|
|
|
user:
|
|
|
|
|
name: user
|
|
|
|
|
password: 1
|
2024-05-02 22:25:29 +08:00
|
|
|
|
|
2024-05-07 14:15:49 +08:00
|
|
|
|
mail:
|
|
|
|
|
host: smtp.qq.com # 邮箱地址
|
|
|
|
|
port: 465 # 邮箱端口号
|
|
|
|
|
username: 3324855376@qq.com # 设置发送邮箱
|
|
|
|
|
password: axyqbvfuxkdqdaai # 如果是纯数字要加引号
|
|
|
|
|
default-encoding: UTF-8 # 设置编码格式
|
|
|
|
|
protocol: smtps
|
|
|
|
|
properties:
|
|
|
|
|
mail:
|
|
|
|
|
debug: true # 是否开启debug模式发送邮件
|
|
|
|
|
smtp:
|
|
|
|
|
auth: true
|
|
|
|
|
connectionTimeout: 5000 # 设置连接延迟
|
|
|
|
|
timeout: 5000 # 延迟时间
|
|
|
|
|
writeTimeout: 5000 # 写入邮箱延迟
|
|
|
|
|
allow8BitMime: true
|
|
|
|
|
sendPartial: true
|
|
|
|
|
ssl:
|
|
|
|
|
enabled: true # 是否开启SSL连接
|
|
|
|
|
socketFactory:
|
|
|
|
|
class: javax.net.ssl.SSLSocketFactory # 必要设置!!!
|
|
|
|
|
|
2024-05-03 16:55:03 +08:00
|
|
|
|
mybatis-plus:
|
|
|
|
|
mapper-locations: classpath:mapper/*.xml
|
|
|
|
|
configuration:
|
|
|
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
|
|
|
|
|
|
2024-05-02 22:25:29 +08:00
|
|
|
|
logging:
|
|
|
|
|
level:
|
|
|
|
|
cn.bunny.service.mapper: debug
|
|
|
|
|
cn.bunny.service.controller: info
|
|
|
|
|
cn.bunny.service.service: info
|
|
|
|
|
pattern:
|
|
|
|
|
dateformat: HH:mm:ss:SSS
|
|
|
|
|
file:
|
2024-05-03 16:55:03 +08:00
|
|
|
|
path: "logs/${spring.application.name}"
|
|
|
|
|
|
2024-05-05 20:19:31 +08:00
|
|
|
|
snowflake:
|
|
|
|
|
#数据中心id位数
|
|
|
|
|
datacenterBits: 5
|
|
|
|
|
# 机器id位数
|
|
|
|
|
workerBits: 5
|
|
|
|
|
# 序列id所占位数
|
|
|
|
|
sequenceBits: 12
|
|
|
|
|
# 数据中心id,范围0-2^5-1
|
|
|
|
|
datacenterId: 1
|
|
|
|
|
# 机器id,范围0-2^5-1
|
|
|
|
|
workerId: 1
|
|
|
|
|
# 时间戳起始点(2024-01-01 00::00:00 的毫秒数)
|
|
|
|
|
twepoch: 1704038400000
|
|
|
|
|
#单次批量生成id的最大数量 默认10万
|
|
|
|
|
maxBatchCount: 100000
|