From 1a327a227a848b7c7dd4038c0fb1be5e45bd6ac9 Mon Sep 17 00:00:00 2001 From: Administrator <593470097@qq.com> Date: Mon, 12 Apr 2021 14:04:34 +0800 Subject: [PATCH] =?UTF-8?q?postgresql=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-dev.yml | 29 ++++++++++++------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/xiaonuo-main/src/main/resources/application-dev.yml b/xiaonuo-main/src/main/resources/application-dev.yml index 46049762..c1495909 100644 --- a/xiaonuo-main/src/main/resources/application-dev.yml +++ b/xiaonuo-main/src/main/resources/application-dev.yml @@ -1,13 +1,13 @@ # Mysql数据库 -spring: - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/xiaonuo-vue-pub?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true - username: root - password: 123456 - # 连接池大小根据实际情况调整 - max-active: 20 - max-pool-prepared-statement-per-connection-size: 20 +#spring: +# datasource: +# driver-class-name: com.mysql.cj.jdbc.Driver +# url: jdbc:mysql://localhost:3306/xiaonuo-vue?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true +# username: root +# password: 123456 +# # 连接池大小根据实际情况调整 +# max-active: 20 +# max-pool-prepared-statement-per-connection-size: 20 # Oracle数据库 #spring: @@ -24,7 +24,16 @@ spring: #spring: # datasource: # driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver -# url: jdbc:sqlserver://localhost:1433;DatabaseName=xiaonuo-vue-pub-mssql +# url: jdbc:sqlserver://localhost:1433;DatabaseName=xiaonuo # username: sa +# password: wangdemo +# filters: wall,mergeStat + +#PostgreSQL配置 +#spring: +# datasource: +# driverClassName: org.postgresql.Driver +# url: jdbc:postgresql://127.0.0.1:5432/xiaonuo +# username: postgres # password: 123456 # filters: wall,mergeStat