Home JSP页面拼装项目地址
Post
Cancel

JSP页面拼装项目地址

1
2
3
4
5
6
7
8
9
10
<%
 String path = request.getContextPath();
 String basePath = request.getScheme()
    + "://" + request.getServerName()
    + ":" + request.getServerPort()
    + path;
%>

<!-- JSP中引用地址 -->
<%=basePath %>/TcService/insertTcService.controller
This post is licensed under CC BY 4.0 by the author.