作业帮 > 综合 > 作业

struts2 零配置返回type=json出错

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/08/30 04:49:03
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]
知道的就说吧
您好,请问您是否扩展了 json-default 命名空间