获取项目的请求路径

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/

你可能感兴趣的:(项目路径)