struts2 零配置返回type=json出错

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]
知道的就说吧
yunenglin 1年前 已收到1个回答 举报

Jacquelinemao 幼苗

共回答了21个问题采纳率:81% 举报

您好,请问您是否扩展了 json-default 命名空间

1年前

9
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 2.217 s. - webmaster@yulucn.com