This is an automated email from the ASF dual-hosted git repository.
benjobs pushed a commit to branch conf
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
The following commit(s) were added to refs/heads/conf by this push:
new aa2d02219 [Improve] spring conf improve
aa2d02219 is described below
commit aa2d02219bd856041f50bb56e4f1c269a5c2f829
Author: benjobs <[email protected]>
AuthorDate: Mon Apr 1 15:19:29 2024 +0800
[Improve] spring conf improve
---
.../streampark/console/base/config/SpringProperties.java | 1 +
.../src/main/resources/config.yaml | 13 +++++++------
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git
a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/config/SpringProperties.java
b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/config/SpringProperties.java
index 2d56f1091..8198c9289 100644
---
a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/config/SpringProperties.java
+++
b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/config/SpringProperties.java
@@ -72,6 +72,7 @@ public class SpringProperties {
}
}
break;
+ case "postgresql":
case "pgsql":
springConfig.put("spring.datasource.driver-class-name",
"org.postgresql.Driver");
break;
diff --git
a/streampark-console/streampark-console-service/src/main/resources/config.yaml
b/streampark-console/streampark-console-service/src/main/resources/config.yaml
index a9df3d8f7..68816bb19 100644
---
a/streampark-console/streampark-console-service/src/main/resources/config.yaml
+++
b/streampark-console/streampark-console-service/src/main/resources/config.yaml
@@ -31,14 +31,15 @@ server.undertow.threads.worker: 256
# system database, default h2, mysql|pgsql|h2
datasource.dialect: h2 # h2, pgsql
-#-------if datasource.dialect is mysql or pgsql, it is necessary to set-------
+#if datasource.dialect is mysql or pgsql, you need to configure the following
connection information
+# mysql/postgresql connect access user
datasource.username:
+# mysql/postgresql connect access password
datasource.password:
-# mysql jdbc url example:
-# datasource.url:
jdbc:mysql://localhost:3306/streampark?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
-# postgresql jdbc url example:
-# datasource.url:
jdbc:postgresql://localhost:5432/streampark?stringtype=unspecified
-datasource.url:
+# mysql/postgresql connection address
+# mysql jdbc url example: datasource.url:
jdbc:mysql://localhost:3306/streampark?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
+# postgresql jdbc url example:
jdbc:postgresql://localhost:5432/streampark?stringtype=unspecified
+datasource.host:
#---------------------------------------------------------------------------------
# Directory for storing locally built project