返回文章列表

No configuration found for the specified action 的处理

Tomcat 控制台会打出如下警告:WARN - No configuration found for the specified action: 'xxxxx'in namespace: '/'. Form action defaulting to 'action' attribute's lit...

1 分钟阅读

Tomcat 控制台会打出如下警告:WARN - No configuration found for the specified action: 'xxxxx'in namespace: '/'. Form action defaulting to 'action' attribute's literal value.

主要由于在写struts2表单时有给action指定全名,如:<s:form action="xxxAction.do"...>,直接写成<s:form action="xxxAction"...>即可,因为在struts.xml中struts.action.extension属性有指定啦。

评论交流

暂无评论,欢迎留下你的想法