12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- server:
- port: 8081
- spring:
- application:
- name: sr-smp-dao
- data:
- mongodb:
- uri: mongodb://dev001:dev123@192.168.1.230:27017/srdb
- datasource:
- driver-class-name: com.mysql.cj.jdbc.Driver
- druid:
- # druid连接池监控
- stat-view-servlet:
- enabled: true
- url-pattern: /druid/*
- login-username: admin
- login-password: xyy123456
- filter:
- stat:
- enabled: true
- log-slow-sql: true
- slow-sql-millis: 1000
- wall:
- config:
- delete-where-none-check: true
- enabled: true
- log-violation: true
- throw-exception: false
- initialSize: 10
- maxActive: 50
- maxOpenPreparedStatements: 50
- maxWait: 60000
- minEvictableIdleTimeMillis: 300000
- minIdle: 1
- poolPreparedStatements: false
- testOnBorrow: true
- testOnReturn: false
- testWhileIdle: true
- timeBetweenEvictionRunsMillis: 60000
- validationQuery: SELECT 1 FROM dual
- type: com.alibaba.druid.pool.DruidDataSource
- url: jdbc:mysql://192.168.1.230:3306/sr_smp?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
- username: root
- password: xyy123456
- jackson:
- date-format: yyyy-MM-dd HH:mm:ss
- default-property-inclusion: non_empty
- time-zone: Asia/Shanghai
- # redis 配置
- redis:
- # 地址
- host: 192.168.1.230
- # 端口,默认为6379
- port: 6379
- # 数据库索引
- database: 10
- # 密码
- password: xyy123456
- # 连接超时时间
- timeout: 10s
- lettuce:
- pool:
- # 连接池中的最小空闲连接
- min-idle: 0
- # 连接池中的最大空闲连接
- max-idle: 8
- # 连接池的最大数据库连接数
- max-active: 8
- # #连接池最大阻塞等待时间(使用负值表示没有限制)
- max-wait: -1ms
- logging:
- level:
- com:
- sr:
- smp:
- mapper:
- '*': debug
|