application-dev.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. socketio:
  2. allowCustomRequests: true
  3. bossCount: 1
  4. host: 0.0.0.0
  5. maxFramePayloadLength: 1048576
  6. maxHttpContentLength: 1048576
  7. pingInterval: 25000
  8. pingTimeout: 6000000
  9. port: 9099
  10. upgradeTimeout: 1000000
  11. workCount: 100
  12. fdkk:
  13. freespacePath: H:\workfile
  14. server:
  15. port: 9010
  16. servlet:
  17. context-path: /
  18. tomcat:
  19. uri-encoding: UTF-8
  20. max-threads: 800
  21. min-spare-threads: 30
  22. spring:
  23. redis:
  24. host: 127.0.0.1
  25. port: 6379
  26. database: 4
  27. password: 1234
  28. timeout: 60s
  29. lettuce:
  30. pool:
  31. min-idle: 30
  32. max-idle: 8
  33. max-active: 8
  34. max-wait: 10000
  35. datasource:
  36. type: com.alibaba.druid.pool.DruidDataSource
  37. driverClassName: com.mysql.cj.jdbc.Driver
  38. druid:
  39. # 主库数据源
  40. master:
  41. url: jdbc:mysql://120.24.252.95:13306/fdkk_meta?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  42. username: root
  43. password: 4dyjkz%
  44. # 从库数据源
  45. slave:
  46. # 从数据源开关/默认关闭
  47. enabled: false
  48. url:
  49. username:
  50. password:
  51. # 初始连接数
  52. initialSize: 5
  53. # 最小连接池数量
  54. minIdle: 10
  55. # 最大连接池数量
  56. maxActive: 20
  57. # 配置获取连接等待超时的时间
  58. maxWait: 60000
  59. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  60. timeBetweenEvictionRunsMillis: 60000
  61. # 配置一个连接在池中最小生存的时间,单位是毫秒
  62. minEvictableIdleTimeMillis: 300000
  63. # 配置一个连接在池中最大生存的时间,单位是毫秒
  64. maxEvictableIdleTimeMillis: 900000
  65. # 配置检测连接是否有效
  66. validationQuery: SELECT 1 FROM DUAL
  67. testWhileIdle: true
  68. testOnBorrow: false
  69. testOnReturn: false
  70. webStatFilter:
  71. enabled: true
  72. statViewServlet:
  73. enabled: true
  74. # 设置白名单,不填则允许所有访问
  75. allow:
  76. url-pattern: /druid/*
  77. # 控制台管理用户名和密码
  78. login-username: fdkk
  79. login-password: 123456
  80. filter:
  81. stat:
  82. enabled: true
  83. # 慢SQL记录
  84. log-slow-sql: true
  85. slow-sql-millis: 1000
  86. merge-sql: true
  87. wall:
  88. config:
  89. multi-statement-allow: true
  90. # MyBatis配置
  91. mybatis-plus:
  92. configuration:
  93. log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  94. map-underscore-to-camel-case: true
  95. cache-enabled: false
  96. call-setters-on-nulls: true
  97. jdbc-type-for-null: 'null'
  98. global-config:
  99. db-config:
  100. db-type: mysql
  101. field-strategy: not_null
  102. id-type: auto
  103. logic-delete-value: 1 # 逻辑已删除值(默认为 1)
  104. logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
  105. table-underline: true
  106. mapper-locations: classpath*:mapper/**/*Mapper.xml
  107. typeAliasesPackage: com.fdkk.**.domain
  108. # PageHelper分页插件
  109. pagehelper:
  110. helperDialect: mysql
  111. supportMethodsArguments: true
  112. params: count=countSql
  113. page-size-zero: true
  114. grpc:
  115. # grpc server相关配置
  116. server:
  117. # 启动端口
  118. port: 3000
  119. address: 0.0.0.0