application-dev.yml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. server:
  2. port: 9200
  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_msg?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: 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. # mybatis-plus相关配置
  68. mybatis-plus:
  69. type-aliases-package: com.huimv.*.entity
  70. global-config:
  71. banner: false
  72. db-config:
  73. #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  74. id-type: auto
  75. logic-delete-field: deleted # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2)
  76. logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
  77. logic-delete-value: 1 # 逻辑已删除值(默认为 1)
  78. #原生配置
  79. configuration:
  80. map-underscore-to-camel-case: true
  81. cache-enabled: false
  82. call-setters-on-nulls: true
  83. jdbc-type-for-null: 'null'
  84. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl