From 28928b1b152cfb3e21d8fa0aecaee1fe8fc10f64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=98=8E=E4=BC=9F?= Date: Thu, 18 Jun 2020 12:38:26 +0800 Subject: [PATCH] doc up --- budo-sharding-proxy/README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/budo-sharding-proxy/README.md b/budo-sharding-proxy/README.md index 3d2da97..12aef34 100644 --- a/budo-sharding-proxy/README.md +++ b/budo-sharding-proxy/README.md @@ -1,19 +1,22 @@ # budo-sharding-proxy ``` +// Mongo 连接地址 private static final String URL = "jdbc:mongo://192.168.4.32:27017/taobao"; public static void main(String[] args) { BudoShardingProxy budoShardingProxy = new BudoShardingProxy(); - budoShardingProxy.target() // + budoShardingProxy.target() // 将查询转发到指定地址,使用指定驱动 .setUrl(URL) // - .setDriver(BudoMongoJdbcDriver.class.getName()); + .setDriver(BudoMongoJdbcDriver.class.getName()); // 实现了使用SQL操作Mongo的驱动 - budoShardingProxy.start(); + budoShardingProxy.start(); // 启动ShardingProxy } ``` +## 资料 + [shardingsphere-proxy-boot-mybatis-example](https://github.com/apache/shardingsphere/tree/master/examples/shardingsphere-proxy-example/shardingsphere-proxy-boot-mybatis-example/src/main/resources/conf) [shardingsphere-proxy-hint-example](https://github.com/apache/shardingsphere/tree/master/examples/shardingsphere-proxy-example/shardingsphere-proxy-hint-example/src/main/resources/conf) \ No newline at end of file