123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- # 加解密根密码
- jasypt:
- encryptor:
- password: pigx #根密码
- # redis 相关
- spring:
- redis:
- password:
- host: pigx-redis
- # zipkin
- zipkin:
- enabled: true
- base-url: http://pigx-zipkin
- sleuth:
- web:
- client:
- enabled: true
- sampler:
- # 默认的采样比率为0.1,不能看到所有请求数据
- # 更改采样比率为1,就能看到所有的请求数据了,但是这样会增加接口调用延迟
- probability: 1.0
- # 暴露监控端点
- management:
- endpoints:
- web:
- exposure:
- include: '*'
- # feign 配置
- feign:
- hystrix:
- enabled: true
- okhttp:
- enabled: true
- httpclient:
- enabled: false
- client:
- config:
- default:
- connectTimeout: 10000
- readTimeout: 10000
- compression:
- request:
- enabled: true
- response:
- enabled: true
- # hystrix If you need to use ThreadLocal bound variables in your RequestInterceptor`s
- # you will need to either set the thread isolation strategy for Hystrix to `SEMAPHORE or disable Hystrix in Feign.
- hystrix:
- command:
- default:
- execution:
- isolation:
- strategy: SEMAPHORE
- thread:
- timeoutInMilliseconds: 60000
- shareSecurityContext: true
- #请求处理的超时时间
- ribbon:
- ReadTimeout: 10000
- ConnectTimeout: 10000
- # mybaits-plus配置
- mybatis-plus:
- # MyBatis Mapper所对应的XML文件位置
- mapper-locations: classpath:/mapper/*Mapper.xml
- global-config:
- # 关闭MP3.0自带的banner
- banner: false
- db-config:
- # 主键类型 0:数据库ID自增 1.未定义 2.用户输入 3 id_worker 4.uuid 5.id_worker字符串表示
- id-type: 0
- #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
- field-strategy: 1
- # 默认数据库表下划线命名
- table-underline: true
- #swagger公共信息
- swagger:
- host: pigx-gateway:9999
- title: PigX Swagger API
- description: 全宇宙最牛逼的Spring Cloud微服务开发脚手架
- version: @project.version@
- license: Powered By PigX
- licenseUrl: https://pig4cloud.com/
- terms-of-service-url: https://pig4cloud.com/
- contact:
- name: 冷冷
- email: wangiegie@gmail.com
- url: https://pig4cloud.com/about.html
- authorization:
- name: pigX OAuth
- auth-regex: ^.*$
- authorization-scope-list:
- - scope: server
- description: server all
- token-url-list:
- - http://pigx-gateway:9999/auth/oauth/token
- ## spring security 配置
- security:
- oauth2:
- client:
- # 默认放行url,如果子模块重写这里的配置就会被覆盖
- ignore-urls:
- - /actuator/**
- - /v2/api-docs
- resource:
- loadBalanced: true
- token-info-uri: http://pigx-auth/oauth/check_token
|