application-dev.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # 加解密根密码
  2. jasypt:
  3. encryptor:
  4. password: pigx #根密码
  5. # redis 相关
  6. spring:
  7. redis:
  8. password:
  9. host: pigx-redis
  10. # zipkin
  11. zipkin:
  12. enabled: true
  13. base-url: http://pigx-zipkin
  14. sleuth:
  15. web:
  16. client:
  17. enabled: true
  18. sampler:
  19. # 默认的采样比率为0.1,不能看到所有请求数据
  20. # 更改采样比率为1,就能看到所有的请求数据了,但是这样会增加接口调用延迟
  21. probability: 1.0
  22. # 暴露监控端点
  23. management:
  24. endpoints:
  25. web:
  26. exposure:
  27. include: '*'
  28. # feign 配置
  29. feign:
  30. hystrix:
  31. enabled: true
  32. okhttp:
  33. enabled: true
  34. httpclient:
  35. enabled: false
  36. client:
  37. config:
  38. default:
  39. connectTimeout: 10000
  40. readTimeout: 10000
  41. compression:
  42. request:
  43. enabled: true
  44. response:
  45. enabled: true
  46. # hystrix If you need to use ThreadLocal bound variables in your RequestInterceptor`s
  47. # you will need to either set the thread isolation strategy for Hystrix to `SEMAPHORE or disable Hystrix in Feign.
  48. hystrix:
  49. command:
  50. default:
  51. execution:
  52. isolation:
  53. strategy: SEMAPHORE
  54. thread:
  55. timeoutInMilliseconds: 60000
  56. shareSecurityContext: true
  57. #请求处理的超时时间
  58. ribbon:
  59. ReadTimeout: 10000
  60. ConnectTimeout: 10000
  61. # mybaits-plus配置
  62. mybatis-plus:
  63. # MyBatis Mapper所对应的XML文件位置
  64. mapper-locations: classpath:/mapper/*Mapper.xml
  65. global-config:
  66. # 关闭MP3.0自带的banner
  67. banner: false
  68. db-config:
  69. # 主键类型 0:数据库ID自增 1.未定义 2.用户输入 3 id_worker 4.uuid 5.id_worker字符串表示
  70. id-type: 0
  71. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  72. field-strategy: 1
  73. # 默认数据库表下划线命名
  74. table-underline: true
  75. #swagger公共信息
  76. swagger:
  77. host: pigx-gateway:9999
  78. title: PigX Swagger API
  79. description: 全宇宙最牛逼的Spring Cloud微服务开发脚手架
  80. version: @project.version@
  81. license: Powered By PigX
  82. licenseUrl: https://pig4cloud.com/
  83. terms-of-service-url: https://pig4cloud.com/
  84. contact:
  85. name: 冷冷
  86. email: wangiegie@gmail.com
  87. url: https://pig4cloud.com/about.html
  88. authorization:
  89. name: pigX OAuth
  90. auth-regex: ^.*$
  91. authorization-scope-list:
  92. - scope: server
  93. description: server all
  94. token-url-list:
  95. - http://pigx-gateway:9999/auth/oauth/token
  96. ## spring security 配置
  97. security:
  98. oauth2:
  99. client:
  100. # 默认放行url,如果子模块重写这里的配置就会被覆盖
  101. ignore-urls:
  102. - /actuator/**
  103. - /v2/api-docs
  104. resource:
  105. loadBalanced: true
  106. token-info-uri: http://pigx-auth/oauth/check_token