Commit 7123049c authored by maoying's avatar maoying

修改fegn调用token传递

parent ecf226d7
......@@ -26,7 +26,7 @@ public class FeignBasicAuthRequestInterceptor implements RequestInterceptor{
/* If token not found get it from request parameter */
if (authToken == null)
{
authToken = request.getParameter("token");
authToken = request.getHeader("token");
}
template.header("X-Access-Token", authToken);
template.header("token", authToken);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment