request.getScheme() http
request.getServerName() 127.0.0.1
request.getServerPort() 8080
request.getContextPath() 项目名称
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
当前页的根路径basePath为 http://localhost:8080/studyteach