springboot 前端页面 通过<a> 链接跳转到另一个html
两个问题
springboot 从一个页面跳到另一个页面
因为需要通过前端控制器, 所以有一种解决办法, 就是通过 controller 专门写一个topage(), 通过get请求将跳转的页面传过去controller代码 @RequestMapping(value = "/toPage",method = RequestMethod.GET) public String toPage(HttpServletRequest request){ String url = request.getParameter("url"); return url; }页面代码
<li class="active"><a href="toPage?url=/vue/vue">链接 1</a></li>
2.注意上面的 标签方法跳转的写法 ,
相关推荐
  liduote    2020-11-13  
   chenhaotao    2020-11-13  
   localhost0    2020-11-12  
   小秋    2020-11-12  
   lxhuang    2020-11-03  
   学习web前端    2020-10-27  
   小焊猪web前端    2020-10-24  
   杏仁技术站    2020-10-23  
   南昌千网科技    2020-10-18  
   liduote    2020-10-16  
   BlueSkyUSC    2020-10-15  
   Doniet    2020-10-08  
   zjutzmh    2020-09-25  
   PncLogon    2020-09-24  
   趣IT    2020-09-22  
   杏仁技术站    2020-09-18  
   拾光璇旅    2020-09-17  
   lfbooo    2020-09-09