From 0cea740a29793d5ce6678c9c01ac97bf4c5642cd Mon Sep 17 00:00:00 2001 From: xiongfeng Date: Mon, 25 Jul 2022 11:56:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9D=80=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.yml | 6 +++--- src/main/resources/templates/login.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 852b407..1127d28 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -10,18 +10,18 @@ spring: connection-test-query: SELECT 1 datasource: master: - url: jdbc:mysql://122.112.153.128:3306/xf-boot-base?useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=Asia/Shanghai + url: jdbc:mysql://120.48.109.209:3306/xf-boot-base?useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=Asia/Shanghai username: root password: 123456 driver-class-name: com.mysql.cj.jdbc.Driver slave: - url: jdbc:mysql://122.112.153.128:3306/xf-boot-base?useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=Asia/Shanghai + url: jdbc:mysql://120.48.109.209:3306/xf-boot-base?useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=Asia/Shanghai username: root password: 123456 driver-class-name: com.mysql.cj.jdbc.Driver redis: port: 6379 #Redis服务器连接的端口 - host: 122.112.153.128 # Redis服务器的地址 + host: 120.48.109.209 # Redis服务器的地址 password: redis # Redis服务器连接密码(默认为空) timeout: 5000 # 连接超时时间(毫秒) lettuce: #参考博客 https://blog.csdn.net/weixin_43944305/article/details/124322595 diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html index 37e0f35..1a271a6 100644 --- a/src/main/resources/templates/login.html +++ b/src/main/resources/templates/login.html @@ -54,7 +54,7 @@ var json = JSON.stringify(data); var cipher = this.encryptByPublicKey(json); console.log("密文 :" + cipher); - var url = "http://122.112.153.128:8089/user/login"; + var url = "http://120.48.109.209:8089/user/login"; axios.post(url, { encryptedData: cipher, })