<% String path = request.getContextPath(); String bassPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> //使用方法: <link rel="stylesheet" href="<%=bassPath %>css/bootstrap.min.css">
时间: 2024-10-22 13:50:17