File tree 2 files changed +6
-6
lines changed
APIJSON-Java-Server/APIJSONDemo-MultiDataSource-Elasticsearch/src/main
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public class ElasticSearchSqlTest {
65
65
66
66
public static void main (String [] args ) throws Exception {
67
67
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" );
69
69
properties .put (PROP_CONNECTIONPROPERTIES , "client.transport.ignore_cluster_name=true" );
70
70
DruidDataSource dds = (DruidDataSource ) ElasticSearchDruidDataSourceFactory .createDataSource (properties );
71
71
Connection connection = dds .getConnection ();
Original file line number Diff line number Diff line change @@ -22,27 +22,27 @@ spring:
22
22
datasource :
23
23
master :
24
24
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
26
26
username :
27
27
password :
28
28
155db :
29
29
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
31
31
username :
32
32
password :
33
33
213db :
34
34
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
36
36
username :
37
37
password :
38
38
db1 :
39
39
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
41
41
username :
42
42
password :
43
43
db2 :
44
44
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
46
46
username :
47
47
password :
48
48
filter :
You can’t perform that action at this time.
0 commit comments