2025-12-15 11:55:31 +08:00
|
|
|
|
server:
|
|
|
|
|
|
port: 8080
|
|
|
|
|
|
|
|
|
|
|
|
spring:
|
2026-01-02 11:09:12 +08:00
|
|
|
|
mvc:
|
|
|
|
|
|
throw-exception-if-no-handler-found: true
|
|
|
|
|
|
web:
|
|
|
|
|
|
resources:
|
|
|
|
|
|
add-mappings: false
|
2025-12-15 11:55:31 +08:00
|
|
|
|
datasource:
|
2025-12-18 20:32:19 +08:00
|
|
|
|
url: jdbc:mysql://110.42.41.177:3306/dating?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
|
2025-12-15 11:55:31 +08:00
|
|
|
|
username: root
|
2025-12-18 20:32:19 +08:00
|
|
|
|
password: JoyeeServe2025
|
2025-12-17 19:55:24 +08:00
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
2025-12-27 19:32:58 +08:00
|
|
|
|
redis:
|
2026-01-05 09:55:41 +08:00
|
|
|
|
host: 110.42.41.177
|
|
|
|
|
|
port: 6389
|
2025-12-27 19:32:58 +08:00
|
|
|
|
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,提高连接复用率)
|
2025-12-24 23:13:50 +08:00
|
|
|
|
# 邮箱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 # 写入超时时间(毫秒)
|
2025-12-18 10:59:29 +08:00
|
|
|
|
# MyBatis 配置
|
2025-12-17 19:55:24 +08:00
|
|
|
|
mybatis:
|
|
|
|
|
|
mapper-locations: classpath:mapper/*.xml
|
|
|
|
|
|
type-aliases-package: com.bao.dating.pojo
|
|
|
|
|
|
configuration:
|
|
|
|
|
|
map-underscore-to-camel-case: true
|
2025-12-18 10:59:29 +08:00
|
|
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
|
|
|
|
|
|
|
|
# 阿里云 OSS 配置
|
|
|
|
|
|
aliyun:
|
|
|
|
|
|
oss:
|
2025-12-18 20:11:53 +08:00
|
|
|
|
endpoint: oss-cn-beijing.aliyuncs.com
|
2025-12-23 00:36:34 +08:00
|
|
|
|
access-key-id: LTAI5t5vpcbCZwweNHEDDDaF
|
|
|
|
|
|
access-key-secret: bBHBAPiCqGyVBHUv07348wsHXkKqrk
|
|
|
|
|
|
bucket-name: heimatoo
|
2025-12-18 21:37:46 +08:00
|
|
|
|
accessKeyId: LTAI5t5vpcbCZwweNHEDDDaF
|
|
|
|
|
|
secret: bBHBAPiCqGyVBHUv07348wsHXkKqrk
|
|
|
|
|
|
scenes: antispam
|
2025-12-24 23:13:50 +08:00
|
|
|
|
# 阿里云短信服务配置
|
2025-12-18 21:11:45 +08:00
|
|
|
|
sms:
|
|
|
|
|
|
access-key-id: LTAI5t5vpcbCZwweNHEDDDaF
|
|
|
|
|
|
access-key-secret: bBHBAPiCqGyVBHUv07348wsHXkKqrk
|
|
|
|
|
|
region-id: cn-hangzhou
|
|
|
|
|
|
sign-name: 速通互联验证码
|
|
|
|
|
|
template-code: 100001
|
2026-01-08 08:36:28 +08:00
|
|
|
|
|
|
|
|
|
|
# ip2location.io 相关配置
|
|
|
|
|
|
ip2location:
|
|
|
|
|
|
api:
|
|
|
|
|
|
key: 95F4AB991174E296AFD5AD0EF927B2ED # ip2location.io API密钥
|
|
|
|
|
|
url: https://api.ip2location.io/
|
|
|
|
|
|
timeout: 5000 # 请求超时时间(毫秒)
|
|
|
|
|
|
|