application.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. logging:
  2. file:
  3. name:
  4. logs/tcwm.log
  5. # Tomcat
  6. server:
  7. tomcat:
  8. uri-encoding: UTF-8
  9. max-threads: 1000
  10. min-spare-threads: 30
  11. connection-timeout: 5000ms
  12. port: 8171
  13. servlet:
  14. context-path: /sqx_fast
  15. spring:
  16. main:
  17. allow-circular-references: true
  18. # 环境 dev|test|prod
  19. profiles:
  20. active: prod
  21. # jackson时间格式化
  22. jackson:
  23. time-zone: GMT+8
  24. date-format: yyyy-MM-dd HH:mm:ss
  25. servlet:
  26. multipart:
  27. max-file-size: 1024MB
  28. max-request-size: 1024MB
  29. enabled: true
  30. redis:
  31. open: false # 是否开启redis缓存 true开启 false关闭
  32. database: 0
  33. host: 103.131.169.54
  34. port: 6379
  35. password: dev@redis@1234 # 密码(默认为空)
  36. timeout: 6000ms # 连接超时时长(毫秒)
  37. jedis:
  38. pool:
  39. max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
  40. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  41. max-idle: 10 # 连接池中的最大空闲连接
  42. min-idle: 5 # 连接池中的最小空闲连接
  43. mvc:
  44. throw-exception-if-no-handler-found: true
  45. pathmatch:
  46. matching-strategy: ant_path_matcher
  47. # resources:
  48. # add-mappings: false
  49. #mybatis
  50. mybatis-plus:
  51. mapper-locations: classpath*:/mapper/**/*.xml
  52. #实体扫描,多个package用逗号或者分号分隔
  53. typeAliasesPackage: com.sqx.modules.*.entity
  54. global-config:
  55. #数据库相关配置
  56. db-config:
  57. #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  58. id-type: AUTO
  59. logic-delete-value: -1
  60. logic-not-delete-value: 0
  61. insert-strategy: not_empty
  62. update-strategy: not_empty
  63. select-strategy: not_empty
  64. banner: false
  65. #原生配置
  66. configuration:
  67. map-underscore-to-camel-case: true
  68. cache-enabled: false
  69. call-setters-on-nulls: true
  70. jdbc-type-for-null: 'null'
  71. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  72. sqx:
  73. redis:
  74. open: false
  75. shiro:
  76. redis: false
  77. # APP模块,是通过jwt认证的,如果要使用APP模块,则需要修改【加密秘钥】
  78. jwt:
  79. # 加密秘钥
  80. secret: f4e2e52034348f86b67cde581c0f9eb5
  81. # token有效时长,7天,单位秒
  82. expire: 2592000
  83. header: token