SQLServer-guide.md
... ...
@@ -202,21 +202,58 @@ WHERE name = 'dev_sch';
202 202
#### 标准配置
203 203
204 204
```properties
205
-######## SQL Server DBCP ##########
205
+########DBCP##########
206
+
207
+######## SQL Server ##########
206 208
driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
207
-url=jdbc:sqlserver://ip:1433;databaseName=snest_dev;encrypt=true;trustServerCertificate=true
208
-username=snest_dev
209
+url=jdbc:sqlserver://192.168.184.120:1433;databaseName=snest_dev;encrypt=true;trustServerCertificate=true;
210
+username=snest_changwen
209 211
password=******
212
+validationQuery=SELECT 1
213
+initialSize=5
214
+maxActive=30
215
+maxActive=200
216
+minIdle=5
217
+maxWait=6000
218
+filters=stat
219
+timeBetweenEvictionRunsMillis=60000
220
+minEvictableIdleTimeMillis=300000
221
+testOnBorrow=false
222
+testOnReturn=false
223
+testWhileIdle=true
224
+poolPreparedStatements: true
225
+maxOpenPreparedStatements: 20
226
+connectionProperties:druid.stat.sql.MaxSize=50;druid.stat.mergeSql=true
227
+connectionProperties:druid.stat.sql.MaxSize=50;
228
+
210 229
```
211 230
212 231
#### 集成环境配置
213 232
214 233
```properties
215 234
######## 集成环境 DBCP ##########
235
+######## SQL Server ##########
216 236
driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
217
-url=jdbc:sqlserver://ip:1433;databaseName=snest_dev;encrypt=true;trustServerCertificate=true;sendStringParametersAsUnicode=false
218
-username=snest_dev
237
+url=jdbc:sqlserver://192.168.184.120:1433;databaseName=snest_test;encrypt=true;trustServerCertificate=true;
238
+username=snest_test
219 239
password=******
240
+validationQuery=SELECT 1
241
+initialSize=5
242
+maxActive=30
243
+maxActive=200
244
+minIdle=5
245
+maxWait=6000
246
+filters=stat
247
+timeBetweenEvictionRunsMillis=60000
248
+minEvictableIdleTimeMillis=300000
249
+testOnBorrow=false
250
+testOnReturn=false
251
+testWhileIdle=true
252
+poolPreparedStatements: true
253
+maxOpenPreparedStatements: 20
254
+connectionProperties:druid.stat.sql.MaxSize=50;druid.stat.mergeSql=true
255
+connectionProperties:druid.stat.sql.MaxSize=50;
256
+
220 257
```
221 258
222 259
#### 常用 URL 参数