Spring mvc 如何在另一个.jsp页面中进行相对MVC控制器/视图调用?
我有一个/views/home/index.jsp,它有一个从另一个控制器调用另一个页面的链接 views/home/index.jsp(Spring mvc 如何在另一个.jsp页面中进行相对MVC控制器/视图调用?,spring-mvc,Spring Mvc,我有一个/views/home/index.jsp,它有一个从另一个控制器调用另一个页面的链接 views/home/index.jsp(http://localhost:8080/mywebsite/homeper@Atais: “没有斜杠吗?那么它将解析localhost:8080/mywebsite/home2地址”没有斜杠吗?那么它将解析address@Atais:Thx,真管用! <li><a href="${pageContext.request.contextPa
http://localhost:8080/mywebsite/home
per@Atais:
“没有斜杠吗?那么它将解析localhost:8080/mywebsite/home2地址”没有斜杠吗?那么它将解析address@Atais:Thx,真管用!
<li><a href="${pageContext.request.contextPath}/home2" target="_blank">home2</a></li>
href="${pageContext.request.contextPath}/home2"
href="/home2"