- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中io.shardingjdbc.core.yaml.sharding.YamlShardingRuleConfiguration.getConfigMap()
方法的一些代码示例,展示了YamlShardingRuleConfiguration.getConfigMap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YamlShardingRuleConfiguration.getConfigMap()
方法的具体详情如下:
包路径:io.shardingjdbc.core.yaml.sharding.YamlShardingRuleConfiguration
类名称:YamlShardingRuleConfiguration
方法名:getConfigMap
暂无
代码示例来源:origin: io.shardingjdbc/sharding-jdbc-core
/**
* Create sharding data source.
*
* @param yamlFile yaml file for rule configuration of databases and tables sharding with data sources
* @return sharding data source
* @throws SQLException SQL exception
* @throws IOException IO exception
*/
public static DataSource createDataSource(final File yamlFile) throws SQLException, IOException {
YamlShardingConfiguration config = unmarshal(yamlFile);
return new ShardingDataSource(config.getShardingRule(Collections.<String, DataSource>emptyMap()), config.getShardingRule().getConfigMap(), config.getShardingRule().getProps());
}
代码示例来源:origin: io.shardingjdbc/sharding-jdbc-core
/**
* Create sharding data source.
*
* @param yamlByteArray yaml byte array for rule configuration of databases and tables sharding with data sources
* @return sharding data source
* @throws SQLException SQL exception
* @throws IOException IO exception
*/
public static DataSource createDataSource(final byte[] yamlByteArray) throws SQLException, IOException {
YamlShardingConfiguration config = unmarshal(yamlByteArray);
return new ShardingDataSource(config.getShardingRule(Collections.<String, DataSource>emptyMap()), config.getShardingRule().getConfigMap(), config.getShardingRule().getProps());
}
代码示例来源:origin: io.shardingjdbc/sharding-jdbc-core
/**
* Create sharding data source.
*
* @param dataSourceMap data source map
* @param yamlByteArray yaml byte array for rule configuration of databases and tables sharding without data sources
* @return sharding data source
* @throws SQLException SQL exception
* @throws IOException IO exception
*/
public static DataSource createDataSource(final Map<String, DataSource> dataSourceMap, final byte[] yamlByteArray) throws SQLException, IOException {
YamlShardingConfiguration config = unmarshal(yamlByteArray);
return new ShardingDataSource(config.getShardingRule(dataSourceMap), config.getShardingRule().getConfigMap(), config.getShardingRule().getProps());
}
代码示例来源:origin: io.shardingjdbc/sharding-jdbc-core
/**
* Create sharding data source.
*
* @param dataSourceMap data source map
* @param yamlFile yaml file for rule configuration of databases and tables sharding without data sources
* @return sharding data source
* @throws SQLException SQL exception
* @throws IOException IO exception
*/
public static DataSource createDataSource(final Map<String, DataSource> dataSourceMap, final File yamlFile) throws SQLException, IOException {
YamlShardingConfiguration config = unmarshal(yamlFile);
return new ShardingDataSource(config.getShardingRule(dataSourceMap), config.getShardingRule().getConfigMap(), config.getShardingRule().getProps());
}
代码示例来源:origin: io.shardingjdbc/sharding-jdbc-orchestration
/**
* Create sharding data source.
*
* @param dataSourceMap data source map
* @param yamlFile yaml file for rule configuration of databases and tables sharding without data sources
* @return sharding data source
* @throws SQLException SQL exception
* @throws IOException IO exception
*/
public static DataSource createDataSource(final Map<String, DataSource> dataSourceMap, final File yamlFile) throws SQLException, IOException {
YamlOrchestrationShardingRuleConfiguration config = unmarshal(yamlFile);
YamlShardingRuleConfiguration shardingRuleConfig = config.getShardingRule();
return createDataSource(dataSourceMap, shardingRuleConfig.getShardingRuleConfiguration(),
shardingRuleConfig.getConfigMap(), shardingRuleConfig.getProps(), config.getOrchestration().getOrchestrationConfiguration());
}
代码示例来源:origin: io.shardingjdbc/sharding-jdbc-orchestration
/**
* Create sharding data source.
*
* @param dataSourceMap data source map
* @param yamlByteArray yaml byte array for rule configuration of databases and tables sharding without data sources
* @return sharding data source
* @throws SQLException SQL exception
* @throws IOException IO exception
*/
public static DataSource createDataSource(final Map<String, DataSource> dataSourceMap, final byte[] yamlByteArray) throws SQLException, IOException {
YamlOrchestrationShardingRuleConfiguration config = unmarshal(yamlByteArray);
YamlShardingRuleConfiguration shardingRuleConfig = config.getShardingRule();
return createDataSource(dataSourceMap, shardingRuleConfig.getShardingRuleConfiguration(),
shardingRuleConfig.getConfigMap(), shardingRuleConfig.getProps(), config.getOrchestration().getOrchestrationConfiguration());
}
代码示例来源:origin: io.shardingjdbc/sharding-jdbc-orchestration
/**
* Create sharding data source.
*
* @param yamlFile yaml file for rule configuration of databases and tables sharding with data sources
* @return sharding data source
* @throws SQLException SQL exception
* @throws IOException IO exception
*/
public static DataSource createDataSource(final File yamlFile) throws SQLException, IOException {
YamlOrchestrationShardingRuleConfiguration config = unmarshal(yamlFile);
YamlShardingRuleConfiguration shardingRuleConfig = config.getShardingRule();
return createDataSource(config.getDataSources(), shardingRuleConfig.getShardingRuleConfiguration(),
shardingRuleConfig.getConfigMap(), shardingRuleConfig.getProps(), config.getOrchestration().getOrchestrationConfiguration());
}
代码示例来源:origin: io.shardingjdbc/sharding-jdbc-orchestration
/**
* Create sharding data source.
*
* @param yamlByteArray yaml byte array for rule configuration of databases and tables sharding with data sources
* @return sharding data source
* @throws SQLException SQL exception
* @throws IOException IO exception
*/
public static DataSource createDataSource(final byte[] yamlByteArray) throws SQLException, IOException {
YamlOrchestrationShardingRuleConfiguration config = unmarshal(yamlByteArray);
YamlShardingRuleConfiguration shardingRuleConfig = config.getShardingRule();
return createDataSource(config.getDataSources(), shardingRuleConfig.getShardingRuleConfiguration(),
shardingRuleConfig.getConfigMap(), shardingRuleConfig.getProps(), config.getOrchestration().getOrchestrationConfiguration());
}
本文整理了Java中io.shardingsphere.core.yaml.sharding.YamlShardingRuleConfiguration.getShardingRuleConfigur
本文整理了Java中io.shardingjdbc.core.yaml.sharding.YamlShardingRuleConfiguration.getShardingRuleConfigurat
本文整理了Java中io.shardingjdbc.core.yaml.sharding.YamlShardingRuleConfiguration.getConfigMap()方法的一些代码示例,展
本文整理了Java中io.shardingjdbc.core.yaml.sharding.YamlShardingRuleConfiguration.getProps()方法的一些代码示例,展示了Ya
本文整理了Java中org.apache.shardingsphere.core.yaml.sharding.YamlShardingRuleConfiguration.getShardingRule
我是一名优秀的程序员,十分优秀!