application.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. mvc:
  31. throw-exception-if-no-handler-found: true
  32. pathmatch:
  33. matching-strategy: ant_path_matcher
  34. # resources:
  35. # add-mappings: false
  36. #mybatis
  37. mybatis-plus:
  38. mapper-locations: classpath*:/mapper/**/*.xml
  39. #实体扫描,多个package用逗号或者分号分隔
  40. typeAliasesPackage: com.sqx.modules.*.entity
  41. global-config:
  42. #数据库相关配置
  43. db-config:
  44. #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  45. id-type: AUTO
  46. logic-delete-value: -1
  47. logic-not-delete-value: 0
  48. insert-strategy: not_empty
  49. update-strategy: not_empty
  50. select-strategy: not_empty
  51. banner: false
  52. #原生配置
  53. configuration:
  54. map-underscore-to-camel-case: true
  55. cache-enabled: false
  56. call-setters-on-nulls: true
  57. jdbc-type-for-null: 'null'
  58. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  59. sqx:
  60. redis:
  61. open: true
  62. shiro:
  63. redis: false
  64. # APP模块,是通过jwt认证的,如果要使用APP模块,则需要修改【加密秘钥】
  65. jwt:
  66. # 加密秘钥
  67. secret: f4e2e52034348f86b67cde581c0f9eb5
  68. # token有效时长,7天,单位秒
  69. expire: 2592000
  70. header: token