Skip to content

Commit

Permalink
默认为h2数据库
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyrain2012 committed Aug 24, 2022
1 parent 799582f commit 6148548
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions config/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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快速登录的移动端上线了,需要兼容时打开此开关。
Expand Down

0 comments on commit 6148548

Please sign in to comment.