目 录CONTENT

文章目录

解决调试sharding-jdbc遇到异常IllegalStateException: no table route info的问题

ByteNews
2021-02-02 / 0 评论 / 0 点赞 / 10,381 阅读 / 788 字 / 正在检测是否收录...
温馨提示:
本文最后更新于 2022-02-02,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。
  • 解决调试sharding-jdbc遇到异常IllegalStateException: no table route info的问题

msg: "nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error updating database. Cause: java.lang.IllegalStateException: no table route info ### The error may exist in com/ruoyi/res/mapper/ResContentMapper.java (best guess) ### The error may involve com.ruoyi.res.mapper.ResContentMapper.insert-Inline ### The error occurred while setting parameters ### SQL: INSERT INTO res_content ( id, book_id, chapter_id, encode_name, local_url, sequence, url ) VALUES ( ?, ?, ?, ?, ?, ?, ? ) ### Cause: java.lang.IllegalStateException: no table route info",
code: 500

只提供解决问题的方法论:(可以解决80%以上的代码异常错误)

  • 仔细,再仔细,再仔细地-看日志(很重要)----不要第一时间就想搜索引擎-百度

  • 认真,再认真,再认真地-看日志(很重要)----不要第一时间就想搜索引擎-百度

  • 认真,再认真,再认真地-看日志(很重要)----不要第一时间就想搜索引擎-百度

  • 然后但断点,看源码--看问题--分析造成问题的原因(最后比对)

在这里插入图片描述

参考资料:

sharding-jdbc遇到常见异常问题

0

评论区