1,在a标签内 href属性写controller方法内的映射路径,通过controller方法进行页面跳转
eg:
<a href="/admin/toAdminIndex"><i class="glyphicon glyphicon-dashboard"></i> 控制面板</a>
2,如果 是button标签 可以在 onclick属性中 进行跳转 onclick = "window.location.href=' ****' "
eg:
<button type="button" class="btn btn-primary" style="float:right;" οnclick="window.location.href='add.html'"><i class="glyphicon glyphicon-plus"></i> 新增</button>