From 41a692d6908ef9fd18b125951641b5a9d3695d7cae037086b31d95c5645a8fdb Mon Sep 17 00:00:00 2001 From: attiya <2413103649@qq.com> Date: Mon, 1 Sep 2025 15:25:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ebike-staff/src/main/resources/application-dev.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ebike-staff/src/main/resources/application-dev.yml b/ebike-staff/src/main/resources/application-dev.yml index c35c0c4..182dec0 100644 --- a/ebike-staff/src/main/resources/application-dev.yml +++ b/ebike-staff/src/main/resources/application-dev.yml @@ -8,14 +8,20 @@ spring: server-addr: 127.0.0.1:8848 # nacos username: nacos password: nacos + sql: + init: + platform: postgis + mode: never + schema-locations: classpath:db/init.sql + data-locations: classpath:db/data.sql jackson: serialization: write-dates-as-timestamps: false date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 datasource: - url: jdbc:postgresql://192.168.1.31:5433/ebike_staff??currentSchema=public&stringtype=unspecified - username: postgres + url: jdbc:postgresql://47.109.71.130:5432/ebike_staff?currentSchema=public&stringtype=unspecified + username: root password: 970529 driver-class-name: org.postgresql.Driver hikari: @@ -36,11 +42,11 @@ spring: # Redis数据库索引(默认为0) database: 1 # Redis服务器地址 - host: 192.168.1.31 + host: 47.109.71.130 # Redis服务器连接端口 port: 6379 # Redis服务器连接密码(默认为空) - # password: + password: 970529 # 连接超时时间 lettuce: pool: