String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
[quote=引用 4 楼 yue_hu 的回复:] 楼主可以尝试采用绝对路径。${pageContext.request.contextPath}\
静态资源 ,比如js,和 css 这些文件, 路径写绝对路径不就行了吗?
楼主可以尝试采用绝对路径。${pageContext.request.contextPath}\
67,549
社区成员
225,860
社区内容
加载中
试试用AI创作助手写篇文章吧