新增: 支持 PostgreSQL 数据库

This commit is contained in:
2025-05-13 00:04:05 +08:00
parent 0998501c93
commit 7f962319f5
5 changed files with 55 additions and 2 deletions

View File

@@ -6,7 +6,10 @@
<persistence-unit name="z_im">
<shared-cache-mode>ALL</shared-cache-mode>
<properties>
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://47.106.237.198:3306/z_im"/>
<!-- mysql -->
<!--<property name="javax.persistence.jdbc.url" value="jdbc:mysql://47.106.237.198:3306/z_im"/>-->
<!-- postgresql -->
<property name="javax.persistence.jdbc.url" value="jdbc:postgresql://47.106.237.198:3306/z_im?currentSchema=public"/>
<property name="javax.persistence.jdbc.user" value="u_im"/>
<property name="javax.persistence.jdbc.password" value="u_im@2024"/>
</properties>