在项目的index.jsp里写入代码,可以实现页面自动跳转: <%@ include file="/html/common/taglibs.jsp"%> <c:redirect url="/rims/login/toLogin.do"/>