<form:form action="${pageContext.request.contextPath }/emp" method="POST" modelAttribute="employee"> action内的 emp前 加入 ${pageContext.request.contextPath }即可