利用mybatis 攔截器插件功能實現分片SQL

關於mybatis的攔截器 請移步 mybatis 攔截器實現 咱們今天就根據這個插件 實現根據值hash分表功能 首先 準備一個 註解類java Share @Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Inherited @Documented public @interface Share { pu
相關文章
相關標籤/搜索