From 6148548a7a298d83173823b96ccd5ca739ce8487 Mon Sep 17 00:00:00 2001 From: heavyrain2012 Date: Wed, 24 Aug 2022 16:48:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=BAh2=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/application.properties | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/config/application.properties b/config/application.properties index 13507a2..f0c1749 100644 --- a/config/application.properties +++ b/config/application.properties @@ -8,22 +8,22 @@ sms.super_code=66666 # h2适合开发使用,上线时请切换到mysql。切换时把下面h2部分配置注释掉,打开mysql部署配置。 ##*********************** h2 DB begin *************************** -#spring.datasource.url=jdbc:h2:file:./appdata -#spring.datasource.username=sa -#spring.datasource.password= -#spring.datasource.driver-class-name=org.h2.Driver -#spring.jpa.hibernate.ddl-auto=update +spring.datasource.url=jdbc:h2:file:./appdata +spring.datasource.username=sa +spring.datasource.password= +spring.datasource.driver-class-name=org.h2.Driver +spring.jpa.hibernate.ddl-auto=update ##*********************** h2 DB end ****************************** # mysql默认配置 # mysql需要手动创建数据库,mysql命令行下执行 create database appdata; appdata可以换为别的库名,但注意不能使用IM服务器使用的数据库"wfchat",否则会引起冲突。 ##*********************** mysql DB begin ************************* -spring.datasource.url=jdbc:mysql://192.168.1.120:3306/appdata?serverTimezone=UTC&useSSL=false -spring.datasource.username=root -spring.datasource.password=123456 -spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -spring.jpa.database=mysql -spring.jpa.hibernate.ddl-auto=update +#spring.datasource.url=jdbc:mysql://localhost:3306/appdata?serverTimezone=UTC&useSSL=false +#spring.datasource.username=root +#spring.datasource.password=123456 +#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +#spring.jpa.database=mysql +#spring.jpa.hibernate.ddl-auto=update ##*********************** mysql DB end *************************** # PC快速登录兼容旧的版本。仅当已经有未支持PC快速登录的移动端上线了,需要兼容时打开此开关。