2020年3月12日

在jsp页面获取绝对路径

摘要: ${pageContext.request.contextPath } 例:原:localhost:8080/ggxs/yct/index.jsp绝对路径后:${pageContext.request.contextPath }/yct/index.jsp ajax: 原:$.ajax({ url: 阅读全文

posted @ 2020-03-12 16:52 0o好好先生o0 阅读(220) 评论(0) 推荐(0) 编辑

java web项目配置Tomcat访问项目外文件

摘要: 1、在代码中将111.png存在D:\aaa\路径下 2、修改tomcat conf文件夹下server.xml中 context <Context path="/aaa" docBase="D:\aaa" debug="0" reloadable="true" /> 3、访问;例如目前你的项目路径 阅读全文

posted @ 2020-03-12 16:49 0o好好先生o0 阅读(678) 评论(0) 推荐(0) 编辑

导航