mirror of
https://github.com/zongzibinbin/MallChat.git
synced 2026-03-13 21:53:41 +08:00
67 lines
2.0 KiB
YAML
67 lines
2.0 KiB
YAML
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
|
||
hikari:
|
||
minimum-idle: 3
|
||
maximum-pool-size: 10
|
||
max-lifetime: 30000 #不能小于30秒,否则默认回到1800秒
|
||
connection-test-query: SELECT 1
|
||
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}
|
||
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值
|
||
chatai:
|
||
chatgpt:
|
||
use: ${mallchat.chatgpt.use}
|
||
AIUserId: ${mallchat.chatgpt.uid}
|
||
key: ${mallchat.chatgpt.key}
|
||
proxyUrl: ${mallchat.chatgpt.proxyUrl}
|
||
chatglm2:
|
||
use: ${mallchat.chatglm2.use}
|
||
url: ${mallchat.chatglm2.url}
|
||
minute: 3 # 每个用户每3分钟可以请求一次
|
||
AIUserId: ${mallchat.chatglm2.uid}
|