Files
dating/src/main/resources/application.yml

55 lines
1.7 KiB
YAML
Raw Normal View History

2025-12-15 11:55:31 +08:00
server:
port: 8080
spring:
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-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-17 19:55:24 +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
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# 阿里云 OSS 配置
aliyun:
oss:
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