在jsp页面中获取项目名称

xiaoxiao2022-06-11  32

java代码 String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; //System.out.println("basePath = " + basePath); //System.out.println(request.getContextPath()); el表达式:${pageContext.request.contextPath}
转载请注明原文地址: https://www.6miu.com/read-4931339.html

最新回复(0)