my project user springboot+mybatis+shardingjdbc
version
springboot version is 2.3.5.RELEASE
enter image description here
mybatis-plus 3.5.1
sharding-jdbc-spring-boot-starter 4.1.1
enter image description here
bootstrap.properties
enter image description here
description
one database ds0
geo is divided into 4 table geo_0 geo_1 geo_2 geo_3. logic table is geo
area_code is my sharding-column
set custom Algorithm GeoPreciseAlgorithm and GeoRangeAlgorithm
GeoPreciseAlgorithm implemets PreciseShardingAlgorithm
and GeoRangeAlgorithm implements RangeShardingAlgorithm
when I insert one data
enter image description here
enter image description here
error
enter image description here
I don’t know why the data can be save into logic table?
my custom Algorithm are no use
please give an answer thanks
1.alter properties
2.alter mybatis-plus configuration
崔梦豪 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.