request.getContextPath()得到的是項目的虛擬路徑:
例如
訪問路徑為:http://localhost:8080/blue/response.jsp
request.getContextPath()得到的就是 /blue
request.getContextPath()得到的是項目的虛擬路徑:
例如
訪問路徑為:http://localhost:8080/blue/response.jsp
request.getContextPath()得到的就是 /blue
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。