application-dev.yml 2.7 KB

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