75 lines
2.4 KiB
YAML
75 lines
2.4 KiB
YAML
server:
|
||
port: 8080
|
||
|
||
spring:
|
||
datasource:
|
||
url: jdbc:mysql://110.42.41.177:3306/dating?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
|
||
username: root
|
||
password: JoyeeServe2025
|
||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
redis:
|
||
host: 110.42.41.177
|
||
port: 6389
|
||
password: ""
|
||
database: 0
|
||
timeout: 10000
|
||
# 连接池配置(lettuce是Spring Boot默认Redis客户端,性能更优)
|
||
lettuce:
|
||
pool:
|
||
max-active: 8 # 连接池最大连接数(默认8,可根据业务并发调整)
|
||
max-wait: -1 # 连接池最大阻塞等待时间(毫秒,-1表示无限制)
|
||
max-idle: 8 # 连接池最大空闲连接数(默认8)
|
||
min-idle: 1 # 连接池最小空闲连接数(默认0,建议设置1-4,提高连接复用率)
|
||
# 邮箱SMTP配置
|
||
mail:
|
||
host: smtp.163.com # QQ邮箱SMTP服务器地址
|
||
port: 465 # SMTP端口
|
||
username: 19271189822@163.com # 发件人邮箱
|
||
password: CAwXh39PXajy3fyH # 邮箱授权码
|
||
default-encoding: UTF-8
|
||
properties:
|
||
mail:
|
||
smtp:
|
||
auth: true
|
||
starttls:
|
||
enable: true
|
||
required: true
|
||
ssl:
|
||
enable: true # 使用587端口时设为false,使用465端口时设为true
|
||
connectiontimeout: 10000 # 连接超时时间(毫秒)
|
||
timeout: 10000 # 读取超时时间(毫秒)
|
||
writetimeout: 10000 # 写入超时时间(毫秒)
|
||
# MyBatis 配置
|
||
mybatis:
|
||
mapper-locations: classpath:mapper/*.xml
|
||
type-aliases-package: com.bao.dating.pojo
|
||
configuration:
|
||
map-underscore-to-camel-case: true
|
||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||
|
||
# 阿里云 OSS 配置
|
||
aliyun:
|
||
oss:
|
||
endpoint: oss-cn-beijing.aliyuncs.com
|
||
access-key-id: LTAI5t5vpcbCZwweNHEDDDaF
|
||
access-key-secret: bBHBAPiCqGyVBHUv07348wsHXkKqrk
|
||
bucket-name: heimatoo
|
||
accessKeyId: LTAI5t5vpcbCZwweNHEDDDaF
|
||
secret: bBHBAPiCqGyVBHUv07348wsHXkKqrk
|
||
scenes: antispam
|
||
# 阿里云短信服务配置
|
||
sms:
|
||
access-key-id: LTAI5t5vpcbCZwweNHEDDDaF
|
||
access-key-secret: bBHBAPiCqGyVBHUv07348wsHXkKqrk
|
||
region-id: cn-hangzhou
|
||
sign-name: 速通互联验证码
|
||
template-code: 100001
|
||
|
||
# ip2location.io 相关配置
|
||
ip2location:
|
||
api:
|
||
key: 95F4AB991174E296AFD5AD0EF927B2ED # ip2location.io API密钥
|
||
url: https://api.ip2location.io/
|
||
timeout: 5000 # 请求超时时间(毫秒)
|
||
|