Преглед изворни кода

添加mysql执行多条SQL

sunxin пре 6 година
родитељ
комит
4cf31d35a2

+ 1 - 1
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

+ 2 - 1
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

+ 1 - 11
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
+mcms4.7.0 Oracle数据库暂不支持