struts默认配置文件

来源:互联网 发布:js cells 编辑:程序博客网 时间:2024/06/08 03:46

关于struts2的配置文件名。struts2是有规定的,就是struts.xml,如果你换成其他的文件名的话,就会出现

HTTP Status 404 - There is no Action mapped for namespace [/] and action name [login] associated with context path [].

There is no Action mapped for namespace [/] and action name [login] associated with context path [].

这是因为找不到struts2的配置文件信息,所以报错找不到action,在这也要把struts2配置文件放到src下,业界的默契形成吧。


0 0
原创粉丝点击