Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Shardingsphere
提交
8bfae9b4
Shardingsphere
项目概览
apache
/
Shardingsphere
通知
56
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Shardingsphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8bfae9b4
编写于
4月 19, 2017
作者:
H
haocao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update docs.
上级
228dd807
变更
18
显示空白变更内容
内联
并排
Showing
18 changed file
with
66 addition
and
56 deletion
+66
-56
sharding-jdbc-doc/content/00-overview/contribution.md
sharding-jdbc-doc/content/00-overview/contribution.md
+2
-2
sharding-jdbc-doc/content/00-overview/index.md
sharding-jdbc-doc/content/00-overview/index.md
+8
-4
sharding-jdbc-doc/content/00-overview/intro.md
sharding-jdbc-doc/content/00-overview/intro.md
+2
-2
sharding-jdbc-doc/content/00-overview/release-notes.md
sharding-jdbc-doc/content/00-overview/release-notes.md
+2
-2
sharding-jdbc-doc/content/01-start/faq.md
sharding-jdbc-doc/content/01-start/faq.md
+12
-5
sharding-jdbc-doc/content/01-start/features.md
sharding-jdbc-doc/content/01-start/features.md
+2
-2
sharding-jdbc-doc/content/01-start/index.md
sharding-jdbc-doc/content/01-start/index.md
+7
-7
sharding-jdbc-doc/content/01-start/quick-start.md
sharding-jdbc-doc/content/01-start/quick-start.md
+1
-1
sharding-jdbc-doc/content/02-guide/concepts.md
sharding-jdbc-doc/content/02-guide/concepts.md
+2
-2
sharding-jdbc-doc/content/02-guide/configuration.md
sharding-jdbc-doc/content/02-guide/configuration.md
+2
-2
sharding-jdbc-doc/content/02-guide/index.md
sharding-jdbc-doc/content/02-guide/index.md
+7
-7
sharding-jdbc-doc/content/02-guide/master-slave.md
sharding-jdbc-doc/content/02-guide/master-slave.md
+2
-2
sharding-jdbc-doc/content/02-guide/sharding.md
sharding-jdbc-doc/content/02-guide/sharding.md
+2
-2
sharding-jdbc-doc/content/02-guide/transaction.md
sharding-jdbc-doc/content/02-guide/transaction.md
+2
-2
sharding-jdbc-doc/content/03-design/architecture.md
sharding-jdbc-doc/content/03-design/architecture.md
+7
-7
sharding-jdbc-doc/content/03-design/index.md
sharding-jdbc-doc/content/03-design/index.md
+4
-4
sharding-jdbc-doc/content/03-design/module.md
sharding-jdbc-doc/content/03-design/module.md
+2
-2
sharding-jdbc-doc/content/03-design/roadmap.md
sharding-jdbc-doc/content/03-design/roadmap.md
+0
-1
未找到文件。
sharding-jdbc-doc/content/00-overview/contribution.md
浏览文件 @
8bfae9b4
...
...
@@ -3,8 +3,8 @@ toc = true
date = "2017-04-12T16:06:17+08:00"
title = "贡献代码"
weight = 3
prev = "/00-overview/release-note"
next = "/01-start/index"
prev = "/00-overview/release-note
s/
"
next = "/01-start/index
/
"
+++
...
...
sharding-jdbc-doc/content/00-overview/index.md
浏览文件 @
8bfae9b4
...
...
@@ -3,14 +3,19 @@ icon = "<b>0. </b>"
date = "2017-04-12T16:06:17+08:00"
title = "概览"
weight = 0
prev = "/03-design/roadmap"
next = "/00-overview/intro"
prev = "/03-design/roadmap
/
"
next = "/00-overview/intro
/
"
chapter = true
+++
# 概述
[
![GitHub release
](
https://img.shields.io/github/release/dangdangdotcom/sharding-jdbc.svg?style=social&label=Release
)
](https://github.com/dangdangdotcom/sharding-jdbc/releases)
[
![GitHub stars
](
https://img.shields.io/github/stars/dangdangdotcom/sharding-jdbc.svg?style=social&label=Star
)
](https://github.com/dangdangdotcom/sharding-jdbc/stargazers)
[
![GitHub forks
](
https://img.shields.io/github/forks/dangdangdotcom/sharding-jdbc.svg?style=social&label=Fork
)
](https://github.com/dangdangdotcom/sharding-jdbc/fork)
[
![GitHub watchers
](
https://img.shields.io/github/watchers/dangdangdotcom/sharding-jdbc.svg?style=social&label=Watch
)
](https://github.com/dangdangdotcom/sharding-jdbc/watchers)
Sharding-JDBC是当当应用框架ddframe中,关系型数据库模块dd-rdb中分离出来的数据库水平扩展框架,即透明化数据库分库分表访问。Sharding-JDBC继dubbox和Elastic-Job之后,是ddframe系列开源的第三个产品。
Sharding-JDBC定位为轻量级java框架,使用客户端直连数据库,以jar包形式提供服务,未使用中间层,无需额外部署,无其他依赖,DBA也无需改变原有的运维方式,可理解为增强版的JDBC驱动,旧代码迁移成本几乎为零。
...
...
@@ -18,8 +23,7 @@ Sharding-JDBC定位为轻量级java框架,使用客户端直连数据库,以
[
![Maven Status
](
https://maven-badges.herokuapp.com/maven-central/com.dangdang/sharding-jdbc/badge.svg
)
](https://maven-badges.herokuapp.com/maven-central/com.dangdang/sharding-jdbc)
[
![Build Status
](
https://secure.travis-ci.org/dangdangdotcom/sharding-jdbc.svg?branch=master
)
](https://travis-ci.org/dangdangdotcom/sharding-jdbc)
[
![Coverage Status
](
https://coveralls.io/repos/dangdangdotcom/sharding-jdbc/badge.svg?branch=master&service=github
)
](https://coveralls.io/github/dangdangdotcom/sharding-jdbc?branch=master)
[
![GitHub release
](
https://img.shields.io/github/release/dangdangdotcom/sharding-jdbc.svg
)
](https://github.com/dangdangdotcom/sharding-jdbc/releases)
[
![Hex.pm
](
http://dangdangdotcom.github.io/elastic-job/img/license.svg
)
](http://www.apache.org/licenses/LICENSE-2.0.html)
[
![Hex.pm
](
http://dangdangdotcom.github.io/sharding-jdbc/img/license.svg
)
](http://www.apache.org/licenses/LICENSE-2.0.html)
# 功能列表
...
...
sharding-jdbc-doc/content/00-overview/intro.md
浏览文件 @
8bfae9b4
...
...
@@ -3,8 +3,8 @@ toc = true
date = "2016-12-06T22:38:50+08:00"
title = "简介"
weight = 1
prev = "/00-overview"
next = "/00-overview/release-notes"
prev = "/00-overview
/index/
"
next = "/00-overview/release-notes
/
"
+++
...
...
sharding-jdbc-doc/content/00-overview/release-notes.md
浏览文件 @
8bfae9b4
...
...
@@ -3,8 +3,8 @@ toc = true
date = "2016-12-06T22:38:50+08:00"
title = "Release Notes"
weight = 2
prev = "/00-overview/intro"
next = "/00-overview/contribution"
prev = "/00-overview/intro
/
"
next = "/00-overview/contribution
/
"
+++
...
...
sharding-jdbc-doc/content/01-start/faq.md
浏览文件 @
8bfae9b4
...
...
@@ -3,8 +3,8 @@ toc = true
date = "2016-12-06T22:38:50+08:00"
title = "FAQ"
weight = 2
prev = "/01-start/quick-start"
next = "/01-start/features"
prev = "/01-start/quick-start
/
"
next = "/01-start/features
/
"
+++
...
...
@@ -14,7 +14,13 @@ next = "/01-start/features"
Sharding-JDBC使用lombok实现极简代码。关于更多使用和安装细节,请参考
[
lombok官网
](
https://projectlombok.org/download.html
)
。
### 2. 使用Spring命名空间时在网上相应地址找不到xsd?
### 2. java.lang.NoSuchMethodError:com.alibaba.druid.sql.ast.expr.SQLAggregateExpr.getOption().....异常的解决方法?
回答:
目前Sharding-JDBC使用Druid作为SQL解析的基础库,请确保业务代码中使用的Druid与Sharding-JDBC使用的版本一致,目前Sharding-JDBC使用的是
`1.0.12`
版本。
### 3. 使用Spring命名空间时在网上相应地址找不到xsd?
回答:
...
...
@@ -22,7 +28,7 @@ Spring命名空间使用规范并未强制要求将xsd文件部署至公网地
sharding-jdbc-config-spring的jar包中
`META-INF\spring.schemas`
配置了xsd文件的位置:
`META-INF\namespace\rdb.xsd`
,需确保jar包中该文件存在。
###
3
. Cloud not resolve placeholder ... in string value ...异常的解决方法?
###
4
. Cloud not resolve placeholder ... in string value ...异常的解决方法?
回答:
...
...
@@ -32,9 +38,10 @@ sharding-jdbc-config-spring的jar包中`META-INF\spring.schemas`配置了xsd文
<context:property-placeholder
location=
"classpath:conf/rdb/conf.properties"
ignore-unresolvable=
"true"
/>
```
###
4
. inline表达式返回结果为何出现浮点数?
###
5
. inline表达式返回结果为何出现浮点数?
回答:
Java的整数相除结果是整数,但是对于inline表达式中的Groovy语法则不同,整数相除结果是浮点数。
想获得除法整数结果需要将A/B改为A.intdiv(B)。
sharding-jdbc-doc/content/01-start/features.md
浏览文件 @
8bfae9b4
...
...
@@ -3,8 +3,8 @@ toc = true
date = "2016-12-06T22:38:50+08:00"
title = "详细功能列表"
weight = 3
prev = "/01-start/faq"
next = "/01-start/limitations"
prev = "/01-start/faq
/
"
next = "/01-start/limitations
/
"
+++
...
...
sharding-jdbc-doc/content/01-start/index.md
浏览文件 @
8bfae9b4
...
...
@@ -3,16 +3,16 @@ icon = "<b>1. </b>"
date = "2016-12-02T16:06:17+08:00"
title = "起航"
weight = 0
prev = "/00-overview/
release-notes
"
next = "/01-start/quick-start"
prev = "/00-overview/
contribution/
"
next = "/01-start/quick-start
/
"
chapter = true
+++
# 本章导航
-
如果想快速体验Sharding-JDBC的强大功能,请阅读
[
快速入门
](
/01-start/quick-start
)
。
-
如果在使用中遇到什么问题,请首先在
[
FAQ
](
/01-start/faq
)
中寻找解决问题的答案。
-
想要在自己的项目中集成Sharding-JDBC,您一定很关心它
[
能做什么
](
/01-start/features
)
和
[
不能做什么
](
/01-start/limitations
)
。
-
数据库中间件一般都不会支持完全的SQL语法,在这里能了解到
[
支持的SQL语法
](
/01-start/sql-supported
)
。
-
最后,你会关心中间件的性能情况。这里将展示我们的
[
性能测试结果
](
/01-start/stress-test
)
。
-
如果想快速体验Sharding-JDBC的强大功能,请阅读
[
快速入门
](
/01-start/quick-start
/
)
。
-
如果在使用中遇到什么问题,请首先在
[
FAQ
](
/01-start/faq
/
)
中寻找解决问题的答案。
-
想要在自己的项目中集成Sharding-JDBC,您一定很关心它
[
能做什么
](
/01-start/features
)
和
[
不能做什么
](
/01-start/limitations
/
)
。
-
数据库中间件一般都不会支持完全的SQL语法,在这里能了解到
[
支持的SQL语法
](
/01-start/sql-supported
/
)
。
-
最后,你会关心中间件的性能情况。这里将展示我们的
[
性能测试结果
](
/01-start/stress-test
/
)
。
sharding-jdbc-doc/content/01-start/quick-start.md
浏览文件 @
8bfae9b4
...
...
@@ -115,4 +115,4 @@ try (
</rdb:data-source>
</beans>
```
>详细的规则配置请参考[配置指南](/02-guide/configuration)
\ No newline at end of file
>详细的规则配置请参考[配置手册](/02-guide/configuration)
\ No newline at end of file
sharding-jdbc-doc/content/02-guide/concepts.md
浏览文件 @
8bfae9b4
...
...
@@ -3,8 +3,8 @@ toc = true
date = "2016-12-06T22:38:50+08:00"
title = "核心概念"
weight = 1
prev = "/02-guide"
next = "/02-guide/sharding"
prev = "/02-guide
/index/
"
next = "/02-guide/sharding
/
"
+++
...
...
sharding-jdbc-doc/content/02-guide/configuration.md
浏览文件 @
8bfae9b4
...
...
@@ -3,8 +3,8 @@ toc = true
date = "2016-12-06T22:38:50+08:00"
title = "配置手册"
weight = 5
prev = "/02-guide/master-slave"
next = "/02-guide/hint-sharding-value"
prev = "/02-guide/master-slave
/
"
next = "/02-guide/hint-sharding-value
/
"
+++
...
...
sharding-jdbc-doc/content/02-guide/index.md
浏览文件 @
8bfae9b4
...
...
@@ -11,10 +11,10 @@ chapter = true
# 本章导航
-
想一览基本的概念,请阅读
[
基本概念
](
/02-guide/concepts
)
。
-
想通过一个完整的例子使用Sharding-JDBC进行分库分表,请阅读
[
如何分库分表
](
/02-guide/sharding
)
章节。
-
分库分表后,要进一步提高性能,可以使用
[
读写分离
](
/02-guide/master-slave
)
功能。
-
[
使用配置文件
](
/02-guide/configuration
)
介绍了如何通过YAML和Spring两种方式配置。
-
一般情况Sharding-JDBC是通过SQL解析来获取数据路由数据的,但也可以使用
[
强制路由
](
/02-guide/hint-sharding-value
)
方式来设置分片数据。该模式非常适合存量系统扩容。
-
分库分表后主键如何生成?
[
分布式主键
](
/02-guide/id-generator
)
将给你答案。
-
分库后事务如何保证?
[
事务支持
](
/02-guide/transaction
)
将介绍Sharding-JDBC如何通过使用柔性事务的方式来实现分布式事务。
-
想一览基本的概念,请阅读
[
基本概念
](
/02-guide/concepts
/
)
。
-
想通过一个完整的例子使用Sharding-JDBC进行分库分表,请阅读
[
如何分库分表
](
/02-guide/sharding
/
)
章节。
-
分库分表后,要进一步提高性能,可以使用
[
读写分离
](
/02-guide/master-slave
/
)
功能。
-
[
配置手册
](
/02-guide/configuration/
)
介绍了如何通过YAML和Spring两种方式配置。
-
一般情况Sharding-JDBC是通过SQL解析来获取数据路由数据的,但也可以使用
[
强制路由
](
/02-guide/hint-sharding-value
/
)
方式来设置分片数据。该模式非常适合存量系统扩容。
-
分库分表后主键如何生成?
[
分布式主键
](
/02-guide/id-generator
/
)
将给你答案。
-
分库后事务如何保证?
[
事务支持
](
/02-guide/transaction
/
)
将介绍Sharding-JDBC如何通过使用柔性事务的方式来实现分布式事务。
sharding-jdbc-doc/content/02-guide/master-slave.md
浏览文件 @
8bfae9b4
...
...
@@ -3,8 +3,8 @@ toc = true
date = "2016-12-06T22:38:50+08:00"
title = "读写分离"
weight = 3
prev = "/02-guide/sharding"
next = "/02-guide/configuration"
prev = "/02-guide/sharding
/
"
next = "/02-guide/configuration
/
"
+++
...
...
sharding-jdbc-doc/content/02-guide/sharding.md
浏览文件 @
8bfae9b4
...
...
@@ -3,8 +3,8 @@ toc = true
date = "2016-12-06T22:38:50+08:00"
title = "分库分表"
weight = 2
prev = "/02-guide/concepts"
next = "/02-guide/master-slave"
prev = "/02-guide/concepts
/
"
next = "/02-guide/master-slave
/
"
+++
...
...
sharding-jdbc-doc/content/02-guide/transaction.md
浏览文件 @
8bfae9b4
...
...
@@ -3,8 +3,8 @@ toc = true
date = "2016-12-06T22:38:50+08:00"
title = "事务支持"
weight = 8
prev = "/02-guide/
master-slave
"
next = "/03-design"
prev = "/02-guide/
id-generator/
"
next = "/03-design
/index/
"
+++
...
...
sharding-jdbc-doc/content/03-design/architecture.md
浏览文件 @
8bfae9b4
...
...
@@ -3,18 +3,18 @@ toc = true
date = "2016-12-06T22:38:50+08:00"
title = "架构设计"
weight = 1
prev = "/03-design"
next = "/03-design/module"
prev = "/03-design
/index/
"
next = "/03-design/module
/
"
+++
![
整体架构图
](
../..
/img/architecture.png
)
![
整体架构图
](
/img/architecture.png
)
![
SQL解析
](
../..
/img/parse.png
)
![
SQL解析
](
/img/parse.png
)
![
SQL路由
](
../..
/img/route.png
)
![
SQL路由
](
/img/route.png
)
![
SQL执行
](
../..
/img/execute.png
)
![
SQL执行
](
/img/execute.png
)
![
结果归并
](
../..
/img/merge.png
)
![
结果归并
](
/img/merge.png
)
sharding-jdbc-doc/content/03-design/index.md
浏览文件 @
8bfae9b4
...
...
@@ -3,13 +3,13 @@ icon = "<b>3. </b>"
date = "2016-12-12T16:06:17+08:00"
title = "设计规划"
weight = 0
prev = "/02-guide/
soft-transaction
"
next = "/03-design/architecture"
prev = "/02-guide/
transaction/
"
next = "/03-design/architecture
/
"
chapter = true
+++
# 本章导航
-
想了解架构设计及项目模块设计的概念,请阅读
[
架构设计
](
/03-design/architecture
)
及
[
目录结构说明
](
/03-design/module
)
。
-
Sharding-JDBC未来规划有哪些呢?请阅读
[
未来规划
](
/03-design/roadmap
)
。
\ No newline at end of file
-
想了解架构设计及项目模块设计的概念,请阅读
[
架构设计
](
/03-design/architecture/
)
及
[
目录结构说明
](
/03-design/module/
)
。
-
Sharding-JDBC未来规划有哪些呢?请阅读
[
未来规划
](
/03-design/roadmap/
)
。
\ No newline at end of file
sharding-jdbc-doc/content/03-design/module.md
浏览文件 @
8bfae9b4
...
...
@@ -3,8 +3,8 @@ toc = true
date = "2016-12-06T22:38:50+08:00"
title = "目录结构说明"
weight = 3
prev = "/03-design/architecture"
next = "/03-design/roadmap"
prev = "/03-design/architecture
/
"
next = "/03-design/roadmap
/
"
+++
...
...
sharding-jdbc-doc/content/03-design/roadmap.md
浏览文件 @
8bfae9b4
...
...
@@ -5,7 +5,6 @@ title = "未来线路规划"
weight = 4
prev = "/03-design/module"
next = "/00-overview"
+++
## 已完成
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录