Java后端
·2024-04-26#提问# 项目在启动时mybatis-plus的多数据源块dynamic-datasource报错,但是配置文件是复用的主项目的,
报错信息为context with path [/bw_yto] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: com.baomidou.dynamic.datasource.exception.CannotFindDataSourceException: dynamic-datasource can not find primary datasource
### The error may exist in com/baiwang/bwyto/ytjx/mapper/InvoiceCodeRelationMapper.java (best guess)
### The error may involve com.baiwang.bwyto.ytjx.mapper.InvoiceCodeRelationMapper.selectList
### The error occurred while executing a query
### Cause: com.baomidou.dynamic.datasource.exception.CannotFindDataSourceException: dynamic-datasource can not find primary datasource] with root cause
com.baomidou.dynamic.datasource.exception.CannotFindDataSourceException: dynamic-datasource can not find primary datasource
3
0
分享
操作
评论
问答助学
相关内容
0个评论
全部评论
点击登录,快来和大家讨论吧~
表情
图片
暂无评论
