配置mycat ascii码通配取模报错信息:
Caused by: java.lang.ClassNotFoundException: org.opencloudb.route.function.PartitionByPrefixPattern
是因为这个1.6版本做了改动,对应的。jar文件在io.mycat.route.function.PartitionByPrefixPattern下
所以function 这么写:
<function name="sharding-by-prifixpattern" class="io.mycat.route.function.PartitionByPrefixPattern"> <property name="patternValue">8</property> <property name="prefixLength">1</property> <property name="mapFile">partition-pattern.txt</property> </function>
原文链接:https://www.f2er.com/centos/377243.html