There is no resul…

There is no result type defined for type 'json' mapped with name 'success'.
这个错误是json初学者很容易遇到的错误:现在把本人学习过程中遇到的问题跟大家分享一下,欢迎拍砖
1、首先查看Jar有没有少
commons-beanutils-1.7.0.jar   
commons-collections-3.2.jar   
commons-lang-2.3.jar   
commons-logging-1.1.jar   
ezmorph-1.0.4.jar   
json-lib-2.2.3-jdk15.jar 
jsonplugin-0.33.jar
另外struts2-json-plugin-2.2.1.1.jar  和  jsonplugin-0.33.jar会冲突不能同时存在
2、看Struts配置文件的继承部分对不对,
 
json-default是必须的

版权声明:本文为博主原创文章,未经博主允许不得转载。

原文地址:https://www.cnblogs.com/jamesf/p/4751706.html