request.getContextPath()得到的是什么路径?

request.getContextPath()得到的是项目的虚拟路径:

例如

访问路径为:http://localhost:8080/blue/response.jsp

request.getContextPath()得到的就是  /blue

posted @ 2020-06-08 23:36  小辣椒樱桃  阅读(2338)  评论(0编辑  收藏  举报