public static String jsonValue(){
String str ="";
try {
HttpServletRequest request=ServletActionContext.getRequest();
ServletInputStream sis = null;
request.setCharacterEncoding("UTF-8");
sis = request.getInputStream();
int len = request.getContentLength();
if (len <= 0) {
return null;
}
byte[] buffer = new byte[len];
sis.read(buffer);
str = new String(buffer, "UTF-8");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
user = JSON.parseObject(str,实体类对象.class);
return str;
}