代码拉取完成,页面将自动刷新
server:
port: 8080
spring:
application:
name: tensquare-manager
eureka:
client:
service-url:
defaultZone: http://127.0.0.1:8761/eureka
instance:
# 模块间跨IP访问
prefer-ip-address: true
# 服务提供方配置
# 服务刷新时间配置,每隔这个时间会主动心跳一次 默认 30s
lease-renewal-interval-in-seconds: 5
# 服务过期时间配置,超过这个时间没有接收到心跳EurekaServer就会将这个实例剔除
# 注意,EurekaServer一定要设置eureka.server.eviction-interval-timer-in-ms否则这个配置无效,默认90s
# 这个配置一般为服务刷新时间配置的三倍
lease-expiration-duration-in-seconds: 15
zuul:
routes:
tensquare-gathering:
path: /gathering/**
serviceId: tensquare-gathering
tensquare-article:
path: /article/**
serviceId: tensquare-article
tensquare-base:
path: /base/**
serviceId: tensquare-base
tensquare-qa:
path: /qa/**
serviceId: tensquare-qa
tensquare-recruit:
path: /recruit/**
serviceId: tensquare-recruit
tensquare-spit:
path: /spit/**
serviceId: tensquare-spit
tensquare-user:
path: /user/**
serviceId: tensquare-user
host:
max-total-connections: 200 # 适用于ApacheHttpClient,如果是okhttp无效。每个服务的http客户端连接池最大连接,默认是200.
max-per-route-connections: 10 # 适用于ApacheHttpClient,如果是okhttp无效。每个route可用的最大连接数,默认值是20。
socket-timeout-millis: 50000
connect-timeout-millis: 50000
semaphore:
max-semaphores: 128
retryable: true
# zuul网关不对下面三个请求头信息拦截
sensitive-headers:
- Cookie, Set-Cookie, Authorization
ribbon:
ReadTimeout: 3000 # 获取或设置读取操作未完成时发生超时之前的毫秒数。 请求处理时间
ConnectTimeout: 2000 # 客户端等待与服务器建立连接的时间(以毫秒计) 连接时间
MaxAutoRetries: 1 # 在同一台服务器上重试的最大次数
MaxAutoRetriesNextServer: 1 # 要重试的下一个服务器的最大数量
OkToRetryOnAllOperations: true # 默认为false,则只允许GET请求被重试
hystrix:
command:
default:
execution:
isolation:
thread:
# t这里需要注意的是hystrix的配置时间应该大于ribbon全部重试时间的总和,上面我配置的是2次重试,包括首次请求,三次时间是6秒
timeoutInMilliseconds: 20000
jwt:
config:
key: ${TENSQUARE_HOME}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。