解決Spring cloud項目中多線程中使用feign訪問其他服務失敗問題

微服務中嘗試使用多線程訪問其他服務,通過服務接口調用失敗, 通過Debug模式,跟隨子線程調用鏈,發現處理服務發送時的請求頭設置中, ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder .getRequestAttributes(); HttpServletRe
相關文章
相關標籤/搜索