zuul-server-dev.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. spring:
  2. sleuth:
  3. sampler:
  4. percentage: 1.0
  5. hystrix:
  6. strategy:
  7. enabled: false
  8. datasource:
  9. dynamic:
  10. primary: master
  11. datasource:
  12. master:
  13. url: jdbc:mysql://172.16.88.234:3306/callcenterdb3.0?useUnicode=true&characterEncoding=utf-8
  14. username: root
  15. password: admin01
  16. max-idle: 10
  17. max-wait: 10000
  18. min-idle: 5
  19. initial-size: 5
  20. validation-query: SELECT 1
  21. test-on-borrow: false
  22. test-while-idle: true
  23. time-between-eviction-runs-millis: 18800
  24. driver-class-name: com.mysql.jdbc.Driver
  25. jdbc-interceptors: ConnectionState;SlowQueryReport(threshold=0)
  26. autoconfigure:
  27. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  28. #mybatis plus
  29. mybatis-plus:
  30. mapper-locations: classpath*:/mapper/**/*.xml
  31. #实体扫描,多个package用逗号或者分号分隔
  32. typeAliasesPackage: ins.*.po
  33. #typeEnumsPackage: com.baomidou.springboot.entity.enums
  34. global-config:
  35. # 数据库相关配置
  36. db-config:
  37. #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID",ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  38. id-type: id_worker
  39. #字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
  40. field-strategy: not_empty
  41. #驼峰下划线转换
  42. column-underline: true
  43. #数据库大写下划线转换
  44. #capital-mode: true
  45. #逻辑删除配置
  46. logic-delete-value: 0
  47. logic-not-delete-value: 1
  48. db-type: h2
  49. #刷新mapper 调试神器
  50. refresh: true
  51. # 原生配置
  52. configuration:
  53. map-underscore-to-camel-case: true
  54. cache-enabled: false
  55. saa:
  56. power: false
  57. basePackage: ins/**/po
  58. zuul:
  59. forceOriginalQueryStringEncoding: true
  60. #不需要网关鉴权的接口路径 多个用英文标点;隔开
  61. path:
  62. no_header: "jwt/oauth;jwt/code/image;tenant/all;tenant/detail;batchTask/agentOrderPush;gateway/platform/getConfig"
  63. platform:
  64. tenant:
  65. multiTenant: false # 是否是独立租户运营模式,单租户运营模式下没有租户选择框