diff --git a/.classpath b/.classpath
new file mode 100644
index 0000000..1092f0d
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.project b/.project
new file mode 100644
index 0000000..c8cc22a
--- /dev/null
+++ b/.project
@@ -0,0 +1,42 @@
+
+
+ test
+
+
+
+
+
+ org.eclipse.wst.jsdt.core.javascriptValidator
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.wst.common.project.facet.core.builder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+ org.eclipse.wst.validation.validationbuilder
+
+
+
+
+
+ org.eclipse.jem.workbench.JavaEMFNature
+ org.eclipse.wst.common.modulecore.ModuleCoreNature
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+ org.eclipse.wst.common.project.facet.core.nature
+ org.eclipse.wst.jsdt.core.jsNature
+
+
diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope
new file mode 100644
index 0000000..085a424
--- /dev/null
+++ b/.settings/.jsdtscope
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..b069fb4
--- /dev/null
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding//src/main/java/com/fuxuan/utils/JsonUtils.java=UTF-8
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..45a6e0e
--- /dev/null
+++ b/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component
new file mode 100644
index 0000000..7f78ef2
--- /dev/null
+++ b/.settings/org.eclipse.wst.common.component
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml
new file mode 100644
index 0000000..ef27789
--- /dev/null
+++ b/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container
new file mode 100644
index 0000000..3bd5d0a
--- /dev/null
+++ b/.settings/org.eclipse.wst.jsdt.ui.superType.container
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name
new file mode 100644
index 0000000..05bd71b
--- /dev/null
+++ b/.settings/org.eclipse.wst.jsdt.ui.superType.name
@@ -0,0 +1 @@
+Window
\ No newline at end of file
diff --git a/.settings/org.eclipse.wst.validation.prefs b/.settings/org.eclipse.wst.validation.prefs
new file mode 100644
index 0000000..04cad8c
--- /dev/null
+++ b/.settings/org.eclipse.wst.validation.prefs
@@ -0,0 +1,2 @@
+disabled=06target
+eclipse.preferences.version=1
diff --git a/README.md b/README.md
index 29d31ce..b7fadfe 100644
--- a/README.md
+++ b/README.md
@@ -28,4 +28,24 @@
2. 给我们发送一个 Pull request,我们会 Review 您的代码。
## 其他
-* 如果您的构建和运行过程比较难以理解的话,建议您修改 Readme 的这个地方添加一些说明文字。
\ No newline at end of file
+* 如果您的构建和运行过程比较难以理解的话,建议您修改 Readme 的这个地方添加一些说明文字。
+
+启动工程时,会自动添加5条交易记录,也可以查出新添加的记录
+
+/**
+ * 插入数据
+ * @param status 交易状态
+ * @param type 交易类型
+ * @param money 金额
+ * @param currency 币种
+ * @param userId 用户ID
+ */
+ @RequestMapping("/newTrade/{status}/{type}/{count}/{currency}/{userId}")
+
+ /**
+ *
+ * @param status 0 查询所有记录 ,1 支付等待,2成功支付,3失败支付
+ * @return
+ */
+ @RequestMapping("/getTradeList/{status}")
+
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..5ea48e2
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,7 @@
+
+ 4.0.0
+ com.fuxuan
+ test
+ 0.0.1-SNAPSHOT
+ war
+
\ No newline at end of file
diff --git a/src/main/java/com/fuxuan/controller/TradeController.java b/src/main/java/com/fuxuan/controller/TradeController.java
new file mode 100644
index 0000000..c249cb0
--- /dev/null
+++ b/src/main/java/com/fuxuan/controller/TradeController.java
@@ -0,0 +1,77 @@
+package com.fuxuan.controller;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import com.fuxuan.entity.TradeRecord;
+import com.fuxuan.entity.User;
+import com.fuxuan.service.TradeService;
+import com.fuxuan.utils.JsonResult;
+
+/**
+ *
+ * @author Fuxuan
+ *
+ */
+@Controller
+public class TradeController extends JsonResult {
+
+ @Autowired
+ private TradeService tradeService;//¼
+
+ /**
+ *
+ * @param status ״̬
+ * @param type
+ * @param money
+ * @param currency
+ * @param userId ûID
+ */
+ @RequestMapping("/newTrade/{status}/{type}/{count}/{currency}/{userId}")
+ @ResponseBody
+ public String newTrade(@PathVariable("status") Integer status,@PathVariable("type") Integer type,@PathVariable("count") BigDecimal count,@PathVariable("currency") Integer currency,@PathVariable("userId") Integer userId){
+ try {
+ TradeRecord tr = new TradeRecord();
+ tr.setStatus(status);
+ tr.setType(type);
+ tr.setCount(count);
+ tr.setCurrency(currency);
+ User user = new User();
+ user.setId(userId);
+ tr.setUser(user);
+ TradeRecord result = tradeService.newTrade(tr);
+ return this.setJson(true, result);
+ } catch (Exception e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ return this.setJson(false, null);
+ }
+ }
+
+
+ /**
+ *
+ * @param status 0 ѯм¼ ,1 ֧ȴ,2ɹ֧,3ʧ֧
+ * @return
+ */
+ @RequestMapping("/getTradeList/{status}")
+ @ResponseBody
+ public String getTradeList(@PathVariable("status") Integer status){
+ try {
+ List tradeRecordList = tradeService.getTradeList(status);
+ return this.setJson(true, tradeRecordList);
+ } catch (Exception e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ return this.setJson(false, null);
+ }
+ }
+
+
+}
diff --git a/src/main/java/com/fuxuan/entity/TradeRecord.java b/src/main/java/com/fuxuan/entity/TradeRecord.java
new file mode 100644
index 0000000..62c857f
--- /dev/null
+++ b/src/main/java/com/fuxuan/entity/TradeRecord.java
@@ -0,0 +1,107 @@
+package com.fuxuan.entity;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+/**
+ *
+ * @author Fuxuan
+ *
+ */
+public class TradeRecord implements Serializable {
+
+ private static final long serialVersionUID = -6933004002818669361L;
+
+ private Integer id;//
+
+ private Date addTime;//ʱ
+
+ private Integer status;//״̬(1ȴ֧2֧ɹ3֧ʧ)
+
+ private Integer type;//(1.֧2.˿)
+
+ private BigDecimal count;//
+
+ private Integer currency;//(1.,2Ԫ)
+
+ private User user;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Date getAddTime() {
+ return addTime;
+ }
+
+ public void setAddTime(Date addTime) {
+ this.addTime = addTime;
+ }
+
+ public Integer getStatus() {
+ return status;
+ }
+
+ public void setStatus(Integer status) {
+ this.status = status;
+ }
+
+ public Integer getType() {
+ return type;
+ }
+
+ public void setType(Integer type) {
+ this.type = type;
+ }
+
+ public BigDecimal getCount() {
+ return count;
+ }
+
+ public void setCount(BigDecimal count) {
+ this.count = count;
+ }
+
+ public Integer getCurrency() {
+ return currency;
+ }
+
+ public void setCurrency(Integer currency) {
+ this.currency = currency;
+ }
+
+ public User getUser() {
+ return user;
+ }
+
+ public void setUser(User user) {
+ this.user = user;
+ }
+
+ public static long getSerialversionuid() {
+ return serialVersionUID;
+ }
+
+ public TradeRecord() {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+
+ public TradeRecord(Integer id, Date addTime, Integer status, Integer type, BigDecimal count, Integer currency,
+ User user) {
+ super();
+ this.id = id;
+ this.addTime = addTime;
+ this.status = status;
+ this.type = type;
+ this.count = count;
+ this.currency = currency;
+ this.user = user;
+ }
+
+
+}
diff --git a/src/main/java/com/fuxuan/entity/User.java b/src/main/java/com/fuxuan/entity/User.java
new file mode 100644
index 0000000..a77350d
--- /dev/null
+++ b/src/main/java/com/fuxuan/entity/User.java
@@ -0,0 +1,48 @@
+package com.fuxuan.entity;
+
+import java.io.Serializable;
+
+
+/**
+ *
+ * @author Fuxuan
+ *
+ */
+public class User implements Serializable {
+
+ private static final long serialVersionUID = -1187504976022830408L;
+
+ private Integer id;//ûID
+
+ private String userName;//û
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getUserName() {
+ return userName;
+ }
+
+ public void setUserName(String userName) {
+ this.userName = userName;
+ }
+
+
+
+ public User() {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+
+ public User(Integer id, String userName) {
+ super();
+ this.id = id;
+ this.userName = userName;
+ }
+
+}
diff --git a/src/main/java/com/fuxuan/service/TradeService.java b/src/main/java/com/fuxuan/service/TradeService.java
new file mode 100644
index 0000000..bde6697
--- /dev/null
+++ b/src/main/java/com/fuxuan/service/TradeService.java
@@ -0,0 +1,12 @@
+package com.fuxuan.service;
+
+import java.util.List;
+
+import com.fuxuan.entity.TradeRecord;
+
+public interface TradeService {
+
+ public TradeRecord newTrade(TradeRecord tr);
+
+ public List getTradeList(Integer status);
+}
diff --git a/src/main/java/com/fuxuan/service/impl/TradeServiceImpl.java b/src/main/java/com/fuxuan/service/impl/TradeServiceImpl.java
new file mode 100644
index 0000000..dacd965
--- /dev/null
+++ b/src/main/java/com/fuxuan/service/impl/TradeServiceImpl.java
@@ -0,0 +1,76 @@
+package com.fuxuan.service.impl;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+import org.springframework.stereotype.Service;
+
+import com.fuxuan.entity.TradeRecord;
+import com.fuxuan.entity.User;
+import com.fuxuan.service.TradeService;
+
+
+@Service("TradeService")
+public class TradeServiceImpl implements TradeService{
+
+ List userList = new ArrayList();//ûб
+ List recordList = new ArrayList();//¼б
+
+
+ /**
+ * Ĭϴһzhangsanû5¼
+ */
+ TradeServiceImpl(){
+ User userZhang = new User(1,"ZhangSan");
+ User userLi = new User(2,"LiSi");
+ userList.add(0,userZhang);
+ userList.add(1,userLi);
+
+ TradeRecord record1 = new TradeRecord(1,new Date(),2,1,BigDecimal.valueOf(5L),1,userZhang);
+ TradeRecord record2 = new TradeRecord(2,new Date(),2,1,BigDecimal.valueOf(6L),1,userZhang);
+ TradeRecord record3 = new TradeRecord(3,new Date(),2,1,BigDecimal.valueOf(7L),1,userZhang);
+ TradeRecord record4 = new TradeRecord(4,new Date(),3,2,BigDecimal.valueOf(8L),2,userLi);
+ TradeRecord record5 = new TradeRecord(5,new Date(),3,2,BigDecimal.valueOf(9L),2,userLi);
+ recordList.add(record1);
+ recordList.add(record2);
+ recordList.add(record3);
+ recordList.add(record4);
+ recordList.add(record5);
+
+ }
+
+ /**
+ * ½¼
+ * @return زĶ
+ */
+ public TradeRecord newTrade(TradeRecord tr) {
+ tr.setAddTime(new Date());//ʱ
+ Integer id = recordList.size()+1;//ģ
+ tr.setId(id);
+ Integer userID = tr.getUser().getId();
+ String userName = userList.get(userID-1).getUserName();
+ tr.getUser().setUserName(userName);
+ recordList.add(tr);
+ return tr;
+ }
+
+ /**
+ * ݽ״̬ѯ¼б
+ * @param status 0 ѯм¼ ,1 ֧ȴ,2ɹ֧,3ʧ֧
+ */
+ public List getTradeList(Integer status) {
+ if(status.intValue() != 0){
+ List list = new ArrayList();
+ for(TradeRecord tr : recordList){
+ if(tr.getStatus().intValue() == status.intValue()){
+ list.add(tr);
+ }
+ }
+ return list;
+ }else{
+ return recordList;
+ }
+ }
+}
diff --git a/src/main/java/com/fuxuan/utils/JsonResult.java b/src/main/java/com/fuxuan/utils/JsonResult.java
new file mode 100644
index 0000000..19cd573
--- /dev/null
+++ b/src/main/java/com/fuxuan/utils/JsonResult.java
@@ -0,0 +1,26 @@
+package com.fuxuan.utils;
+
+import java.io.Serializable;
+import java.util.HashMap;
+import java.util.Map;
+/**
+ *
+ * @author Fuxuan
+ *
+ *
+ */
+public class JsonResult implements Serializable {
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1754719221906733438L;
+ public Map json = new HashMap();
+
+ public String setJson(boolean message,Object obj){
+ json.put("success", message);
+ json.put("entity", obj);
+ return JsonUtils.objectToJson(json);
+ }
+
+
+}
diff --git a/src/main/java/com/fuxuan/utils/JsonUtils.java b/src/main/java/com/fuxuan/utils/JsonUtils.java
new file mode 100644
index 0000000..b99397b
--- /dev/null
+++ b/src/main/java/com/fuxuan/utils/JsonUtils.java
@@ -0,0 +1,51 @@
+package com.fuxuan.utils;
+
+import java.io.IOException;
+
+import com.fasterxml.jackson.core.JsonParseException;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.dataformat.xml.XmlMapper;
+
+/**
+ *
+ * @author Fuxuan
+ *
+ */
+public class JsonUtils {
+
+ private static final ObjectMapper MAPPER = new ObjectMapper();
+ private static final XmlMapper XMLMAPPER = new XmlMapper();
+
+ public static String objectToJson(Object data) {
+ try {
+ String string = MAPPER.writeValueAsString(data);
+ return string;
+ } catch (JsonProcessingException e) {
+ e.printStackTrace();
+ }
+ return null;
+ }
+
+ public static T jsonToPojo(String jsonData, Class beanType) {
+ try {
+ T t = MAPPER.readValue(jsonData, beanType);
+ return t;
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ return null;
+ }
+
+ public static T xmlToBean(String xml, Class beanType) throws JsonParseException, JsonMappingException, IOException{
+ T obj = XMLMAPPER.readValue(xml, beanType);
+ return obj;
+ }
+
+ public static String beanToXml(T bean) throws JsonProcessingException {
+ String string = XMLMAPPER.writeValueAsString(bean);
+ return string;
+ }
+
+}
diff --git a/src/main/resources/spring/springmvc.xml b/src/main/resources/spring/springmvc.xml
new file mode 100644
index 0000000..35edd79
--- /dev/null
+++ b/src/main/resources/spring/springmvc.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/lib/commons-logging-1.1.1.jar b/src/main/webapp/WEB-INF/lib/commons-logging-1.1.1.jar
new file mode 100644
index 0000000..1deef14
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/commons-logging-1.1.1.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/jackson-annotations-2.6.7.jar b/src/main/webapp/WEB-INF/lib/jackson-annotations-2.6.7.jar
new file mode 100644
index 0000000..d28a3ad
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/jackson-annotations-2.6.7.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/jackson-core-2.6.7.jar b/src/main/webapp/WEB-INF/lib/jackson-core-2.6.7.jar
new file mode 100644
index 0000000..d195e85
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/jackson-core-2.6.7.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/jackson-databind-2.6.7.jar b/src/main/webapp/WEB-INF/lib/jackson-databind-2.6.7.jar
new file mode 100644
index 0000000..d35b203
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/jackson-databind-2.6.7.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/jackson-dataformat-xml-2.6.7.jar b/src/main/webapp/WEB-INF/lib/jackson-dataformat-xml-2.6.7.jar
new file mode 100644
index 0000000..47debf2
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/jackson-dataformat-xml-2.6.7.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/jackson-module-jaxb-annotations-2.6.7.jar b/src/main/webapp/WEB-INF/lib/jackson-module-jaxb-annotations-2.6.7.jar
new file mode 100644
index 0000000..61acb34
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/jackson-module-jaxb-annotations-2.6.7.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/jstl-1.2.jar b/src/main/webapp/WEB-INF/lib/jstl-1.2.jar
new file mode 100644
index 0000000..0fd275e
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/jstl-1.2.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/spring-aop-3.2.0.RELEASE.jar b/src/main/webapp/WEB-INF/lib/spring-aop-3.2.0.RELEASE.jar
new file mode 100644
index 0000000..e945961
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/spring-aop-3.2.0.RELEASE.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/spring-aspects-3.2.0.RELEASE.jar b/src/main/webapp/WEB-INF/lib/spring-aspects-3.2.0.RELEASE.jar
new file mode 100644
index 0000000..f1e2c48
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/spring-aspects-3.2.0.RELEASE.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/spring-beans-3.2.0.RELEASE.jar b/src/main/webapp/WEB-INF/lib/spring-beans-3.2.0.RELEASE.jar
new file mode 100644
index 0000000..e036195
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/spring-beans-3.2.0.RELEASE.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/spring-context-3.2.0.RELEASE.jar b/src/main/webapp/WEB-INF/lib/spring-context-3.2.0.RELEASE.jar
new file mode 100644
index 0000000..995d2a4
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/spring-context-3.2.0.RELEASE.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/spring-context-support-3.2.0.RELEASE.jar b/src/main/webapp/WEB-INF/lib/spring-context-support-3.2.0.RELEASE.jar
new file mode 100644
index 0000000..5aeb9b7
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/spring-context-support-3.2.0.RELEASE.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/spring-core-3.2.0.RELEASE.jar b/src/main/webapp/WEB-INF/lib/spring-core-3.2.0.RELEASE.jar
new file mode 100644
index 0000000..f8dede4
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/spring-core-3.2.0.RELEASE.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/spring-expression-3.2.0.RELEASE.jar b/src/main/webapp/WEB-INF/lib/spring-expression-3.2.0.RELEASE.jar
new file mode 100644
index 0000000..cf14aff
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/spring-expression-3.2.0.RELEASE.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/spring-jdbc-3.2.0.RELEASE.jar b/src/main/webapp/WEB-INF/lib/spring-jdbc-3.2.0.RELEASE.jar
new file mode 100644
index 0000000..583d5bc
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/spring-jdbc-3.2.0.RELEASE.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/spring-orm-3.2.0.RELEASE.jar b/src/main/webapp/WEB-INF/lib/spring-orm-3.2.0.RELEASE.jar
new file mode 100644
index 0000000..48aaf1f
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/spring-orm-3.2.0.RELEASE.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/spring-test-3.2.0.RELEASE.jar b/src/main/webapp/WEB-INF/lib/spring-test-3.2.0.RELEASE.jar
new file mode 100644
index 0000000..59c4437
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/spring-test-3.2.0.RELEASE.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/spring-tx-3.2.0.RELEASE.jar b/src/main/webapp/WEB-INF/lib/spring-tx-3.2.0.RELEASE.jar
new file mode 100644
index 0000000..6f4f8d8
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/spring-tx-3.2.0.RELEASE.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/spring-web-3.2.0.RELEASE.jar b/src/main/webapp/WEB-INF/lib/spring-web-3.2.0.RELEASE.jar
new file mode 100644
index 0000000..0061f35
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/spring-web-3.2.0.RELEASE.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/spring-webmvc-3.2.0.RELEASE.jar b/src/main/webapp/WEB-INF/lib/spring-webmvc-3.2.0.RELEASE.jar
new file mode 100644
index 0000000..acded7a
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/spring-webmvc-3.2.0.RELEASE.jar differ
diff --git a/src/main/webapp/WEB-INF/lib/stax2-api-3.1.4.jar b/src/main/webapp/WEB-INF/lib/stax2-api-3.1.4.jar
new file mode 100644
index 0000000..dded036
Binary files /dev/null and b/src/main/webapp/WEB-INF/lib/stax2-api-3.1.4.jar differ
diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..bcc5d79
--- /dev/null
+++ b/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,40 @@
+
+
+ fuxuan
+
+ index.jsp
+
+
+
+
+ CharacterEncodingFilter
+ org.springframework.web.filter.CharacterEncodingFilter
+
+ encoding
+ utf-8
+
+
+
+ CharacterEncodingFilter
+ /*
+
+
+
+
+
+ springmvc
+ org.springframework.web.servlet.DispatcherServlet
+
+ contextConfigLocation
+ classpath:spring/springmvc.xml
+
+ 1
+
+
+ springmvc
+ /
+
+
\ No newline at end of file
diff --git a/target/classes/com/fuxuan/controller/TradeController.class b/target/classes/com/fuxuan/controller/TradeController.class
new file mode 100644
index 0000000..8de23a2
Binary files /dev/null and b/target/classes/com/fuxuan/controller/TradeController.class differ
diff --git a/target/classes/com/fuxuan/entity/TradeRecord.class b/target/classes/com/fuxuan/entity/TradeRecord.class
new file mode 100644
index 0000000..054f196
Binary files /dev/null and b/target/classes/com/fuxuan/entity/TradeRecord.class differ
diff --git a/target/classes/com/fuxuan/entity/User.class b/target/classes/com/fuxuan/entity/User.class
new file mode 100644
index 0000000..8b5913a
Binary files /dev/null and b/target/classes/com/fuxuan/entity/User.class differ
diff --git a/target/classes/com/fuxuan/service/TradeService.class b/target/classes/com/fuxuan/service/TradeService.class
new file mode 100644
index 0000000..9e9e339
Binary files /dev/null and b/target/classes/com/fuxuan/service/TradeService.class differ
diff --git a/target/classes/com/fuxuan/service/impl/TradeServiceImpl.class b/target/classes/com/fuxuan/service/impl/TradeServiceImpl.class
new file mode 100644
index 0000000..2cd52ac
Binary files /dev/null and b/target/classes/com/fuxuan/service/impl/TradeServiceImpl.class differ
diff --git a/target/classes/com/fuxuan/utils/JsonResult.class b/target/classes/com/fuxuan/utils/JsonResult.class
new file mode 100644
index 0000000..0944cb0
Binary files /dev/null and b/target/classes/com/fuxuan/utils/JsonResult.class differ
diff --git a/target/classes/com/fuxuan/utils/JsonUtils.class b/target/classes/com/fuxuan/utils/JsonUtils.class
new file mode 100644
index 0000000..fbb4df6
Binary files /dev/null and b/target/classes/com/fuxuan/utils/JsonUtils.class differ
diff --git a/target/classes/spring/springmvc.xml b/target/classes/spring/springmvc.xml
new file mode 100644
index 0000000..35edd79
--- /dev/null
+++ b/target/classes/spring/springmvc.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF b/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..4ad8515
--- /dev/null
+++ b/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF
@@ -0,0 +1,5 @@
+Manifest-Version: 1.0
+Build-Jdk: 1.7.0_72
+Built-By: Fuxuan
+Created-By: Maven Integration for Eclipse
+
diff --git a/target/m2e-wtp/web-resources/META-INF/maven/com.fuxuan/test/pom.properties b/target/m2e-wtp/web-resources/META-INF/maven/com.fuxuan/test/pom.properties
new file mode 100644
index 0000000..93b6b9b
--- /dev/null
+++ b/target/m2e-wtp/web-resources/META-INF/maven/com.fuxuan/test/pom.properties
@@ -0,0 +1,7 @@
+#Generated by Maven Integration for Eclipse
+#Sun Mar 26 21:23:43 CST 2017
+version=0.0.1-SNAPSHOT
+groupId=com.fuxuan
+m2e.projectName=test
+m2e.projectLocation=D\:\\workspace\\test
+artifactId=test
diff --git a/target/m2e-wtp/web-resources/META-INF/maven/com.fuxuan/test/pom.xml b/target/m2e-wtp/web-resources/META-INF/maven/com.fuxuan/test/pom.xml
new file mode 100644
index 0000000..5ea48e2
--- /dev/null
+++ b/target/m2e-wtp/web-resources/META-INF/maven/com.fuxuan/test/pom.xml
@@ -0,0 +1,7 @@
+
+ 4.0.0
+ com.fuxuan
+ test
+ 0.0.1-SNAPSHOT
+ war
+
\ No newline at end of file