package com.model;
public class ResultModel {
/**
* 提示信息
* */
private String Msg;
/**
* 错误代码 0代表成功
* */
private int Code;
/**
* 返回数据
*/
private Object Data;
/**
* 操作提示,默认code=1,msg=操作成功
*/
public ResultModel(){
this.Msg="操作成功!";
this.Code=1;
this.Data=null;
}
/**
*
* @param code 操作代码
* @param msg 操作提示信息
*/
public ResultModel(int code,String msg){
this.Msg=msg;
this.Code=code;
}
public ResultModel(int code,String msg,Object data){
this.Msg=msg;
this.Code=code;
this.Data=data;
}
public String getMsg() {
return Msg;
}
public void setMsg(String msg) {
Msg = msg;
}
public int getCode() {
return Code;
}
public void setCode(int code) {
Code = code;
}
public Object getData() {
return Data;
}
public void setData(Object data) {
Data = data;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Spring4 构建RESTful服务器,输出格式是JSONRESTful.svc.rar (36个子文件)
RESTful.svc
.project 2KB
.mymetadata 302B
src
com
controler
Usercontroler.java 933B
model
ResultModel.java 968B
UserBase.java 342B
lib
jackson-databind-2.4.1.1.jar 1.02MB
spring-webmvc-4.0.5.RELEASE.jar 647KB
jackson-annotations-2.4.0.jar 38KB
spring-expression-4.0.5.RELEASE.jar 200KB
spring-web-4.0.5.RELEASE.jar 657KB
spring-beans-4.0.5.RELEASE.jar 654KB
spring-aop-4.0.5.RELEASE.jar 344KB
commons-logging-1.1.3.jar 61KB
aopalliance-1.0.jar 4KB
jackson-core-2.4.1.jar 220KB
spring-core-4.0.5.RELEASE.jar 953KB
spring-context-4.0.5.RELEASE.jar 954KB
target
m2e-jee
web-resources
META-INF
MANIFEST.MF 114B
maven
tzb_rest
tzb_rest
pom.properties 228B
pom.xml 2KB
WebRoot
WEB-INF
classes
com
controler
Usercontroler.class 1KB
model
ResultModel.class 1KB
UserBase.class 717B
web.xml 654B
restful-servlet.xml 761B
META-INF
MANIFEST.MF 36B
.myeclipse
.settings
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.m2e.core.prefs 121B
org.eclipse.jdt.core.prefs 461B
org.eclipse.wst.jsdt.ui.superType.name 6B
com.genuitec.eclipse.j2eedt.core.prefs 1KB
org.eclipse.core.resources.prefs 108B
org.eclipse.wst.common.component 471B
.jsdtscope 500B
.classpath 2KB
共 36 条
- 1
资源评论
- 杯啤酒2018-09-15这东西还可以
- java_xiaowei2016-04-13非常简单,还是下载别人的代码再次上传的,有点无耻了。
zhengwh510
- 粉丝: 64
- 资源: 1981
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功