2024-11-05 17:10:26 +08:00
|
|
|
|
|
|
|
|
|
spring:
|
|
|
|
|
application:
|
|
|
|
|
name: YuNan-demo
|
|
|
|
|
datasource:
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
url: jdbc:mysql://localhost:3306/yuna_blog_sys
|
|
|
|
|
username: root
|
|
|
|
|
password: wucong.0235332
|
|
|
|
|
mvc:
|
|
|
|
|
pathmatch:
|
|
|
|
|
matching-strategy: ant-path-matcher
|
|
|
|
|
|
|
|
|
|
#****************************mail***************************
|
|
|
|
|
mail:
|
|
|
|
|
# SMTP服务器,这个是QQ邮箱的 其他邮箱请另行百度
|
|
|
|
|
host: smtp.qq.com
|
|
|
|
|
port: 465
|
|
|
|
|
# 发送验证码的邮箱
|
|
|
|
|
username: 3194726156@qq.com
|
|
|
|
|
# 授权码
|
|
|
|
|
password: ljtcrhshbfjodgfh
|
|
|
|
|
# 编码
|
|
|
|
|
default-encoding: utf-8
|
|
|
|
|
# 其它参数
|
|
|
|
|
properties:
|
|
|
|
|
mail:
|
|
|
|
|
smtp:
|
|
|
|
|
# 如果是用 SSL 方式,需要配置如下属性,使用qq邮箱的话需要开启
|
|
|
|
|
ssl:
|
|
|
|
|
enable: true
|
|
|
|
|
required: true
|
|
|
|
|
# 邮件接收时间的限制,单位毫秒
|
|
|
|
|
timeout: 10000
|
|
|
|
|
# 连接时间的限制,单位毫秒
|
|
|
|
|
connectiontimeout: 10000
|
|
|
|
|
# 邮件发送时间的限制,单位毫秒
|
|
|
|
|
writetimeout: 10000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#****************************Redis***************************
|
|
|
|
|
redis:
|
|
|
|
|
host: localhost # Redis 服务器地址
|
|
|
|
|
port: 6379 # Redis 服务器端口
|
|
|
|
|
password: # 如果 Redis 设置了密码
|
|
|
|
|
database: 0 # 使用的数据库索引,默认是 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server:
|
|
|
|
|
port: 8080
|
|
|
|
|
|
|
|
|
|
logging:
|
|
|
|
|
level:
|
|
|
|
|
org.springframework.boot.context.web: DEBUG
|
2024-11-09 13:22:03 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|