其他分享
首页 > 其他分享> > Gateway网关过滤之后获取不到 HttpServletRequest

Gateway网关过滤之后获取不到 HttpServletRequest

作者:互联网

下游服务controller:

//BaseController 处理类
public class BaseController { 
    protected String sessionId = null; 
    //www.fhadmin.org
    protected void getSessionIdFromRequest(HttpServletRequest request) {
         this.sessionId = request.getHeader().get("Session-Id");
     }
}

报错信息:

No primary or default constructor found for interface javax.servlet.http.HttpServletReques


标签:HttpServletRequest,网关,BaseController,request,sessionId,protected,报错,Gateway
来源: https://blog.51cto.com/14622073/2677994