application-dev.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. server:
  2. port: 9100
  3. tomcat:
  4. uri-encoding: UTF-8
  5. # min-spare-threads: 30
  6. # max-threads: 1000
  7. # servlet:
  8. # context-path:
  9. spring:
  10. # jackson时间格式化
  11. jackson:
  12. time-zone: GMT+8
  13. date-format: yyyy-MM-dd HH:mm:ss
  14. servlet:
  15. multipart:
  16. max-file-size: 100MB
  17. max-request-size: 100MB
  18. enabled: true
  19. # 数据源
  20. datasource:
  21. type: com.alibaba.druid.pool.DruidDataSource
  22. druid:
  23. driver-class-name: com.mysql.cj.jdbc.Driver
  24. url: jdbc:mysql://192.168.1.7:3306/huimv_smart_datacollection?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  25. username: root
  26. password: hm123456
  27. initial-size: 10
  28. max-active: 100
  29. min-idle: 10
  30. max-wait: 60000
  31. pool-prepared-statements: true
  32. max-pool-prepared-statement-per-connection-size: 20
  33. time-between-eviction-runs-millis: 60000
  34. min-evictable-idle-time-millis: 300000
  35. #Oracle需要打开注释
  36. #validation-query: SELECT 1 FROM DUAL
  37. test-while-idle: true
  38. test-on-borrow: false
  39. test-on-return: false
  40. stat-view-servlet:
  41. enabled: true
  42. url-pattern: /druid/*
  43. #login-username: admin
  44. #login-password: admin
  45. filter:
  46. stat:
  47. log-slow-sql: true
  48. slow-sql-millis: 1000
  49. merge-sql: false
  50. wall:
  51. config:
  52. multi-statement-allow: true
  53. # redis
  54. redis:
  55. # open: false # 是否开启redis缓存 true开启 false关闭
  56. database: 0
  57. host: localhost
  58. port: 6379
  59. password: # 密码(默认为空)
  60. timeout: 6000ms # 连接超时时长(毫秒)
  61. jedis:
  62. pool:
  63. max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
  64. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  65. max-idle: 10 # 连接池中的最大空闲连接
  66. min-idle: 5 # 连接池中的最小空闲连接
  67. # nacos
  68. cloud:
  69. nacos:
  70. discovery:
  71. server-addr: 192.168.1.57:8848
  72. application:
  73. name: huimv-smart-datacollection
  74. # mybatis-plus相关配置
  75. mybatis-plus:
  76. type-aliases-package: com.huimv.*.entity
  77. global-config:
  78. banner: false
  79. db-config:
  80. #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  81. id-type: auto
  82. logic-delete-field: deleted # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2)
  83. logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
  84. logic-delete-value: 1 # 逻辑已删除值(默认为 1)
  85. #原生配置
  86. configuration:
  87. map-underscore-to-camel-case: true
  88. cache-enabled: false
  89. call-setters-on-nulls: true
  90. jdbc-type-for-null: 'null'
  91. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl