struts2设置默认首页

在默认状况下,咱们通常但愿,当咱们在浏览器中输入127.0.0.1:8080/project_name时候跳到项目的首页,那么在struts中咱们这么设置呢?光加上<default-action-ref name="user" />是不够的,由于struts2默认是index.jsp为首页,因此咱们把index.jsp删除了就好了,struts2从web.xml中找到项目的入口index.jsp可
相关文章
相关标签/搜索