Skip to content

Commit

Permalink
sharding-jdbc-spring => sharding-jdbc-core-spring
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Nov 30, 2017
1 parent 1a0ab46 commit 416e2b6
Show file tree
Hide file tree
Showing 80 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### 里程碑

1. API调整. 全新的Maven坐标名称, 包名称和spring命名空间名称. 简化和提升API配置, inline表达式全配置支持
1. 新增sharding-jdbc-spring-boot-starter功能
1. 提供sharding-jdbc的spring-boot-starter
1. 配置动态化. 可以通过zookeeper和etcd作为注册中心动态修改数据源以及分片配置
1. 数据治理. 熔断数据库访问程序对数据库的访问和禁用从库的访问
1. ConfigMap支持. 可以在分片和读写分离策略中获取预定义的元数据
Expand All @@ -12,15 +12,15 @@
### 功能提升

1. [ISSUE #386](https://github.com/shardingjdbc/sharding-jdbc/issues/386) 支持SELECT 1这种不包含表名称的SQL
1. [ISSUE #407](https://github.com/shardingjdbc/sharding-jdbc/issues/407) sharding-jdbc-spring-boot-starter兼容使用减号和驼峰两种方式进行属性配置
1. [ISSUE #407](https://github.com/shardingjdbc/sharding-jdbc/issues/407) sharding-jdbc的spring-boot-starter兼容使用减号和驼峰两种方式进行属性配置
1. [ISSUE #424](https://github.com/shardingjdbc/sharding-jdbc/issues/424) 提供SQL总体执行情况事件

### 缺陷修正

1. [ISSUE #387](https://github.com/shardingjdbc/sharding-jdbc/issues/387) 当函数 + 列名中存在'`'防止关键字时处理出错
1. [ISSUE #394](https://github.com/shardingjdbc/sharding-jdbc/issues/394) 无法单独close statement
1. [ISSUE #398](https://github.com/shardingjdbc/sharding-jdbc/issues/398) 使用Hint路由屏蔽表和列名称的大小写区别
1. [ISSUE #404](https://github.com/shardingjdbc/sharding-jdbc/issues/404) sharding-jdbc-spring-boot-starter不支持HikariDataSource
1. [ISSUE #404](https://github.com/shardingjdbc/sharding-jdbc/issues/404) sharding-jdbc的spring-boot-starter不支持HikariDataSource
1. [ISSUE #419](https://github.com/shardingjdbc/sharding-jdbc/issues/419) SQL改写时, 未判断别名是否为关键字未加转义符导致了SQL异常
1. [ISSUE #436](https://github.com/shardingjdbc/sharding-jdbc/issues/436) 读写分离多从库配置RoundRobin算法并使用MyBatis时,只能路由到同一从库
1. [ISSUE #452](https://github.com/shardingjdbc/sharding-jdbc/issues/452) DDL语句分片至多个表会造成连接泄漏的问题
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<modules>
<module>sharding-jdbc-core</module>
<module>sharding-jdbc-spring</module>
<module>sharding-jdbc-core-spring</module>
<module>sharding-jdbc-transaction-parent</module>
<module>sharding-jdbc-orchestration</module>
<module>sharding-jdbc-orchestration-spring</module>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
<artifactId>sharding-jdbc</artifactId>
<version>2.0.0.M4-SNAPSHOT</version>
</parent>
<artifactId>sharding-jdbc-spring</artifactId>
<artifactId>sharding-jdbc-core-spring</artifactId>
<packaging>pom</packaging>

<modules>
<module>sharding-jdbc-spring-namespace</module>
<module>sharding-jdbc-spring-boot-starter</module>
<module>sharding-jdbc-core-spring-namespace</module>
<module>sharding-jdbc-core-spring-boot-starter</module>
</modules>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.shardingjdbc</groupId>
<artifactId>sharding-jdbc-spring</artifactId>
<artifactId>sharding-jdbc-core-spring</artifactId>
<version>2.0.0.M4-SNAPSHOT</version>
</parent>
<artifactId>sharding-jdbc-spring-boot-starter</artifactId>
<artifactId>sharding-jdbc-core-spring-boot-starter</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
provides: sharding-jdbc-core-spring-boot-starter
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.shardingjdbc</groupId>
<artifactId>sharding-jdbc-spring</artifactId>
<artifactId>sharding-jdbc-core-spring</artifactId>
<version>2.0.0.M4-SNAPSHOT</version>
</parent>
<artifactId>sharding-jdbc-spring-namespace</artifactId>
<artifactId>sharding-jdbc-core-spring-namespace</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ public void assertTableRuleWithAttributesDataSource() {
public void assertMultiTableRulesDataSource() {
ShardingRule shardingRule = getShardingRule("multiTableRulesDataSource");
assertThat(shardingRule.getTableRules().size(), is(2));
Iterator<TableRule> iter = shardingRule.getTableRules().iterator();
assertThat(iter.next().getLogicTable(), is("t_order"));
assertThat(iter.next().getLogicTable(), is("t_order_item"));
Iterator<TableRule> tableRules = shardingRule.getTableRules().iterator();
assertThat(tableRules.next().getLogicTable(), is("t_order"));
assertThat(tableRules.next().getLogicTable(), is("t_order_item"));
}

@Test
Expand Down

This file was deleted.

0 comments on commit 416e2b6

Please sign in to comment.