Commit b9e4682d3ffb4446f41cf6170a3920a93d94f2d3
1 parent
3a502b36
完善ssrc符合国标,并完善很多小问题
Showing
1 changed file
with
1 additions
and
25 deletions
src/main/resources/application.yml
| @@ -16,35 +16,11 @@ spring: | @@ -16,35 +16,11 @@ spring: | ||
| 16 | password: | 16 | password: |
| 17 | #超时时间 | 17 | #超时时间 |
| 18 | timeout: 10000 | 18 | timeout: 10000 |
| 19 | - # 可用连接实例的最大数目,默认值为8 | ||
| 20 | - maxTotal: 512 | ||
| 21 | - #控制一个pool最多有多少个状态为idle(空闲的)的jedis实例,默认值也是8 | ||
| 22 | - maxIdle: 100 | ||
| 23 | - #最小空闲连接数 | ||
| 24 | - minIdle: 50 | ||
| 25 | - #获取连接时的最大等待毫秒数,小于零:阻塞不确定的时间,默认-1 | ||
| 26 | - maxWaitMillis: 10000 | ||
| 27 | - #每次释放连接的最大数目 | ||
| 28 | - numTestsPerEvictionRun: 100 | ||
| 29 | - #释放连接的扫描间隔(毫秒) | ||
| 30 | - timeBetweenEvictionRunsMillis: 3000 | ||
| 31 | - #连接最小空闲时间 | ||
| 32 | - minEvictableIdleTimeMillis: 1800000 | ||
| 33 | - #连接空闲多久后释放,当空闲时间>该值且空闲连接>最大空闲连接数时直接释放 | ||
| 34 | - softMinEvictableIdleTimeMillis: 10000 | ||
| 35 | - #在获取连接的时候检查有效性,默认false | ||
| 36 | - testOnBorrow: true | ||
| 37 | - #在空闲时检查有效性,默认false | ||
| 38 | - testWhileIdle: true | ||
| 39 | - #在归还给pool时,是否提前进行validate操作 | ||
| 40 | - testOnReturn: true | ||
| 41 | - #连接耗尽时是否阻塞,false报异常,ture阻塞直到超时,默认true | ||
| 42 | - blockWhenExhausted: false | ||
| 43 | datasource: | 19 | datasource: |
| 44 | name: eiot | 20 | name: eiot |
| 45 | url: jdbc:mysql://10.24.20.63:3306/eiot?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true | 21 | url: jdbc:mysql://10.24.20.63:3306/eiot?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true |
| 46 | username: root | 22 | username: root |
| 47 | - password: Ptjsinspur19.? | 23 | + password: 123456 |
| 48 | type: com.alibaba.druid.pool.DruidDataSource | 24 | type: com.alibaba.druid.pool.DruidDataSource |
| 49 | driver-class-name: com.mysql.jdbc.Driver | 25 | driver-class-name: com.mysql.jdbc.Driver |
| 50 | server: | 26 | server: |