Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Shardingsphere
提交
51c7d643
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,体验更适合开发者的 AI 搜索 >>
提交
51c7d643
编写于
7月 25, 2019
作者:
T
terrymanu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
for #2760, add RuntimeContext interface
上级
7a6d692f
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
55 addition
and
31 deletion
+55
-31
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/executor/AbstractStatementExecutor.java
...here/shardingjdbc/executor/AbstractStatementExecutor.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/connection/ShardingConnection.java
...shardingjdbc/jdbc/core/connection/ShardingConnection.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/context/RuntimeContext.java
...sphere/shardingjdbc/jdbc/core/context/RuntimeContext.java
+26
-0
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/context/ShardingContext.java
...phere/shardingjdbc/jdbc/core/context/ShardingContext.java
+2
-2
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/datasource/ShardingDataSource.java
...shardingjdbc/jdbc/core/datasource/ShardingDataSource.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/statement/ShardingPreparedStatement.java
...ngjdbc/jdbc/core/statement/ShardingPreparedStatement.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/statement/ShardingStatement.java
...e/shardingjdbc/jdbc/core/statement/ShardingStatement.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/test/java/org/apache/shardingsphere/shardingjdbc/api/ShardingDataSourceFactoryTest.java
...phere/shardingjdbc/api/ShardingDataSourceFactoryTest.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/test/java/org/apache/shardingsphere/shardingjdbc/executor/AbstractBaseExecutorTest.java
...phere/shardingjdbc/executor/AbstractBaseExecutorTest.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/test/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/connection/ShardingConnectionTest.java
...dingjdbc/jdbc/core/connection/ShardingConnectionTest.java
+1
-1
sharding-jdbc/sharding-jdbc-core/src/test/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/resultset/ShardingResultSetTest.java
...ardingjdbc/jdbc/core/resultset/ShardingResultSetTest.java
+1
-1
sharding-spring/sharding-jdbc-orchestration-spring/sharding-jdbc-orchestration-spring-boot-starter/src/test/java/org/apache/shardingsphere/shardingjdbc/orchestration/spring/boot/type/OrchestrationSpringBootRegistryShardingTest.java
...oot/type/OrchestrationSpringBootRegistryShardingTest.java
+10
-12
sharding-spring/sharding-jdbc-orchestration-spring/sharding-jdbc-orchestration-spring-boot-starter/src/test/java/org/apache/shardingsphere/shardingjdbc/orchestration/spring/boot/type/OrchestrationSpringBootShardingTest.java
...spring/boot/type/OrchestrationSpringBootShardingTest.java
+1
-1
sharding-spring/sharding-jdbc-orchestration-spring/sharding-jdbc-orchestration-spring-namespace/src/test/java/org/apache/shardingsphere/shardingjdbc/orchestration/spring/OrchestrationShardingNamespaceTest.java
...hestration/spring/OrchestrationShardingNamespaceTest.java
+5
-5
sharding-spring/sharding-jdbc-spring/sharding-jdbc-spring-boot-starter/src/test/java/org/apache/shardingsphere/shardingjdbc/spring/boot/type/SpringBootShardingTest.java
...shardingjdbc/spring/boot/type/SpringBootShardingTest.java
+1
-1
sharding-spring/sharding-jdbc-spring/sharding-jdbc-spring-namespace/src/test/java/org/apache/shardingsphere/shardingjdbc/spring/ShardingNamespaceTest.java
...dingsphere/shardingjdbc/spring/ShardingNamespaceTest.java
+1
-1
未找到文件。
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/executor/AbstractStatementExecutor.java
浏览文件 @
51c7d643
...
...
@@ -39,8 +39,8 @@ import org.apache.shardingsphere.core.parse.sql.statement.ddl.CreateIndexStateme
import
org.apache.shardingsphere.core.parse.sql.statement.ddl.CreateTableStatement
;
import
org.apache.shardingsphere.core.parse.sql.statement.ddl.DropIndexStatement
;
import
org.apache.shardingsphere.core.parse.sql.statement.ddl.DropTableStatement
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.connection.ShardingConnection
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.context.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.metadata.JDBCTableMetaDataConnectionManager
;
import
org.apache.shardingsphere.spi.database.DatabaseType
;
...
...
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/connection/ShardingConnection.java
浏览文件 @
51c7d643
...
...
@@ -20,7 +20,7 @@ package org.apache.shardingsphere.shardingjdbc.jdbc.core.connection;
import
lombok.Getter
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.adapter.AbstractConnectionAdapter
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.adapter.executor.ForceExecuteCallback
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.
context.
ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingStatement
;
import
org.apache.shardingsphere.transaction.core.TransactionType
;
...
...
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/context/RuntimeContext.java
0 → 100644
浏览文件 @
51c7d643
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.shardingsphere.shardingjdbc.jdbc.core.context
;
/**
* Runtime context.
*
* @author zhangliang
*/
public
interface
RuntimeContext
extends
AutoCloseable
{
}
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/ShardingContext.java
→
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/
context/
ShardingContext.java
浏览文件 @
51c7d643
...
...
@@ -15,7 +15,7 @@
* limitations under the License.
*/
package
org.apache.shardingsphere.shardingjdbc.jdbc.core
;
package
org.apache.shardingsphere.shardingjdbc.jdbc.core
.context
;
import
lombok.Getter
;
import
org.apache.shardingsphere.core.constant.properties.ShardingProperties
;
...
...
@@ -49,7 +49,7 @@ import java.util.Properties;
* @author panjuan
*/
@Getter
public
final
class
ShardingContext
implements
AutoCloseable
{
public
final
class
ShardingContext
implements
RuntimeContext
{
private
final
ShardingRule
shardingRule
;
...
...
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/datasource/ShardingDataSource.java
浏览文件 @
51c7d643
...
...
@@ -22,8 +22,8 @@ import lombok.Getter;
import
org.apache.shardingsphere.core.rule.ShardingRule
;
import
org.apache.shardingsphere.core.util.ConfigurationLogger
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.adapter.AbstractDataSourceAdapter
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.connection.ShardingConnection
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.context.ShardingContext
;
import
org.apache.shardingsphere.transaction.core.TransactionTypeHolder
;
import
javax.sql.DataSource
;
...
...
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/statement/ShardingPreparedStatement.java
浏览文件 @
51c7d643
...
...
@@ -37,8 +37,8 @@ import org.apache.shardingsphere.core.route.SQLRouteResult;
import
org.apache.shardingsphere.shardingjdbc.executor.BatchPreparedStatementExecutor
;
import
org.apache.shardingsphere.shardingjdbc.executor.PreparedStatementExecutor
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.adapter.AbstractShardingPreparedStatementAdapter
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.connection.ShardingConnection
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.context.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.resultset.GeneratedKeysResultSet
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.resultset.ShardingResultSet
;
...
...
sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/statement/ShardingStatement.java
浏览文件 @
51c7d643
...
...
@@ -34,8 +34,8 @@ import org.apache.shardingsphere.core.parse.sql.statement.dml.SelectStatement;
import
org.apache.shardingsphere.core.route.SQLRouteResult
;
import
org.apache.shardingsphere.shardingjdbc.executor.StatementExecutor
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.adapter.AbstractStatementAdapter
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.connection.ShardingConnection
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.context.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.resultset.GeneratedKeysResultSet
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.resultset.ShardingResultSet
;
...
...
sharding-jdbc/sharding-jdbc-core/src/test/java/org/apache/shardingsphere/shardingjdbc/api/ShardingDataSourceFactoryTest.java
浏览文件 @
51c7d643
...
...
@@ -21,7 +21,7 @@ import lombok.SneakyThrows;
import
org.apache.shardingsphere.api.config.sharding.ShardingRuleConfiguration
;
import
org.apache.shardingsphere.api.config.sharding.TableRuleConfiguration
;
import
org.apache.shardingsphere.core.rule.ShardingRule
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.
context.
ShardingContext
;
import
org.junit.Test
;
import
org.mockito.ArgumentMatchers
;
import
org.mockito.Mockito
;
...
...
sharding-jdbc/sharding-jdbc-core/src/test/java/org/apache/shardingsphere/shardingjdbc/executor/AbstractBaseExecutorTest.java
浏览文件 @
51c7d643
...
...
@@ -29,8 +29,8 @@ import org.apache.shardingsphere.core.rule.EncryptRule;
import
org.apache.shardingsphere.core.rule.ShardingRule
;
import
org.apache.shardingsphere.core.rule.TableRule
;
import
org.apache.shardingsphere.core.strategy.encrypt.EncryptEngine
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.connection.ShardingConnection
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.context.ShardingContext
;
import
org.apache.shardingsphere.spi.encrypt.ShardingEncryptor
;
import
org.apache.shardingsphere.transaction.ShardingTransactionManagerEngine
;
import
org.apache.shardingsphere.transaction.core.TransactionType
;
...
...
sharding-jdbc/sharding-jdbc-core/src/test/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/connection/ShardingConnectionTest.java
浏览文件 @
51c7d643
...
...
@@ -24,7 +24,7 @@ import org.apache.shardingsphere.api.config.sharding.TableRuleConfiguration;
import
org.apache.shardingsphere.core.database.DatabaseTypes
;
import
org.apache.shardingsphere.core.rule.MasterSlaveRule
;
import
org.apache.shardingsphere.shardingjdbc.fixture.TestDataSource
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.
context.
ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.MasterSlaveDataSource
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.fixture.BASEShardingTransactionManagerFixture
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.fixture.XAShardingTransactionManagerFixture
;
...
...
sharding-jdbc/sharding-jdbc-core/src/test/java/org/apache/shardingsphere/shardingjdbc/jdbc/core/resultset/ShardingResultSetTest.java
浏览文件 @
51c7d643
...
...
@@ -23,8 +23,8 @@ import org.apache.shardingsphere.core.merge.MergedResult;
import
org.apache.shardingsphere.core.rule.EncryptRule
;
import
org.apache.shardingsphere.core.rule.ShardingRule
;
import
org.apache.shardingsphere.core.strategy.encrypt.EncryptEngine
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.connection.ShardingConnection
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.context.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingStatement
;
import
org.apache.shardingsphere.spi.encrypt.ShardingEncryptor
;
import
org.junit.Before
;
...
...
sharding-spring/sharding-jdbc-orchestration-spring/sharding-jdbc-orchestration-spring-boot-starter/src/test/java/org/apache/shardingsphere/shardingjdbc/orchestration/spring/boot/type/OrchestrationSpringBootRegistryShardingTest.java
浏览文件 @
51c7d643
...
...
@@ -17,16 +17,7 @@
package
org.apache.shardingsphere.shardingjdbc.orchestration.spring.boot.type
;
import
static
org
.
hamcrest
.
CoreMatchers
.
instanceOf
;
import
static
org
.
hamcrest
.
CoreMatchers
.
is
;
import
static
org
.
junit
.
Assert
.
assertThat
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
java.lang.reflect.Field
;
import
javax.annotation.Resource
;
import
javax.sql.DataSource
;
import
lombok.SneakyThrows
;
import
org.apache.commons.dbcp2.BasicDataSource
;
import
org.apache.shardingsphere.core.constant.properties.ShardingProperties
;
import
org.apache.shardingsphere.core.constant.properties.ShardingPropertiesConstant
;
...
...
@@ -34,7 +25,7 @@ import org.apache.shardingsphere.core.rule.DataNode;
import
org.apache.shardingsphere.core.rule.ShardingRule
;
import
org.apache.shardingsphere.core.rule.TableRule
;
import
org.apache.shardingsphere.core.strategy.route.inline.InlineShardingStrategy
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.
context.
ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.ShardingDataSource
;
import
org.apache.shardingsphere.shardingjdbc.orchestration.internal.datasource.OrchestrationShardingDataSource
;
import
org.apache.shardingsphere.shardingjdbc.orchestration.spring.boot.registry.TestRegistryCenter
;
...
...
@@ -47,7 +38,14 @@ import org.springframework.boot.test.context.SpringBootTest;
import
org.springframework.test.context.ActiveProfiles
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
lombok.SneakyThrows
;
import
javax.annotation.Resource
;
import
javax.sql.DataSource
;
import
java.lang.reflect.Field
;
import
static
org
.
hamcrest
.
CoreMatchers
.
instanceOf
;
import
static
org
.
hamcrest
.
CoreMatchers
.
is
;
import
static
org
.
junit
.
Assert
.
assertThat
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringBootTest
(
classes
=
OrchestrationSpringBootRegistryShardingTest
.
class
)
...
...
sharding-spring/sharding-jdbc-orchestration-spring/sharding-jdbc-orchestration-spring-boot-starter/src/test/java/org/apache/shardingsphere/shardingjdbc/orchestration/spring/boot/type/OrchestrationSpringBootShardingTest.java
浏览文件 @
51c7d643
...
...
@@ -25,7 +25,7 @@ import org.apache.shardingsphere.core.rule.DataNode;
import
org.apache.shardingsphere.core.rule.ShardingRule
;
import
org.apache.shardingsphere.core.rule.TableRule
;
import
org.apache.shardingsphere.core.strategy.route.inline.InlineShardingStrategy
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.
context.
ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.ShardingDataSource
;
import
org.apache.shardingsphere.shardingjdbc.orchestration.internal.datasource.OrchestrationShardingDataSource
;
import
org.apache.shardingsphere.shardingjdbc.orchestration.spring.boot.util.EmbedTestingServer
;
...
...
sharding-spring/sharding-jdbc-orchestration-spring/sharding-jdbc-orchestration-spring-namespace/src/test/java/org/apache/shardingsphere/shardingjdbc/orchestration/spring/OrchestrationShardingNamespaceTest.java
浏览文件 @
51c7d643
...
...
@@ -17,10 +17,6 @@
package
org.apache.shardingsphere.shardingjdbc.orchestration.spring
;
import
org.apache.shardingsphere.shardingjdbc.orchestration.spring.datasource.OrchestrationSpringShardingDataSource
;
import
org.apache.shardingsphere.shardingjdbc.orchestration.spring.fixture.IncrementKeyGenerator
;
import
org.apache.shardingsphere.shardingjdbc.orchestration.spring.util.EmbedTestingServer
;
import
org.apache.shardingsphere.shardingjdbc.orchestration.spring.util.FieldValueUtil
;
import
org.apache.shardingsphere.api.config.sharding.strategy.InlineShardingStrategyConfiguration
;
import
org.apache.shardingsphere.api.config.sharding.strategy.StandardShardingStrategyConfiguration
;
import
org.apache.shardingsphere.core.constant.properties.ShardingProperties
;
...
...
@@ -29,8 +25,12 @@ import org.apache.shardingsphere.core.rule.BindingTableRule;
import
org.apache.shardingsphere.core.rule.DataNode
;
import
org.apache.shardingsphere.core.rule.ShardingRule
;
import
org.apache.shardingsphere.core.rule.TableRule
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.
context.
ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.ShardingDataSource
;
import
org.apache.shardingsphere.shardingjdbc.orchestration.spring.datasource.OrchestrationSpringShardingDataSource
;
import
org.apache.shardingsphere.shardingjdbc.orchestration.spring.fixture.IncrementKeyGenerator
;
import
org.apache.shardingsphere.shardingjdbc.orchestration.spring.util.EmbedTestingServer
;
import
org.apache.shardingsphere.shardingjdbc.orchestration.spring.util.FieldValueUtil
;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
import
org.springframework.test.context.ContextConfiguration
;
...
...
sharding-spring/sharding-jdbc-spring/sharding-jdbc-spring-boot-starter/src/test/java/org/apache/shardingsphere/shardingjdbc/spring/boot/type/SpringBootShardingTest.java
浏览文件 @
51c7d643
...
...
@@ -26,7 +26,7 @@ import org.apache.shardingsphere.core.rule.ShardingRule;
import
org.apache.shardingsphere.core.rule.TableRule
;
import
org.apache.shardingsphere.core.strategy.encrypt.EncryptEngine
;
import
org.apache.shardingsphere.core.strategy.route.inline.InlineShardingStrategy
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.
context.
ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.ShardingDataSource
;
import
org.apache.shardingsphere.shardingjdbc.spring.boot.fixture.TestShardingEncryptor
;
import
org.junit.Test
;
...
...
sharding-spring/sharding-jdbc-spring/sharding-jdbc-spring-namespace/src/test/java/org/apache/shardingsphere/shardingjdbc/spring/ShardingNamespaceTest.java
浏览文件 @
51c7d643
...
...
@@ -30,7 +30,7 @@ import org.apache.shardingsphere.core.rule.ShardingRule;
import
org.apache.shardingsphere.core.rule.TableRule
;
import
org.apache.shardingsphere.core.strategy.masterslave.RandomMasterSlaveLoadBalanceAlgorithm
;
import
org.apache.shardingsphere.core.strategy.masterslave.RoundRobinMasterSlaveLoadBalanceAlgorithm
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.
context.
ShardingContext
;
import
org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.ShardingDataSource
;
import
org.apache.shardingsphere.shardingjdbc.spring.algorithm.DefaultComplexKeysShardingAlgorithm
;
import
org.apache.shardingsphere.shardingjdbc.spring.algorithm.DefaultHintShardingAlgorithm
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录