application-dev.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. # 加解密根密码
  2. jasypt:
  3. encryptor:
  4. password: tofly #根密码
  5. # Spring 相关
  6. spring:
  7. redis:
  8. password:
  9. host: tofly-redis
  10. jedis:
  11. pool:
  12. max-idle: 30
  13. min-idle: 10
  14. max-active: 20
  15. max-wait: 10000
  16. # zipkin
  17. zipkin:
  18. enabled: true
  19. base-url: http://127.0.0.1:6002
  20. sleuth:
  21. web:
  22. client:
  23. enabled: true
  24. sampler:
  25. # 默认的采样比率为0.1,不能看到所有请求数据
  26. # 更改采样比率为1,就能看到所有的请求数据了,但是这样会增加接口调用延迟
  27. probability: 1.0
  28. servlet:
  29. multipart:
  30. max-file-size: 100MB
  31. max-request-size: 100MB
  32. jackson:
  33. date-format: yyyy-MM-dd HH:mm:ss
  34. time-zone: GMT+8
  35. # boot:
  36. # admin:
  37. # client:
  38. # url: http://127.0.0.1:6001
  39. # 暴露监控端点
  40. management:
  41. endpoints:
  42. web:
  43. exposure:
  44. include: '*'
  45. # feign 配置
  46. feign:
  47. hystrix:
  48. enabled: true
  49. okhttp:
  50. enabled: true
  51. httpclient:
  52. enabled: false
  53. client:
  54. config:
  55. default:
  56. connectTimeout: 10000
  57. readTimeout: 10000
  58. compression:
  59. request:
  60. enabled: true
  61. response:
  62. enabled: true
  63. # hystrix 配置
  64. hystrix:
  65. command:
  66. default:
  67. execution:
  68. isolation:
  69. strategy: SEMAPHORE
  70. thread:
  71. timeoutInMilliseconds: 60000
  72. shareSecurityContext: true
  73. #请求处理的超时时间
  74. ribbon:
  75. ReadTimeout: 10000
  76. ConnectTimeout: 10000
  77. # mybaits-plus配置
  78. mybatis-plus:
  79. type-aliases-package: com.tofly.*.entity,com.tofly.*.custom.entity
  80. mapper-locations: classpath*:/mapper/*Mapper.xml,classpath*:/customMapper/*Mapper.xml
  81. global-config:
  82. banner: false
  83. db-config:
  84. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  85. id-type: 1
  86. field-strategy: 1
  87. table-underline: true
  88. logic-delete-value: 0 #逻辑已删除
  89. logic-not-delete-value: 1 #逻辑未删除 (加上@TableLogic后,相当于存在判断条件 column= 1 )
  90. db-type: oracle
  91. configuration:
  92. map-underscore-to-camel-case: true
  93. call-setters-on-nulls: true
  94. jdbc-type-for-null: null
  95. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  96. #spring security 配置
  97. security:
  98. oauth2:
  99. resource:
  100. loadBalanced: true
  101. token-info-uri: http://tofly-auth/oauth/check_token
  102. ftp:
  103. enable: true
  104. server: tofly-ftp
  105. port: 8033
  106. userName: ENC(tjdOntnkeceeo/aiTdGifA==)
  107. password: ENC(tjdOntnkeceeo/aiTdGifA==)
  108. eureka:
  109. instance:
  110. leaseRenewalIntervalInSeconds: 10
  111. health-check-url-path: /actuator/health
  112. metadata-map:
  113. startup: ${random.int} #needed to trigger info and endpoint update after restart