經(jīng)過仔細(xì)檢查,全部配置映射都沒問題,springboot-admin 監(jiān)控中心所有服務(wù)狀態(tài)全部顯示綠色正常
網(wǎng)站建設(shè)哪家好,找創(chuàng)新互聯(lián)建站!專注于網(wǎng)頁設(shè)計(jì)、網(wǎng)站建設(shè)、微信開發(fā)、微信小程序定制開發(fā)、集團(tuán)企業(yè)網(wǎng)站建設(shè)等服務(wù)項(xiàng)目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了納雍免費(fèi)建站歡迎大家使用!
但就是通過 zuul 訪問服務(wù)提示 500錯(cuò)誤
這個(gè)情況,一般是請(qǐng)求超時(shí)所致
調(diào)整請(qǐng)求超時(shí)時(shí)間即可
zuul服務(wù)本地報(bào)錯(cuò)提示:com.netflix.zuul.exception.ZuulException: Forwarding error
原始配置示例:
hystrix: ??command:????default: ??????execution: ????????isolation: ??????????thread: ????????????timeoutInMilliseconds:?12000ribbon: ??ReadTimeout:?6000 ??ConnectTimeout:?6000zuul: ??host: ????socket-timeout-millis:?6000 ????connect-timeout-millis:?6000from?www.1b23.com
全部改成:
hystrix: ??command: ????default: ??????execution: ????????isolation: ??????????thread: ????????????timeoutInMilliseconds:?12000 ribbon: ??ReadTimeout:?12000 ??ConnectTimeout:?12000 ??eureka: ?????enabled:?true zuul: ??host: ????socket-timeout-millis:?12000 ????connect-timeout-millis:?12000 ?from?www.1b23.com
就是把60000毫秒數(shù)都改大了