|
@@ -23,12 +23,44 @@ logging:
|
|
|
org.springframework: warn
|
|
|
|
|
|
|
|
|
+#spring:
|
|
|
+# datasource:
|
|
|
+# url: jdbc:sqlserver://10.1.100.119:1433;DatabaseName=HS_WEB;encrypt=false;trustServerCertificate=true;
|
|
|
+# username: sa
|
|
|
+# password: Abc123456
|
|
|
+# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
|
+
|
|
|
spring:
|
|
|
datasource:
|
|
|
- url: jdbc:sqlserver://10.1.100.119:1433;DatabaseName=HS_WEB;encrypt=false;trustServerCertificate=true;
|
|
|
+ type: com.alibaba.druid.pool.DruidDataSource
|
|
|
+ driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
|
+ url: jdbc:sqlserver://10.1.100.119:1433;DatabaseName=HS_WEB;encrypt=false;trustServerCertificate=true
|
|
|
username: sa
|
|
|
password: Abc123456
|
|
|
- driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
|
+ # Druid特有配置
|
|
|
+ druid:
|
|
|
+ initial-size: 5
|
|
|
+ min-idle: 5
|
|
|
+ max-active: 10
|
|
|
+ max-wait: 10000
|
|
|
+ time-between-eviction-runs-millis: 60000
|
|
|
+ min-evictable-idle-time-millis: 300000
|
|
|
+ validation-query: SELECT 1
|
|
|
+ test-while-idle: true
|
|
|
+ test-on-borrow: false
|
|
|
+ test-on-return: false
|
|
|
+ pool-prepared-statements: true
|
|
|
+ max-pool-prepared-statement-per-connection-size: 20
|
|
|
+ filter:
|
|
|
+ stat:
|
|
|
+ enabled: true
|
|
|
+ # 慢SQL记录
|
|
|
+ log-slow-sql: true
|
|
|
+ slow-sql-millis: 1000
|
|
|
+ merge-sql: true
|
|
|
+ wall:
|
|
|
+ config:
|
|
|
+ multi-statement-allow: true
|
|
|
|
|
|
#spring:
|
|
|
# datasource:
|