解决动静分离架构后台重定向页面问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/caox_90/article/details/52954471

静态html文件部署在与服务器分离的另一环境中,使用nginx反向代理,当后台要返回到某个特定页面的时候可使用返回html页面内容的形式来实现请求页面的功能。

String result = "<!DOCTYPE><html><head><script type=\"text/javascript\">window.location.href = \"http://wap.laputadoll.cn/loginWechat.html?appId="+officialid+"&openId="+openid+"\";</script></head></html>";
return result;

猜你喜欢

转载自blog.csdn.net/caox_90/article/details/52954471