String myPath = request.getContextPath();//crm-yun-app
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+myPath+"/";
//http://192.168.1.1:8080/crm-yun-app/
本文共 244 字,大约阅读时间需要 1 分钟。
String myPath = request.getContextPath();//crm-yun-app
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+myPath+"/";
//http://192.168.1.1:8080/crm-yun-app/
转载于:https://blog.51cto.com/9686567/1605933