add 增加 Mybatis 全局异常处理 开启多数据源切换 严格模式 找不到数据源报错

This commit is contained in:
疯狂的狮子Li
2022-04-08 11:43:21 +08:00
parent 6259a5e19f
commit 71ae01a546
2 changed files with 18 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ spring:
p6spy: true
# 开启seata代理开启后默认每个数据源都代理如果某个不需要代理可单独关闭
seata: true
# 严格模式 匹配不到数据源则报错
strict: true
druid:
initial-size: 5
min-idle: 5