String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
结果:
/tasklist-ies
?
http://localhost:8080/tasklist-ies/
String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
结果:
/tasklist-ies
?
http://localhost:8080/tasklist-ies/