From 683c45c02774fb096a3fc2c07ad0f90d1f3ea338 Mon Sep 17 00:00:00 2001 From: tongtongstudio Date: Fri, 9 Jan 2026 16:41:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9Epostgresql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 5 +++++ src/main/resources/application-test.properties | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 96f6cd2..5c7324b 100644 --- a/pom.xml +++ b/pom.xml @@ -132,6 +132,11 @@ runtime 8.0.33 + + org.postgresql + postgresql + runtime + com.google.code.gson gson diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties index e04615e..cdf44f8 100644 --- a/src/main/resources/application-test.properties +++ b/src/main/resources/application-test.properties @@ -2,10 +2,16 @@ spring.application.name=VideoTablet server.port=8088 ## mysql 数据连接信息 -spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -spring.datasource.url=jdbc:mysql://139.199.77.221:13306/video_tablet_db?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true -spring.datasource.username=tt +#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +#spring.datasource.url=jdbc:mysql://139.199.77.221:13306/video_tablet_db?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true +#spring.datasource.username=tt +#spring.datasource.password=fanhuitong + +# PostgreSQL 数据源配置 +spring.datasource.url=jdbc:postgresql://139.199.77.221:5433/video_tablet_db +spring.datasource.username=postgres spring.datasource.password=fanhuitong +spring.datasource.driver-class-name=org.postgresql.Driver # redis基础配置 # 0也是默认值,表示你要操控的 Redis 上的哪个数据库