mvc项目中Controller执行完毕重定向到html的一个页面中

String ip = request.getLocalAddr(); //取得服务器IP
int port = request.getLocalPort(); //取得服务器端口
String url = "redirect:http://"+ip+":"+port+"/device-html/romVer.html";
return url;

posted @ 2018-09-04 17:15  云晴  阅读(1877)  评论(0编辑  收藏  举报