application.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. application:
  17. name: wm-01ll
  18. main:
  19. allow-circular-references: true
  20. # 环境 dev|test|prod
  21. profiles:
  22. active: prod
  23. # jackson时间格式化
  24. jackson:
  25. time-zone: GMT+8
  26. date-format: yyyy-MM-dd HH:mm:ss
  27. servlet:
  28. multipart:
  29. max-file-size: 1024MB
  30. max-request-size: 1024MB
  31. enabled: true
  32. mvc:
  33. throw-exception-if-no-handler-found: true
  34. pathmatch:
  35. matching-strategy: ant_path_matcher
  36. # resources:
  37. # add-mappings: false
  38. # 监控
  39. management:
  40. endpoints:
  41. web:
  42. # 个性化端点访问路径,防止地址泄露
  43. base-path: /my-check
  44. exposure:
  45. include: "*"
  46. endpoint:
  47. prometheus:
  48. enabled: true
  49. health:
  50. show-details: always
  51. metrics:
  52. export:
  53. prometheus:
  54. enabled: true
  55. #mybatis
  56. mybatis-plus:
  57. mapper-locations: classpath*:/mapper/**/*.xml
  58. #实体扫描,多个package用逗号或者分号分隔
  59. typeAliasesPackage: com.sqx.modules.*.entity
  60. global-config:
  61. #数据库相关配置
  62. db-config:
  63. #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  64. id-type: AUTO
  65. logic-delete-value: -1
  66. logic-not-delete-value: 0
  67. insert-strategy: not_empty
  68. update-strategy: not_empty
  69. select-strategy: not_empty
  70. banner: false
  71. #原生配置
  72. configuration:
  73. map-underscore-to-camel-case: true
  74. cache-enabled: false
  75. call-setters-on-nulls: true
  76. jdbc-type-for-null: 'null'
  77. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  78. sqx:
  79. redis:
  80. open: true
  81. shiro:
  82. redis: false
  83. # APP模块,是通过jwt认证的,如果要使用APP模块,则需要修改【加密秘钥】
  84. jwt:
  85. # 加密秘钥
  86. secret: f4e2e52034348f86b67cde581c0f9eb5
  87. # token有效时长,7天,单位秒
  88. expire: 2592000
  89. header: token