application-dev.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. server:
  2. port: 9000
  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://localhost:3306/huimv_smart_mgt?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  25. username: root
  26. password: root
  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: 500
  49. merge-sql: true
  50. enabled: true
  51. db-type: mysql
  52. wall:
  53. config:
  54. multi-statement-allow: true
  55. filters:
  56. - stat
  57. - wall
  58. - log4j
  59. # redis
  60. redis:
  61. # open: false # 是否开启redis缓存 true开启 false关闭
  62. database: 0
  63. host: localhost
  64. port: 6379
  65. password: # 密码(默认为空)
  66. timeout: 6000ms # 连接超时时长(毫秒)
  67. jedis:
  68. pool:
  69. max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
  70. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  71. max-idle: 10 # 连接池中的最大空闲连接
  72. min-idle: 5 # 连接池中的最小空闲连接
  73. # mybatis-plus相关配置
  74. mybatis-plus:
  75. type-aliases-package: com.huimv.*.entity
  76. global-config:
  77. banner: false
  78. db-config:
  79. #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  80. id-type: auto
  81. logic-delete-field: deleted # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2)
  82. logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
  83. logic-delete-value: 1 # 逻辑已删除值(默认为 1)
  84. #原生配置
  85. configuration:
  86. map-underscore-to-camel-case: true
  87. cache-enabled: false
  88. call-setters-on-nulls: true
  89. jdbc-type-for-null: 'null'
  90. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  91. renyang:
  92. client: 20210501
  93. #logging:
  94. # level:
  95. # com.alibaba.druid.pool.DruidAbstractDataSource: error