Skip to content

Commit 2914e70

Browse files
author
heavyrian2012
committed
默认配置使用h2db
1 parent a8d749f commit 2914e70

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

config/application.properties

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ spring.jackson.default-property-inclusion=NON_NULL
1616

1717
# h2适合开发使用,上线时请切换到mysql。切换时把下面h2部分配置注释掉,打开mysql部署配置。
1818
##*********************** h2 DB begin ***************************
19-
#spring.datasource.url=jdbc:h2:file:./appdata
20-
#spring.datasource.username=sa
21-
#spring.datasource.password=
22-
#spring.datasource.driver-class-name=org.h2.Driver
23-
#spring.jpa.hibernate.ddl-auto=update
19+
spring.datasource.url=jdbc:h2:file:./appdata
20+
spring.datasource.username=sa
21+
spring.datasource.password=
22+
spring.datasource.driver-class-name=org.h2.Driver
23+
spring.jpa.hibernate.ddl-auto=update
2424
##*********************** h2 DB end ******************************
2525

2626
# mysql默认配置
@@ -39,13 +39,14 @@ spring.jackson.default-property-inclusion=NON_NULL
3939
# 达梦数据库配置
4040
# 达梦数据库需要手动创建数据库,使用达梦客户端工具创建数据库
4141
##*********************** 达梦 DB begin *************************
42-
spring.datasource.url=jdbc:dm://192.168.1.6:5237?useUnicode=true&characterEncoding=utf-8
43-
spring.datasource.username=SYSDBA
44-
spring.datasource.password=Wfc123!@
45-
spring.datasource.driver-class-name=dm.jdbc.driver.DmDriver
46-
spring.jpa.hibernate.ddl-auto=create
47-
spring.jpa.properties.hibernate.format_sql=true
48-
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.DmDialect
42+
#spring.datasource.url=jdbc:dm://localhost:5236?useUnicode=true&characterEncoding=utf-8
43+
#spring.datasource.username=SYSDBA
44+
#spring.datasource.password=SYSDBA001
45+
#spring.datasource.driver-class-name=dm.jdbc.driver.DmDriver
46+
#spring.jpa.hibernate.ddl-auto=update
47+
#spring.jpa.show-sql=true
48+
#spring.jpa.properties.hibernate.format_sql=true
49+
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.DmDialect
4950
##*********************** 达梦 DB end ***************************
5051

5152
# ldap登录的配置

0 commit comments

Comments
 (0)