81,094
社区成员
发帖
与我相关
我的任务
分享
<mvc:view-controller path="/" view-name="login"/>
<welcome-file-list>
<welcome-file>/WEB-INF/jsp/login.jsp</welcome-file>
</welcome-file-list>
然后访问
http://ip:port/项目名称<%--
Created by IntelliJ IDEA.
User: Kevin
Date: 2014/10/2
Time: 10:54
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<link rel="Shortcut Icon" href="${pageContext.request.contextPath}/assert/img/common/logo_i.ico">
<title></title>
</head>
<body>
<c:redirect url="${pageContext.request.contextPath}/index/showIndex"></c:redirect>
</body>
</html>
我以前是这么来实现的