package com.megaeyes.entity;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Document(collection="customer")
public class Customer {
@Id
private String id;
private String firstName;
private String lastName;
public Customer() {}
public Customer(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
@Override
public String toString() {
return String.format(
"Customer[id=%s, firstName='%s', lastName='%s']",
id, firstName, lastName);
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Springmvc_HelloWorld.zip (66个子文件)
Springmvc_HelloWorld
.project 1KB
WebContent
WEB-INF
jsp
hello.jsp 380B
lib
spring-orm-4.2.6.RELEASE.jar 456KB
spring-context-support-4.2.6.RELEASE.jar 173KB
spring-context-support-4.2.6.RELEASE-sources.jar 172KB
spring-core-4.2.6.RELEASE-sources.jar 694KB
spring-jdbc-4.2.6.RELEASE-sources.jar 433KB
spring-data-commons-1.12.4.RELEASE.jar 677KB
spring-data-mongodb-1.9.4.RELEASE.jar 688KB
jackson-databind-2.5.2.jar 1.09MB
spring-core-4.2.6.RELEASE.jar 1.05MB
spring-aop-4.2.6.RELEASE-sources.jar 356KB
jackson-core-2.5.2.jar 225KB
spring-tx-4.2.6.RELEASE.jar 259KB
spring-orm-4.2.6.RELEASE-sources.jar 360KB
spring-beans-4.2.6.RELEASE.jar 714KB
spring-webmvc-4.2.6.RELEASE.jar 857KB
commons-logging-1.1.1.jar 59KB
spring-jdbc-4.2.6.RELEASE.jar 414KB
spring-tx-4.2.6.RELEASE-sources.jar 303KB
spring-web-4.2.6.RELEASE-sources.jar 707KB
spring-data-mongodb-log4j-1.7.1.RELEASE.jar 6KB
spring-webmvc-4.2.6.RELEASE-sources.jar 809KB
mongo-java-driver-2.14.3.jar 599KB
commons-fileupload-1.2.2.jar 58KB
spring-web-4.2.6.RELEASE.jar 749KB
spring-expression-4.2.6.RELEASE.jar 257KB
aopalliance-1.0.jar 4KB
spring-context-4.2.6.RELEASE-sources.jar 1.05MB
slf4j-api-1.7.21.jar 40KB
commons-io-2.4.jar 181KB
spring-aop-4.2.6.RELEASE.jar 362KB
jackson-annotations-2.5.0.jar 39KB
spring-expression-4.2.6.RELEASE-sources.jar 199KB
spring-beans-4.2.6.RELEASE-sources.jar 683KB
jcl-over-slf4j-1.7.21.jar 16KB
spring-aspects-4.2.6.RELEASE-sources.jar 35KB
spring-context-4.2.6.RELEASE.jar 1.05MB
spring-aspects-4.2.6.RELEASE.jar 57KB
web.xml 2KB
META-INF
MANIFEST.MF 39B
src
springmvc-servlet.xml 2KB
applicationContext.xml 3KB
mongodb.xml 2KB
mongodb.properties 366B
com
megaeyes
test
Spring_HelloWorld.java 594B
MongoTemplateTest.java 441B
entity
Event.java 694B
Customer.java 1KB
log4j.properties 626B
.settings
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.common.project.facet.core.xml 345B
org.eclipse.jdt.core.prefs 364B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.component 512B
.jsdtscope 503B
build
classes
springmvc-servlet.xml 2KB
applicationContext.xml 3KB
mongodb.xml 2KB
mongodb.properties 366B
com
megaeyes
test
MongoTemplateTest.class 910B
Spring_HelloWorld.class 1KB
entity
Event.class 1KB
Customer.class 1KB
log4j.properties 626B
.classpath 4KB
共 66 条
- 1
资源评论
zyc_sinacom
- 粉丝: 26
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功