application-dev.yml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. server:
  2. port: 9100
  3. servlet:
  4. context-path: /api
  5. undertow:
  6. accesslog:
  7. enabled: true
  8. max-http-post-size: -1
  9. buffer-size: 1024
  10. direct-buffers: true
  11. threads:
  12. io: 16
  13. worker: 256
  14. no-request-timeout: 3m
  15. tio:
  16. websocket:
  17. server:
  18. port: 9002
  19. #心跳检测在业务层面自定义进行 ms 毫秒级 按照最后一次接受数据包算 20s
  20. heartbeat-timeout: 20000
  21. #是否支持集群,集群开启需要redis
  22. cluster:
  23. enabled: false
  24. # Sa-Token配置
  25. sa-token:
  26. # token名称 (同时也是cookie名称)
  27. token-name: Authorization
  28. # token有效期,单位s 默认30天, -1代表永不过期
  29. timeout: -1
  30. # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒 一天
  31. activity-timeout: -1
  32. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  33. is-concurrent: true
  34. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  35. is-share: true
  36. # token风格
  37. token-style: simple-uuid
  38. # 是否输出操作日志
  39. is-log: false
  40. # 是否从cookie读取token
  41. is-read-cookie: false
  42. # 是否打开续签
  43. auto-renew: true
  44. logging:
  45. level:
  46. springfox: error
  47. com.nb: warn
  48. config: classpath:logback-spring.xml
  49. file:
  50. path: ./logs
  51. logback:
  52. rollingpolicy:
  53. max-file-size: 10MB
  54. charset:
  55. console: UTF-8
  56. mybatis-plus:
  57. mapperLocations: classpath*:mapper/**/*Mapper.xml
  58. checkConfigLocation: false
  59. global-config:
  60. banner: false
  61. enableSqlRunner: false
  62. dbConfig:
  63. idType: ASSIGN_ID
  64. logic-delete-field: isDelete
  65. logic-not-delete-value: 0
  66. logic-delete-value: 1
  67. configuration:
  68. log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  69. default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler
  70. type-aliases-package: com.nb.bus.entity
  71. captcha:
  72. enable: true
  73. width: 140
  74. height: 38
  75. #验证码过期时间 5min
  76. expire: 300
  77. management:
  78. endpoints:
  79. web:
  80. exposure:
  81. include: heapdump,metrics
  82. # 项目相关配置
  83. app:
  84. # 项目名称
  85. name: nb
  86. # 实例演示开关
  87. demoEnabled: false
  88. # 获取ip地址开关
  89. addressEnabled: true
  90. uploadType: minio
  91. # 上传目录
  92. uploadDir: D:/${app.name}-files
  93. # 缓存前缀
  94. cachePrefix: ${app.name}:dev
  95. # MinIO相关配置
  96. minio:
  97. uploadEndpoint: localhost
  98. uploadPort: 9000
  99. uploadSecure: false
  100. downEndpoint: localhost
  101. downPort: 9000
  102. downSecure: false
  103. accessKey: minioadmin
  104. secretKey: minioadmin
  105. bucketName: ${app.name}bucket
  106. # 数据源配置
  107. spring:
  108. servlet:
  109. multipart:
  110. max-file-size: 1024MB
  111. max-request-size: 1024MB
  112. enabled: true
  113. application:
  114. name: nb
  115. profiles:
  116. active: dev
  117. jackson:
  118. time-zone: GMT+8
  119. flyway:
  120. enabled: true
  121. encoding: UTF-8
  122. # 迁移脚本位置
  123. locations:
  124. - classpath:db/migration
  125. sql-migration-prefix: V
  126. sql-migration-separator: _
  127. sql-migration-suffixes: .sql
  128. validate-on-migrate: true
  129. baseline-on-migrate: true
  130. datasource:
  131. type: com.alibaba.druid.pool.DruidDataSource
  132. driverClassName: com.mysql.cj.jdbc.Driver
  133. url: jdbc:mysql://localhost:3306/nbnetpump?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&useInformationSchema=true
  134. username: root
  135. password: root
  136. druid:
  137. # 初始连接数
  138. initialSize: 5
  139. # 最小连接池数量
  140. minIdle: 10
  141. # 最大连接池数量
  142. maxActive: 20
  143. # 配置获取连接等待超时的时间
  144. maxWait: 60000
  145. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  146. timeBetweenEvictionRunsMillis: 60000
  147. # 配置一个连接在池中最小生存的时间,单位是毫秒
  148. minEvictableIdleTimeMillis: 300000
  149. # 配置一个连接在池中最大生存的时间,单位是毫秒
  150. maxEvictableIdleTimeMillis: 900000
  151. # 配置检测连接是否有效
  152. validationQuery: SELECT 1 FROM DUAL
  153. testWhileIdle: true
  154. testOnBorrow: false
  155. testOnReturn: false
  156. # redis 配置
  157. redis:
  158. # 地址
  159. host: localhost
  160. # 端口,默认为6379
  161. port: 6379
  162. # 数据库索引
  163. database: 6
  164. # 密码
  165. password: 6E6985E1F7CB40F24A\.
  166. # 连接超时时间
  167. timeout: 30s
  168. lettuce:
  169. pool:
  170. # 连接池中的最小空闲连接
  171. min-idle: 16
  172. # 连接池中的最大空闲连接
  173. max-idle: 16
  174. # 连接池的最大数据库连接数
  175. max-active: 16
  176. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  177. max-wait: -1ms
  178. request:
  179. check:
  180. enable: false
  181. # 开启请求验签
  182. sign: true
  183. # 请求与服务器时间间隔不得超过 10分钟
  184. expire-interval: 600
  185. # 请求不可重复接收时间 10分钟
  186. repeat-interval: 600
  187. hospital:
  188. code: 123
  189. name: 中央监护管理系统