zuul-server-dev.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. spring:
  2. sleuth:
  3. sampler:
  4. percentage: 1.0
  5. hystrix:
  6. strategy:
  7. enabled: false
  8. datasource:
  9. url: jdbc:mysql://192.168.1.204:3306/callcenterdb2.0?useUnicode=true&characterEncoding=utf-8
  10. username: root
  11. password: Cs123456
  12. max-idle: 10
  13. max-wait: 10000
  14. min-idle: 5
  15. initial-size: 5
  16. validation-query: SELECT 1
  17. test-on-borrow: false
  18. test-while-idle: true
  19. time-between-eviction-runs-millis: 18800
  20. jdbc-interceptors: ConnectionState;SlowQueryReport(threshold=0)
  21. #mybatis plus
  22. mybatis-plus:
  23. mapper-locations: classpath*:/mapper/**/*.xml
  24. #实体扫描,多个package用逗号或者分号分隔
  25. typeAliasesPackage: ins.*.po
  26. #typeEnumsPackage: com.baomidou.springboot.entity.enums
  27. global-config:
  28. # 数据库相关配置
  29. db-config:
  30. #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID",ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  31. id-type: id_worker
  32. #字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
  33. field-strategy: not_empty
  34. #驼峰下划线转换
  35. column-underline: true
  36. #数据库大写下划线转换
  37. #capital-mode: true
  38. #逻辑删除配置
  39. logic-delete-value: 0
  40. logic-not-delete-value: 1
  41. db-type: h2
  42. #刷新mapper 调试神器
  43. refresh: true
  44. # 原生配置
  45. configuration:
  46. map-underscore-to-camel-case: true
  47. cache-enabled: false
  48. saa:
  49. power: false
  50. basePackage: ins/**/po
  51. zuul:
  52. forceOriginalQueryStringEncoding: true