Files
tlmall-v5-single/tulingmall-member/src/main/resources/application.yml
2025-10-27 18:06:57 +08:00

46 lines
1.2 KiB
YAML

server:
port: 8877
#spring:
# rabbitmq:
# host: 192.168.159.8
# port: 5672
# virtual-host: tulingmall
# username: smlz
# password: smlz
# publisher-confirms: true #如果对异步消息需要回调必须设置为true
mybatis:
mapper-locations:
- classpath:dao/*.xml
- classpath*:com/**/mapper/*.xml
#jwt:
# tokenHeader: Authorization #JWT存储的请求头
# secret: mall-portal-secret #JWT加解密使用的密钥
# expiration: 604800 #JWT的超期限时间(60*60*24)
# tokenHead: bearer #JWT负载中拿到开头
# 自定义redis键值
#redis:
# key:
# prefix:
# authCode: "portal:authCode:"
# orderId: "portal:orderId:"
# expire:
# authCode: 90 # 验证码超期时间
spring:
# 选择redis为session存储
session:
store-type: redis
# redis:
# host: 218.76.8.107
# port: 6379
# database: 0
# lettuce:
# pool:
# max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
# max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
# max-idle: 8 # 连接池中的最大空闲连接
# min-idle: 0 # 连接池中的最小空闲连接
# timeout: 3000ms # 连接超时时间(毫秒)
# password: Xiao196114.