Struts2+Spring+IBatis的项目,在Tomcat的启动日志中报如下警告:
WARN [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - <no default parameter defined for result of type json>
出错原因:
当action的result type为json,并且写成如下形式的时候,会报警告:
<result type="json">
</result>
解决方法:
修改为如下形式:
<result type="json"></result>或<result type="json" />