123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- socketio:
- allowCustomRequests: true
- bossCount: 1
- host: 0.0.0.0
- maxFramePayloadLength: 1048576
- maxHttpContentLength: 1048576
- pingInterval: 25000
- pingTimeout: 6000000
- port: 9099
- upgradeTimeout: 1000000
- workCount: 100
- fdkk:
- freespacePath: H:\workfile
- server:
- port: 9010
- servlet:
- context-path: /
- tomcat:
- uri-encoding: UTF-8
- max-threads: 800
- min-spare-threads: 30
- spring:
- redis:
- host: 127.0.0.1
- port: 6379
- database: 4
- password: 1234
- timeout: 60s
- lettuce:
- pool:
- min-idle: 30
- max-idle: 8
- max-active: 8
- max-wait: 10000
- datasource:
- type: com.alibaba.druid.pool.DruidDataSource
- driverClassName: com.mysql.cj.jdbc.Driver
- druid:
- # 主库数据源
- master:
- url: jdbc:mysql://120.24.252.95:13306/fdkk_meta?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
- username: root
- password: 4dyjkz%
- # 从库数据源
- slave:
- # 从数据源开关/默认关闭
- enabled: false
- url:
- username:
- password:
- # 初始连接数
- initialSize: 5
- # 最小连接池数量
- minIdle: 10
- # 最大连接池数量
- maxActive: 20
- # 配置获取连接等待超时的时间
- maxWait: 60000
- # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
- timeBetweenEvictionRunsMillis: 60000
- # 配置一个连接在池中最小生存的时间,单位是毫秒
- minEvictableIdleTimeMillis: 300000
- # 配置一个连接在池中最大生存的时间,单位是毫秒
- maxEvictableIdleTimeMillis: 900000
- # 配置检测连接是否有效
- validationQuery: SELECT 1 FROM DUAL
- testWhileIdle: true
- testOnBorrow: false
- testOnReturn: false
- webStatFilter:
- enabled: true
- statViewServlet:
- enabled: true
- # 设置白名单,不填则允许所有访问
- allow:
- url-pattern: /druid/*
- # 控制台管理用户名和密码
- login-username: fdkk
- login-password: 123456
- filter:
- stat:
- enabled: true
- # 慢SQL记录
- log-slow-sql: true
- slow-sql-millis: 1000
- merge-sql: true
- wall:
- config:
- multi-statement-allow: true
- # MyBatis配置
- mybatis-plus:
- configuration:
- log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
- map-underscore-to-camel-case: true
- cache-enabled: false
- call-setters-on-nulls: true
- jdbc-type-for-null: 'null'
- global-config:
- db-config:
- db-type: mysql
- field-strategy: not_null
- id-type: auto
- logic-delete-value: 1 # 逻辑已删除值(默认为 1)
- logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
- table-underline: true
- mapper-locations: classpath*:mapper/**/*Mapper.xml
- typeAliasesPackage: com.fdkk.**.domain
- # PageHelper分页插件
- pagehelper:
- helperDialect: mysql
- supportMethodsArguments: true
- params: count=countSql
- page-size-zero: true
- grpc:
- # grpc server相关配置
- server:
- # 启动端口
- port: 3000
- address: 0.0.0.0
|