HttpServletRequest.getScheme 获取的结果总是http 的解决办法

nginx.conf 中加入转发scheme,
proxy_set_header X-Forwarded-Proto $scheme;

 

更多推荐