jsp头path&&basePath

    xiaoxiao2021-12-14  19

    <%@ page contentType="text/html;charset=UTF-8" language="java" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>

    path path为上下文的内容,这样为空

    basePath 为http://localhost:8090/

    转载请注明原文地址: https://ju.6miu.com/read-964233.html

    最新回复(0)