application-dev.yml 2.7 KB

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