增postgresql

This commit is contained in:
2026-01-09 16:41:58 +08:00
parent fc67643418
commit 683c45c027
2 changed files with 14 additions and 3 deletions

View File

@@ -132,6 +132,11 @@
<scope>runtime</scope> <scope>runtime</scope>
<version>8.0.33</version> <version>8.0.33</version>
</dependency> </dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>
<dependency> <dependency>
<groupId>com.google.code.gson</groupId> <groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId> <artifactId>gson</artifactId>

View File

@@ -2,10 +2,16 @@ spring.application.name=VideoTablet
server.port=8088 server.port=8088
## mysql 数据连接信息 ## mysql 数据连接信息
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver #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.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.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.password=fanhuitong
spring.datasource.driver-class-name=org.postgresql.Driver
# redis基础配置 # redis基础配置
# 0也是默认值表示你要操控的 Redis 上的哪个数据库 # 0也是默认值表示你要操控的 Redis 上的哪个数据库