一 、修改 config-sharding.yaml 並重啓服務 ./start.sh
二、在代理中間件中t_product添加2條測試數據
如圖,product_id爲1的數據在t_product_1表中,product_id爲2的數據在t_product_0表中
如圖,product_id爲1的數據在t_product_1表中,product_id爲2的數據在t_product_0表中
https://stackoverflow.com/questions/419163/what-does-if-name-main-do