Replies: 3 comments 5 replies
-
|
我的数据库没有用mysql,改用的国产数据库 gbase-8s |
Beta Was this translation helpful? Give feedback.
0 replies
-
建议在这2个地方打上断点,进行调试,观察在执行 grantGeneralApplication 方法时, getDataSource 方法的入参和返回参数是什么。
我用mysql 测试是没问题的 |
Beta Was this translation helpful? Give feedback.
0 replies
-
重点看:
1. 入参: ds
2. dataSourceMap 里面的值
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Uh oh!
There was an error while loading. Please reload this page.
-
版本信息 (必填):
后端使用的是: lamp-datasource-max、lamp-util-max ,5.X的版本。
JDK 版本(必填) : 17
源码版本(必填):5.0.8
MySQL(必填): 8.0.28
Nacos(必填):2.4.0
#问题描述:
审批租户时,执行 DefTenantServiceImpl 类下 updateStatus 方法 中的 initSystemContext.initData(tenantConnect); 这个方法之后,再去执行后续授权租户应用方法报错,好像是没有切换回默认库去查询,但是我主动在代码里设置ContextUtil.setTenantId(DsConstant.DEFAULTS); ,也不生效,日志只出现了这行sql,但是没有出现数据源链接
#报错截图:

Beta Was this translation helpful? Give feedback.
All reactions