This is an automated email from the ASF dual-hosted git repository.

shenlin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/rocketmq-eventbridge.git


The following commit(s) were added to refs/heads/main by this push:
     new a16f6cf  add connectTimeout & socketTimeout config in db connect url 
(#183)
a16f6cf is described below

commit a16f6cfb213d1394568c6651d9c5ff0d0350f66b
Author: 陈永明 <[email protected]>
AuthorDate: Mon Nov 24 13:51:36 2025 +0800

    add connectTimeout & socketTimeout config in db connect url (#183)
---
 dist/src/main/resources/application.properties  | 2 +-
 start/src/main/resources/application.properties | 2 +-
 start/src/test/resources/application.properties | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dist/src/main/resources/application.properties 
b/dist/src/main/resources/application.properties
index 3314a18..aecb27e 100644
--- a/dist/src/main/resources/application.properties
+++ b/dist/src/main/resources/application.properties
@@ -18,7 +18,7 @@ management.server.port=7002
 management.endpoints.web.base-path=/
 spring.profiles.active=local
 ## database
-#spring.datasource.hikari.jdbc-url=jdbc:mysql://localhost:3306/eventBridge?useUnicode=true&characterEncoding=utf8&useSSL=false
+#spring.datasource.hikari.jdbc-url=jdbc:mysql://localhost:3306/eventBridge?useUnicode=true&characterEncoding=utf8&useSSL=false&connectTimeout=2000&socketTimeout=10000
 #spring.datasource.hikari.driver-class-name=com.mysql.jdbc.Driver
 #spring.datasource.hikari.username=xxxxx
 #spring.datasource.hikari.password=xxxxx
diff --git a/start/src/main/resources/application.properties 
b/start/src/main/resources/application.properties
index 8daf91c..b3351d2 100644
--- a/start/src/main/resources/application.properties
+++ b/start/src/main/resources/application.properties
@@ -18,7 +18,7 @@ management.server.port=7002
 management.endpoints.web.base-path=/
 spring.profiles.active=local
 ## database
-#spring.datasource.hikari.jdbc-url=jdbc:mysql://localhost:3306/eventBridge?useUnicode=true&characterEncoding=utf8&useSSL=false
+#spring.datasource.hikari.jdbc-url=jdbc:mysql://localhost:3306/eventBridge?useUnicode=true&characterEncoding=utf8&useSSL=false&connectTimeout=2000&socketTimeout=10000
 #spring.datasource.hikari.driver-class-name=com.mysql.jdbc.Driver
 #spring.datasource.hikari.username=xxxxx
 #spring.datasource.hikari.password=xxxxx
diff --git a/start/src/test/resources/application.properties 
b/start/src/test/resources/application.properties
index 6286917..6ec4337 100644
--- a/start/src/test/resources/application.properties
+++ b/start/src/test/resources/application.properties
@@ -16,7 +16,7 @@ server.port=7001
 management.server.port=7002
 management.endpoints.web.base-path=/
 ## database
-spring.datasource.url=jdbc:mysql://localhost:3306/rocketmq_eventbridge?useUnicode=true&characterEncoding=utf8&useSSL=false
+spring.datasource.url=jdbc:mysql://localhost:3306/rocketmq_eventbridge?useUnicode=true&characterEncoding=utf8&useSSL=false&connectTimeout=2000&socketTimeout=10000
 spring.datasource.driver-class-name=com.mysql.jdbc.Driver
 spring.datasource.username=******
 spring.datasource.password=******

Reply via email to