ShardingException: Cannot find data source in sharding rule, invalid actual data node is

报错:

Caused by: org.apache.shardingsphere.core.exception.ShardingException:
 Cannot find data source in sharding rule, invalid actual data node is: 'master0.t_order_0'

解决:

      master-slave-rules:
        master0:  #此处必须为  shardingsphere.names中列举的数据源
          master-data-source-name: master0
          slave-data-source-names: slave

你可能感兴趣的:(技巧,bug,exception)