tddl使用异常,报"Cause: java.sql.SQLException: the defaultDispatcher have no dbIndexMap and defaultDbIndex"错误
@齐百超 你好,我想请教个问题,我现在用的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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有主键,而且是自增长的,ps:用的数据库是mysql
你表中加个主键试试