Files
minispringboot/src/main/resources/application.yml
T
chenglijuan 14e6058725 提交
2026-04-21 11:30:56 +08:00

45 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
server:
port: 8080
spring:
application:
name: mini_program
datasource:
url: jdbc:mysql://txy.588580.xyz:3306/mini?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
password: 123
driver-class-name: com.mysql.cj.jdbc.Driver
redis:
# Redis 服务器地址
host: localhost
# Redis 服务器端口
port: 6379
# Redis 数据库索引(默认 0
database: 0
# 连接超时时间(毫秒)
timeout: 5000
# 连接池配置
lettuce:
pool:
# 最大连接数
max-active: 8
# 最大空闲连接数
max-idle: 8
# 最小空闲连接数
min-idle: 0
# 连接耗尽时的最大等待时间(负值表示无限等待)
max-wait: -1ms
# 微信小程序配置
wx:
miniapp:
# 小程序AppID
appid: wx50fe0c5c28dd3060
# 小程序AppSecret
secret: e82fa407fad13a9df35503f2d176e5a4
# MyBatis配置
mybatis:
mapper-locations: classpath:mapper/*.xml
type-aliases-package: com.example.demo.mini.entity
configuration:
map-underscore-to-camel-case: true