File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
APIJSON-Java-Server/APIJSONDemo-MultiDataSource-Elasticsearch/src/main Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public class ElasticSearchSqlTest {
6565
6666 public static void main (String [] args ) throws Exception {
6767 Properties properties = new Properties ();
68- properties .put (PROP_URL , "jdbc:elasticsearch://47.108.49.213 :9302" );
68+ properties .put (PROP_URL , "jdbc:elasticsearch://127.0.0.1 :9302" );
6969 properties .put (PROP_CONNECTIONPROPERTIES , "client.transport.ignore_cluster_name=true" );
7070 DruidDataSource dds = (DruidDataSource ) ElasticSearchDruidDataSourceFactory .createDataSource (properties );
7171 Connection connection = dds .getConnection ();
Original file line number Diff line number Diff line change @@ -22,27 +22,27 @@ spring:
2222 datasource :
2323 master :
2424 driver-class-name : com.mysql.cj.jdbc.Driver
25- url : jdbc:mysql://xxx :3306/housekeeping?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useSSL=false
25+ url : jdbc:mysql://localhost :3306/housekeeping?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useSSL=false
2626 username :
2727 password :
2828 155db :
2929 driver-class-name : com.mysql.cj.jdbc.Driver
30- url : jdbc:mysql://xxx :3888/housekeeping?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useSSL=false
30+ url : jdbc:mysql://localhost :3888/housekeeping?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useSSL=false
3131 username :
3232 password :
3333 213db :
3434 driver-class-name : com.mysql.cj.jdbc.Driver
35- url : jdbc:mysql://xxx :3888/housekeeping?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useSSL=false
35+ url : jdbc:mysql://localhost :3888/housekeeping?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useSSL=false
3636 username :
3737 password :
3838 db1 :
3939 driver-class-name : com.mysql.cj.jdbc.Driver
40- url : jdbc:mysql://xxx :3306/apijsonMuli1?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useSSL=false
40+ url : jdbc:mysql://localhost :3306/apijsonMuli1?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useSSL=false
4141 username :
4242 password :
4343 db2 :
4444 driver-class-name : com.mysql.cj.jdbc.Driver
45- url : jdbc:mysql://xxx :3306/apijsonMuli2?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useSSL=false
45+ url : jdbc:mysql://localhost :3306/apijsonMuli2?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useSSL=false
4646 username :
4747 password :
4848 filter :
You can’t perform that action at this time.
0 commit comments