早教吧作业答案频道 -->其他-->
struts2零配置返回type=json出错@Action(value="/image",results={@Result(name="success",type="json",params={"root","result"})})tomcat启动解析@Action、、、时,type类型出错错误:TheResulttype[json]whichisdefinedintheRe
题目详情
struts2 零配置返回type=json出错
@Action(value = "/image",results ={@Result(name="success",type="json",params = {"root","result" })})
tomcat启动解析@Action、、、时,type类型出错
错误:
The Result type [json] which is defined in the Result annotation on the class [class action.UploadAction] or determined by the file extension or is the default result type for the PackageConfig of the action,could not be found as a result-type defined for the Struts/XWork package [action#convention-default#] - [unknown location]
知道的就说吧
@Action(value = "/image",results ={@Result(name="success",type="json",params = {"root","result" })})
tomcat启动解析@Action、、、时,type类型出错
错误:
The Result type [json] which is defined in the Result annotation on the class [class action.UploadAction] or determined by the file extension or is the default result type for the PackageConfig of the action,could not be found as a result-type defined for the Struts/XWork package [action#convention-default#] - [unknown location]
知道的就说吧
▼优质解答
答案和解析
您好,请问您是否扩展了 json-default 命名空间
看了 struts2零配置返回ty...的网友还看了以下:
甲乙两辆汽车在一条公路上匀速行驶.为了确定汽车的位置,我们用数轴Ox表示这条公路,原点O为零千米路 2020-05-13 …
甲、乙两辆车在一条公路上匀速行驶,为了确定汽车的位置.我们用OX表示这条公路,原点O为零千米路标, 2020-06-11 …
某公司派出甲车前往某地完成任务,此时,有一辆流动加油车与他同时出发,且在同一条公路上匀速行驶(速度 2020-06-15 …
设n阶方阵A,B满足AB=O,其中O为零矩阵,则必有A.A=O或B=OB.︳A︳=0或︳B︳=0C. 2020-11-02 …
一列简谐横波在弹性介质中沿x轴传播,波源位于坐标原点O,零时刻开始振动,t1=3s时波源停止振动,如 2020-12-18 …
-列简谐横波在弹性介质中沿x轴传播,波源位于坐标原点O,零时刻波源开始振动,t=3s时波源停止振动, 2020-12-18 …
甲、乙两辆车同时出发,在同一条公路上匀速行驶,且保持行驶方向不变.为了确定汽车在公路上的位置,我们用 2020-12-27 …
(1)甲乙两辆汽车在一条公路上匀速行驶,为了确定汽车的位置,我们用数轴O表示这条公路,原点O为零千米 2020-12-27 …
(选修3-4选做题)一列简谐横波在弹性介质中沿x轴传播,波源位于坐标原点O,零时刻波源开始振动,t= 2021-01-12 …
一列简谐横波在弹性介质中沿x轴传播,波源位于坐标原点O,零时刻开始振动,t1=3s时波源停止振动,如 2021-01-12 …