Skip to content

Commit 7c2f252

Browse files
committed
update doc
1 parent 010c917 commit 7c2f252

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767

6868
[使用指南](http://dangdangdotcom.github.io/sharding-jdbc/post/user_guide/)
6969

70+
[基于暗示(Hint)的分片键值注册方法](http://dangdangdotcom.github.io/sharding-jdbc/post/hint_shardingvalue/)
71+
7072
[详细功能列表](http://dangdangdotcom.github.io/sharding-jdbc/post/features/)
7173

7274
[核心概念](http://dangdangdotcom.github.io/sharding-jdbc/post/conpects/)

sharding-jdbc-core/src/test/java/com/dangdang/ddframe/rdb/integrate/AbstractDBUnitTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
public abstract class AbstractDBUnitTest {
4848

49-
public static final DatabaseType CURRENT_DB_TYPE = DatabaseType.MySQL;
49+
public static final DatabaseType CURRENT_DB_TYPE = DatabaseType.H2;
5050

5151
private static final Map<String, DataSource> DATA_SOURCES = new HashMap<>();
5252

sharding-jdbc-doc/content/post/hint_shardingvalue.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
+++
22
date = "2016-02-05T17:03:18+08:00"
3-
title = "基于暗示的分片键值注册方法"
3+
title = "基于暗示(Hint)的分片键值注册方法"
44
weight = 12
55
+++
66

7-
# 基于暗示的分片键值注册方法
7+
# 基于暗示(Hint)的分片键值注册方法
88

99
> 提示:阅读本文前请详细预读 [使用指南](../user_guide)
1010
@@ -26,7 +26,7 @@ __现有一个假设,如果`WHERE`中没有`user_id`和`order_id`的条件,
2626

2727
答案是肯定的。下面就介绍一下`Sharding-JDBC`对这个问题的解决方法。
2828

29-
## 基于暗示的分片键值管理器
29+
## 基于暗示(Hint)的分片键值管理器
3030
要解决上面的问题,我们使用`com.dangdang.ddframe.rdb.sharding.api.HintShardingValueManager`
3131
该管理器是使用`ThreadLocal`技术管理分片键值的。
3232
使用例子:

sharding-jdbc-doc/content/post/user_guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,4 +386,4 @@ String sql = "SELECT i.* FROM t_order o JOIN t_order_item i ON o.order_id=i.orde
386386
```
387387
该数据源与普通数据源完全相同,你可以通过上例的API形式来使用,也可以将其配置在Spring,Hibernate等框架中使用。
388388

389-
> 如果希望不依赖于表中的列传入分片键值,参考:[基于暗示的分片键值注册方法](../hint_shardingvalue)
389+
> 如果希望不依赖于表中的列传入分片键值,参考:[基于暗示(Hint)的分片键值注册方法](../hint_shardingvalue)

0 commit comments

Comments
 (0)