Insert statement does not support sharding table routing to multiple data nodes

shardingsphere配置完成,主键策略也配置好了,但是报错Insert statement does not support sharding table routing to multiple data nodes。
原因是,实体类没有标识主键id,用的mybatisplus包
Insert statement does not support sharding table routing to multiple data nodes_第1张图片
打开注释就好

你可能感兴趣的:(错误记录,mysql)