From 218518bbf269c1755dfd18dac7d882439c58401f Mon Sep 17 00:00:00 2001 From: ycl Date: Fri, 20 Sep 2024 11:55:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20template/entrance/web/src/?= =?UTF-8?q?main/resources/application-local.properties?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #支持postgresql --- .../web/src/main/resources/application-local.properties | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/template/entrance/web/src/main/resources/application-local.properties b/template/entrance/web/src/main/resources/application-local.properties index 9fb7df4..af260d4 100644 --- a/template/entrance/web/src/main/resources/application-local.properties +++ b/template/entrance/web/src/main/resources/application-local.properties @@ -14,10 +14,14 @@ spring.datasource.password=${DB_PASSWORD:{{ .dbPassword }}} spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver {{- else if eq .dbType "postgresql" }} spring.datasource.driver-class-name=org.postgresql.Driver +hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect +vs.sqlmapper.dialect=postgresql {{- end }} spring.datasource.type=org.apache.tomcat.jdbc.pool.DataSource spring.datasource.tomcat.max-age=3600000 spring.jpa.open-in-view=false +vs.sqlmapper.showSql=true +hibernate.show_sql=true # flyway spring.flyway.enabled=false