From 4cf31d35a2965f0ef51b365fd3861f342cd122c7 Mon Sep 17 00:00:00 2001 From: sunxin <2741094504@qq.com> Date: Thu, 28 Feb 2019 17:44:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0mysql=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E5=A4=9A=E6=9D=A1SQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.yml | 2 +- src/main/resources/application-prod.yml | 3 ++- src/main/resources/application-test.yml | 12 +----------- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 4da83b5a..28cd5320 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -1,6 +1,6 @@ spring: datasource: - url: jdbc:mysql://localhost:3306/tag?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useSSL=false + url: jdbc:mysql://localhost:3306/db-mcms?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true username: root password: root filters: wall,mergeStat diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 2975265a..6ae32dfb 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -1,6 +1,7 @@ spring: datasource: - url: jdbc:mysql://localhost:3306/mcms?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useSSL=false + driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver + url: jdbc:sqlserver://localhost:1433;DatabaseName=db-mcms username: root password: root filters: wall,mergeStat diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index 1d82eec9..db7191b9 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -1,11 +1 @@ -server: - port: 4000 - servlet.context-path: / - -spring: - datasource: - url: jdbc:mysql://172.17.0.4:3306/mcms-4.7.0?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useSSL=false - username: root - password: root - filters: wall,mergeStat - type: com.alibaba.druid.pool.DruidDataSource \ No newline at end of file +mcms4.7.0 Oracle数据库暂不支持 \ No newline at end of file