tddl使用异常,报"Cause: java.sql.SQLException: the defaultDispatcher have no dbIndexMap and defaultDbIndex"错误

发布于 2021-12-03 15:14:27 字数 1646 浏览 820 评论 2

@齐百超 你好,我想请教个问题,我现在用的tddl是3.3.3.1版本,向数据库插入数据的时候会出现如下错误提示:

org.springframework.jdbc.UncategorizedSQLException: 
### Error updating database.  Cause: java.sql.SQLException: the defaultDispatcher have no dbIndexMap and defaultDbIndex
### The error may involve com.phoenix.ticket.mapper.OrderOriginalMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into order_original (orderCode, lotCode, issueNo,userId, userName, betMulti,     betNumber, unitPrice, totalPrice,betTime, updateTime, betSource,     orderType, spiltNum, buyNum,orderStatus, revokeFlag, winStatus,     pretaxBonus, aftertaxBonus, sendFlag,clearFlag, ticketTime, gameSessions,     firstEndTime, playType, parentId,supId, betContent)     values (?, ?, ?,     ?, ?, ?,     ?, ?, ?,     ?, ?, ?,     ?, ?, ?,     ?, ?, ?,     ?, ?, ?,     ?, ?, ?,     ?, ?, ?,     ?, ?)
### Cause: java.sql.SQLException: the defaultDispatcher have no dbIndexMap and defaultDbIndex
; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; the defaultDispatcher have no dbIndexMap and defaultDbIndex; nested exception is java.sql.SQLException: the defaultDispatcher have no dbIndexMap and defaultDbIndex

弄了两天一直没有找到原因,请问是怎么回事?先谢谢了

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

回眸一笑 2021-12-03 18:08:45

有主键,而且是自增长的,ps:用的数据库是mysql

奢华的一滴泪 2021-12-03 16:29:43

你表中加个主键试试

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文