spring mvc 默认页面 只需要在servlet.xml页面中添加如下配置: <mvc:view-controller path="/" view-name="login"/> path="/"代表访问根目录。view-name="login" 要转向的视图名称