I mean, separation, master-slave, speaking, reading and writing table depots, 
under the condition of the route query can be routed to the specific one from 
the table, now see your source code, is the only mandatory routing master 
database, to be honest is from library data consistent in all cases, how to 
manually assigned to specific from table rather than to change the 
configuration file and restart, are looking forward to your reply


------------------ ???????? ------------------
??????: "[email protected]"<[email protected]>;
????????: 2019??3??14??(??????) ????10:54
??????: "dev"<[email protected]>;

????: Re: ????????????



For English only

------------------

Liang Zhang (John)
Apache ShardingSphere & Dubbo


[email protected] <[email protected]> ??2019??3??14?????? ????7:03??????

> ????????
>     
> ????????????????????JPA????????????????????????????????????????????????????????????????????
>
> server.port=8080
> spring.jpa.hibernate.ddl-auto=update
> spring.jpa.show-sql=true
> spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
>
> sharding.jdbc.datasource.names=serverdb
>
> sharding.jdbc.datasource.serverdb.type=com.alibaba.druid.pool.DruidDataSource
> sharding.jdbc.datasource.serverdb.driver-class-name=com.mysql.jdbc.Driver
>
> sharding.jdbc.datasource.serverdb.url=jdbc:mysql://localhost:3306/xxx?characterEncoding=utf8&useSSL=false
> sharding.jdbc.datasource.serverdb.username=xxx
> sharding.jdbc.datasource.serverdb.password=xxx
>
> sharding.jdbc.config.sharding.tables.config.dynamic=true
> sharding.jdbc.config.sharding.tables.visit_api_log.config.dynamic=true
>
> sharding.jdbc.config.sharding.tables.visit_api_log.table-strategy.standard.sharding-column=date
>
> sharding.jdbc.config.sharding.tables.visit_api_log.table-strategy.standard.precise-algorithm-class-name=com.cong.testShardingSphere.algorithm.PreciseModuloShardingTableAlgorithm
>
>
> PreciseModuloShardingTableAlgorithm??????????????????????????????????????????"visit_api_log_201901??visit_api_log_201902??visit_api_log_201903????????
>
> ??????????????????????????????????????????????????visit_api_log????????????????????????????????????????"visit_api_log_201901??visit_api_log_201902??visit_api_log_201903????????????????????????????????
>     ????????????????????????????????????????????????visit_api_log??????????
>     
> ??????????????????????????????????????????????????????????????????????????????????????????????
>
>
>
>
>
>
>
>

Reply via email to