package web.action;import java.io.UnsupportedEncodingException;import pojo.Area;
import hibimplservice.AreaService;import com.googlecode.jsonplugin.annotations.*;
import com.opensymphony.xwork2.ActionSupport;public class AreaAction extends ActionSupport
{
private AreaService areaService; private Area area;
@JSON(name="error")
private String tip;
//省掉部分set,Get 以及excute方法等
}
struts2 的json插件也导入进去了,在myeclipse写完后报
the annotation @json is disallowed for this location
jdk 版本是jdk1.6.06
其他注解还是可以用的比如@Override等
import hibimplservice.AreaService;import com.googlecode.jsonplugin.annotations.*;
import com.opensymphony.xwork2.ActionSupport;public class AreaAction extends ActionSupport
{
private AreaService areaService; private Area area;
@JSON(name="error")
private String tip;
//省掉部分set,Get 以及excute方法等
}
struts2 的json插件也导入进去了,在myeclipse写完后报
the annotation @json is disallowed for this location
jdk 版本是jdk1.6.06
其他注解还是可以用的比如@Override等
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货