Commit c0ecbb51 authored by cherrylzhao's avatar cherrylzhao
Browse files

ShardingDatabasesConfigurationPrecise => ShardingDatabasesConfiguration.

parent 42747cab
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@

package org.apache.shardingsphere.example.broadcast.table.raw.jdbc;

import org.apache.shardingsphere.example.broadcast.table.raw.jdbc.config.ShardingDatabasesConfigurationPrecise;
import org.apache.shardingsphere.example.broadcast.table.raw.jdbc.config.ShardingDatabasesConfiguration;
import org.apache.shardingsphere.example.common.jdbc.repository.CountryRepositroyImpl;
import org.apache.shardingsphere.example.common.jdbc.service.CountryServiceImpl;
import org.apache.shardingsphere.example.common.service.CommonService;
@@ -32,7 +32,7 @@ import java.sql.SQLException;
public class JavaConfigurationExample {

    public static void main(final String[] args) throws SQLException {
        DataSource dataSource = new ShardingDatabasesConfigurationPrecise().getDataSource();
        DataSource dataSource = new ShardingDatabasesConfiguration().getDataSource();
        CommonService countryService = getCountryService(dataSource);
        countryService.initEnvironment();
        countryService.processSuccess();
+0 −3
Original line number Diff line number Diff line
@@ -27,9 +27,6 @@ import java.io.File;
import java.io.IOException;
import java.sql.SQLException;

/*
 * Please make sure master-slave data sync on MySQL is running correctly. Otherwise this example will query empty data from slave.
 */
public class YamlConfigurationExample {

    public static void main(final String[] args) throws SQLException, IOException {
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

public class ShardingDatabasesConfigurationPrecise implements ExampleConfiguration {
public class ShardingDatabasesConfiguration implements ExampleConfiguration {

    @Override
    public DataSource getDataSource() throws SQLException {