java.sql.SQLException: Failed to fetch schema of XXXX 问题

谁践踏了优雅 2023-10-05 21:50 95阅读 0赞

报错信息
i.s.r.d.s.s.c.AbstractTableMetaCache : get table meta error:Failed to fetch schema of XXXX表
java.sql.SQLException: Failed to fetch schema of XXXXX表

原因:
cloud项目中使用了seata的分布式事务,@GlobalTransactional 注解使用的分布式事务、其中xxx表中没有主键

解决办法:
给xxx表加一个主键ID就可以了

发表评论

表情:
评论列表 (有 0 条评论,95人围观)

还没有评论,来说两句吧...

相关阅读