1
0

feat: 更新数据库到腾讯云

This commit is contained in:
2025-09-07 21:26:38 +08:00
parent e370b1dc8d
commit 9e2d2e3845
4 changed files with 18 additions and 8 deletions

8
.idea/dataSources.xml generated
View File

@@ -27,11 +27,11 @@
</jdbc-additional-properties>
<working-dir>$ProjectFileDir$</working-dir>
</data-source>
<data-source source="LOCAL" name="postgres@192.168.31.127" uuid="f7d817dc-8c9c-479f-b469-583df17cb013">
<data-source source="LOCAL" name="postgres@81.71.3.24" uuid="f7d817dc-8c9c-479f-b469-583df17cb013">
<driver-ref>postgresql</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>org.postgresql.Driver</jdbc-driver>
<jdbc-url>jdbc:postgresql://192.168.31.127:6785/postgres</jdbc-url>
<jdbc-url>jdbc:postgresql://81.71.3.24:6785/postgres</jdbc-url>
<jdbc-additional-properties>
<property name="com.intellij.clouds.kubernetes.db.host.port" />
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
@@ -39,11 +39,11 @@
</jdbc-additional-properties>
<working-dir>$ProjectFileDir$</working-dir>
</data-source>
<data-source source="LOCAL" name="leopard@192.168.31.127" uuid="4b5dd0f8-26c8-49e2-b794-d464461c121a">
<data-source source="LOCAL" name="leopard@81.71.3.24" uuid="4b5dd0f8-26c8-49e2-b794-d464461c121a">
<driver-ref>postgresql</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>org.postgresql.Driver</jdbc-driver>
<jdbc-url>jdbc:postgresql://192.168.31.127:6785/leopard</jdbc-url>
<jdbc-url>jdbc:postgresql://81.71.3.24:6785/leopard</jdbc-url>
<jdbc-additional-properties>
<property name="com.intellij.clouds.kubernetes.db.host.port" />
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />

View File

@@ -0,0 +1,3 @@
spring:
datasource:
url: jdbc:postgresql://127.0.0.1:6785/leopard

View File

@@ -11,16 +11,13 @@ spring:
datasource:
# url: jdbc:mysql://mysql.lanyuanxiaoyao.com:43780/leopard?useSSL=false
# url: jdbc:mysql://192.168.31.127:3780/leopard?useSSL=false
url: jdbc:postgresql://192.168.31.127:6785/leopard
url: jdbc:postgresql://81.71.3.24:6785/leopard
username: leopard
password: '9NEzFzovnddf@PyEP?e*AYAWnCyd7UhYwQK$pJf>7?ccFiN^x4$eKEZ5~E<7<+~X'
# driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: org.postgresql.Driver
jpa:
generate-ddl: true
properties:
hibernate:
dialect: org.hibernate.dialect.PostgresPlusDialect
quartz:
wait-for-jobs-to-complete-on-shutdown: true
startup-delay: 30s

View File

@@ -0,0 +1,10 @@
spring:
application:
name: leopard-strategy
datasource:
url: jdbc:postgresql://192.168.31.127:6785/leopard
username: leopard
password: '9NEzFzovnddf@PyEP?e*AYAWnCyd7UhYwQK$pJf>7?ccFiN^x4$eKEZ5~E<7<+~X'
driver-class-name: org.postgresql.Driver
fenix:
print-banner: false