mirror of
https://github.com/zongzibinbin/MallChat.git
synced 2026-03-14 22:23:42 +08:00
项目基础搭建
This commit is contained in:
60
mallchat-common/src/main/resources/application.yml
Normal file
60
mallchat-common/src/main/resources/application.yml
Normal file
@@ -0,0 +1,60 @@
|
||||
logging:
|
||||
level:
|
||||
org.springframework.web: INFO
|
||||
com.github.binarywang.demo.wx.mp: DEBUG
|
||||
me.chanjar.weixin: DEBUG
|
||||
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath:mapper/**/*.xml
|
||||
configuration:
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
map-underscore-to-camel-case: true
|
||||
spring:
|
||||
profiles:
|
||||
#运行的环境
|
||||
active: test
|
||||
application:
|
||||
name: mallchat
|
||||
datasource:
|
||||
url: jdbc:mysql://${mallchat.mysql.ip}:${mallchat.mysql.port}/${mallchat.mysql.db}?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
username: ${mallchat.mysql.username}
|
||||
password: ${mallchat.mysql.password}
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
mvc:
|
||||
pathmatch:
|
||||
matching-strategy: ANT_PATH_MATCHER
|
||||
redis:
|
||||
# Redis服务器地址
|
||||
host: ${mallchat.redis.host}
|
||||
# Redis服务器端口号
|
||||
port: ${mallchat.redis.port}
|
||||
# 使用的数据库索引,默认是0
|
||||
database: 0
|
||||
# 连接超时时间
|
||||
timeout: 1800000
|
||||
# 设置密码
|
||||
password: ${mallchat.redis.password}
|
||||
lettuce:
|
||||
pool:
|
||||
# 最大阻塞等待时间,负数表示没有限制
|
||||
max-wait: -1
|
||||
# 连接池中的最大空闲连接
|
||||
max-idle: 5
|
||||
# 连接池中的最小空闲连接
|
||||
min-idle: 0
|
||||
# 连接池中最大连接数,负数表示没有限制
|
||||
max-active: 20
|
||||
jackson:
|
||||
serialization:
|
||||
write-dates-as-timestamps: true
|
||||
jwt:
|
||||
secret: ${mallchat.jwt.secret}
|
||||
wx:
|
||||
mp:
|
||||
# callback: http://f4cd-113-92-129-127.ngrok.io
|
||||
callback: ${mallchat.wx.callback}
|
||||
configs:
|
||||
- appId: ${mallchat.wx.appId} # 第一个公众号的appid
|
||||
secret: ${mallchat.wx.secret} # 公众号的appsecret
|
||||
token: ${mallchat.wx.token} # 接口配置里的Token值
|
||||
aesKey: ${mallchat.wx.aesKey} # 接口配置里的EncodingAESKey值
|
||||
Reference in New Issue
Block a user