diff --git a/ssm_wyl/pom.xml b/ssm_wyl/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..478fea586ae5a6ca069500e8d02709652191e39c
--- /dev/null
+++ b/ssm_wyl/pom.xml
@@ -0,0 +1,217 @@
+
+
+
+ 4.0.0
+
+ org.example
+ ssm_wyl
+ 1.0-SNAPSHOT
+ war
+
+ ssm_wyl Maven Webapp
+
+ http://www.example.com
+
+
+ UTF-8
+ 4.3.14.RELEASE
+ 1.7
+ 1.7
+
+
+
+
+ junit
+ junit
+ 4.11
+ test
+
+
+
+ org.springframework
+ spring-core
+ ${spring.version}
+
+
+ org.springframework
+ spring-beans
+ ${spring.version}
+
+
+ org.springframework
+ spring-context
+ ${spring.version}
+
+
+ org.springframework
+ spring-tx
+ ${spring.version}
+
+
+ org.springframework
+ spring-web
+ ${spring.version}
+
+
+ org.springframework
+ spring-webmvc
+ ${spring.version}
+
+
+ org.springframework
+ spring-aop
+ ${spring.version}
+
+
+ org.springframework
+ spring-expression
+ ${spring.version}
+
+
+ org.springframework
+ spring-jdbc
+ ${spring.version}
+
+
+ org.springframework
+ spring-test
+ ${spring.version}
+ test
+
+
+
+
+
+ mysql
+ mysql-connector-java
+ 5.1.45
+
+
+
+ org.aspectj
+ aspectjweaver
+ 1.8.10
+
+
+ org.aspectj
+ aspectjrt
+ 1.8.10
+
+
+
+ commons-fileupload
+ commons-fileupload
+ 1.3.3
+
+
+
+ commons-dbcp
+ commons-dbcp
+ 1.4
+
+
+ commons-pool
+ commons-pool
+ 1.6
+
+
+
+ com.fasterxml.jackson.core
+ jackson-core
+ 2.9.0.pr3
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ 2.9.0.pr3
+
+
+ com.fasterxml.jackson.core
+ jackson-annotations
+ 2.9.0.pr3
+
+
+
+ com.google.code.gson
+ gson
+ 2.8.2
+
+
+
+ com.alibaba
+ fastjson
+ 1.2.28
+
+
+
+
+
+ javax.servlet
+ javax.servlet-api
+ 3.1.0
+ provided
+
+
+
+ javax.servlet
+ jstl
+ 1.2
+
+
+
+
+ org.projectlombok
+ lombok
+ 1.16.10
+ provided
+
+
+ com.baomidou
+ mybatis-plus
+ 3.3.2
+
+
+ commons-codec
+ commons-codec
+ 1.15
+
+
+
+
+ ssm_wyl
+
+
+
+ maven-clean-plugin
+ 3.1.0
+
+
+
+ maven-resources-plugin
+ 3.0.2
+
+
+ maven-compiler-plugin
+ 3.8.0
+
+
+ maven-surefire-plugin
+ 2.22.1
+
+
+ maven-war-plugin
+ 3.2.2
+
+
+ maven-install-plugin
+ 2.5.2
+
+
+ maven-deploy-plugin
+ 2.8.2
+
+
+
+
+
diff --git a/ssm_wyl/src/main/java/com/wang/controller/StudentController.java b/ssm_wyl/src/main/java/com/wang/controller/StudentController.java
new file mode 100644
index 0000000000000000000000000000000000000000..d01cb57562821f23bf0697303a40cb56e720d508
--- /dev/null
+++ b/ssm_wyl/src/main/java/com/wang/controller/StudentController.java
@@ -0,0 +1,37 @@
+package com.wang.controller;
+
+import com.wang.domain.Student;
+import com.wang.service.StudentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import java.util.List;
+
+@Controller
+@RequestMapping("mp")
+public class StudentController {
+ @Autowired
+ StudentService service;
+//111
+ @RequestMapping("query")
+ @ResponseBody
+ public String query() {
+
+ List list = service.list();
+ System.out.println(list);
+ return null;
+ }
+
+ @RequestMapping("add")
+ @ResponseBody
+ public String add() {
+ Student st = new Student();
+ st.setName("ccc");
+ st.setSno("1111");
+ service.save(st);
+
+ return null;
+ }
+}
diff --git a/ssm_wyl/src/main/java/com/wang/domain/Student.java b/ssm_wyl/src/main/java/com/wang/domain/Student.java
new file mode 100644
index 0000000000000000000000000000000000000000..15a77b13d8132113df32406dda10693ba17ee127
--- /dev/null
+++ b/ssm_wyl/src/main/java/com/wang/domain/Student.java
@@ -0,0 +1,24 @@
+package com.wang.domain;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@TableName(value = "student")
+public class Student {
+ @TableId(value = "id", type = IdType.AUTO)
+ private Integer id;
+
+ @TableField(value = "name")
+ private String name;
+
+ @TableField(value = "sno")
+ private String sno;
+}
diff --git a/ssm_wyl/src/main/java/com/wang/mapper/StudentMapper.java b/ssm_wyl/src/main/java/com/wang/mapper/StudentMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..620b9d8492af805b6a3ae3447ee2b975d9f54af7
--- /dev/null
+++ b/ssm_wyl/src/main/java/com/wang/mapper/StudentMapper.java
@@ -0,0 +1,7 @@
+package com.wang.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.wang.domain.Student;
+
+public interface StudentMapper extends BaseMapper {
+}
diff --git a/ssm_wyl/src/main/java/com/wang/service/StudentService.java b/ssm_wyl/src/main/java/com/wang/service/StudentService.java
new file mode 100644
index 0000000000000000000000000000000000000000..e4865c997c00d453d7d73d95cf9e3e8a2171791d
--- /dev/null
+++ b/ssm_wyl/src/main/java/com/wang/service/StudentService.java
@@ -0,0 +1,7 @@
+package com.wang.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.wang.domain.Student;
+
+public interface StudentService extends IService {
+}
diff --git a/ssm_wyl/src/main/java/com/wang/service/impl/StudentServiceImpl.java b/ssm_wyl/src/main/java/com/wang/service/impl/StudentServiceImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..dcc95a77d41f5ffbb4ba788fed421fb5d0daaded
--- /dev/null
+++ b/ssm_wyl/src/main/java/com/wang/service/impl/StudentServiceImpl.java
@@ -0,0 +1,11 @@
+package com.wang.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.wang.domain.Student;
+import com.wang.mapper.StudentMapper;
+import com.wang.service.StudentService;
+import org.springframework.stereotype.Service;
+
+@Service
+public class StudentServiceImpl extends ServiceImpl implements StudentService {
+}
diff --git a/ssm_wyl/src/main/resources/applicationContext-mybatis.xml b/ssm_wyl/src/main/resources/applicationContext-mybatis.xml
new file mode 100644
index 0000000000000000000000000000000000000000..627cce51fb627521cb3fdd451a5d7a30d7f00cdb
--- /dev/null
+++ b/ssm_wyl/src/main/resources/applicationContext-mybatis.xml
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ssm_wyl/src/main/resources/database.properties b/ssm_wyl/src/main/resources/database.properties
new file mode 100644
index 0000000000000000000000000000000000000000..fcc4173be8a4ec0c764721f030af08c78a3d47e4
--- /dev/null
+++ b/ssm_wyl/src/main/resources/database.properties
@@ -0,0 +1,11 @@
+driver=com.mysql.jdbc.Driver
+url=jdbc:mysql://127.0.0.1:3306/mybatis?useUnicode=true&characterEncoding=utf-8
+user=root
+password=root
+minIdle=45
+maxIdle=50
+initialSize=5
+maxActive=100
+maxWait=100
+removeAbandonedTimeout=180
+removeAbandoned=true
diff --git a/ssm_wyl/src/main/resources/mapper/StudentMapper.xml b/ssm_wyl/src/main/resources/mapper/StudentMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..bf25a0c9ce5caca754c0b6308d3df6ba4c088e20
--- /dev/null
+++ b/ssm_wyl/src/main/resources/mapper/StudentMapper.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ id, `name`, sno
+
+
\ No newline at end of file
diff --git a/ssm_wyl/src/main/resources/springmvc-servlet.xml b/ssm_wyl/src/main/resources/springmvc-servlet.xml
new file mode 100644
index 0000000000000000000000000000000000000000..86b706c63cd98b36892483a8fbbc09d6634950d8
--- /dev/null
+++ b/ssm_wyl/src/main/resources/springmvc-servlet.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ssm_wyl/src/main/webapp/WEB-INF/web.xml b/ssm_wyl/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000000000000000000000000000000000000..fd9ff6aab7fd47099c5d55e18331e08cbbbba564
--- /dev/null
+++ b/ssm_wyl/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,54 @@
+
+
+
+ Archetype Created Web Application
+
+
+ contextConfigLocation
+ classpath:applicationContext-mybatis.xml
+
+
+
+
+ encodingFilter
+ org.springframework.web.filter.CharacterEncodingFilter
+
+ encoding
+ UTF-8
+
+
+ forceEncoding
+ true
+
+
+
+ encodingFilter
+ /*
+
+
+
+
+
+ org.springframework.web.context.ContextLoaderListener
+
+
+
+
+
+
+ springDispatcherServlet
+ org.springframework.web.servlet.DispatcherServlet
+
+ contextConfigLocation
+ classpath:springmvc-servlet.xml
+
+ 1
+
+
+ springDispatcherServlet
+ /
+
+
+
diff --git a/ssm_wyl/src/main/webapp/index.jsp b/ssm_wyl/src/main/webapp/index.jsp
new file mode 100644
index 0000000000000000000000000000000000000000..c38169bb958579c635a5c09ee2f379cc5956c0c2
--- /dev/null
+++ b/ssm_wyl/src/main/webapp/index.jsp
@@ -0,0 +1,5 @@
+
+
+Hello World!
+
+
diff --git a/ssm_zc_34/pom.xml b/ssm_zc_34/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..3f7437c49d3e1fa35f00b4090b9f85e0ab7025a5
--- /dev/null
+++ b/ssm_zc_34/pom.xml
@@ -0,0 +1,233 @@
+
+
+
+
+ ssm_demo
+ org.example
+ 1.0-SNAPSHOT
+
+ 4.0.0
+
+ ssm_zc_34
+ war
+
+ ssm_zc_34 Maven Webapp
+
+ http://www.example.com
+
+
+ UTF-8
+ 4.3.14.RELEASE
+ 1.8
+ 1.8
+
+
+
+
+
+ org.springframework
+ spring-core
+ ${spring.version}
+
+
+ org.springframework
+ spring-beans
+ ${spring.version}
+
+
+ org.springframework
+ spring-context
+ ${spring.version}
+
+
+ org.springframework
+ spring-tx
+ ${spring.version}
+
+
+ org.springframework
+ spring-web
+ ${spring.version}
+
+
+ org.springframework
+ spring-webmvc
+ ${spring.version}
+
+
+ org.springframework
+ spring-aop
+ ${spring.version}
+
+
+ org.springframework
+ spring-expression
+ ${spring.version}
+
+
+ org.springframework
+ spring-jdbc
+ ${spring.version}
+
+
+ org.springframework
+ spring-test
+ ${spring.version}
+ test
+
+
+
+
+
+ mysql
+ mysql-connector-java
+ 5.1.45
+
+
+
+ junit
+ junit
+ 4.12
+ test
+
+
+
+ org.aspectj
+ aspectjweaver
+ 1.8.10
+
+
+ org.aspectj
+ aspectjrt
+ 1.8.10
+
+
+
+ commons-fileupload
+ commons-fileupload
+ 1.3.3
+
+
+
+
+
+ commons-dbcp
+ commons-dbcp
+ 1.4
+
+
+ commons-pool
+ commons-pool
+ 1.6
+
+
+
+ com.fasterxml.jackson.core
+ jackson-core
+ 2.9.0.pr3
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ 2.9.0.pr3
+
+
+ com.fasterxml.jackson.core
+ jackson-annotations
+ 2.9.0.pr3
+
+
+
+ com.google.code.gson
+ gson
+ 2.8.2
+
+
+
+ com.alibaba
+ fastjson
+ 1.2.28
+
+
+
+
+
+ javax.servlet
+ javax.servlet-api
+ 3.1.0
+ provided
+
+
+
+ javax.servlet
+ jstl
+ 1.2
+
+
+
+
+ org.projectlombok
+ lombok
+ 1.16.10
+ provided
+
+
+ com.baomidou
+ mybatis-plus
+ 3.3.2
+
+
+ commons-codec
+ commons-codec
+ 1.15
+
+
+
+
+ ssm_zc_34
+
+
+
+ maven-clean-plugin
+ 3.1.0
+
+
+
+ maven-resources-plugin
+ 3.0.2
+
+
+ maven-compiler-plugin
+ 3.8.0
+
+
+ maven-surefire-plugin
+ 2.22.1
+
+
+ maven-war-plugin
+ 3.2.2
+
+
+ maven-install-plugin
+ 2.5.2
+
+
+ maven-deploy-plugin
+ 2.8.2
+
+
+
+
+
diff --git a/ssm_zc_34/src/main/java/com/hxci/zc/controller/StudentController.java b/ssm_zc_34/src/main/java/com/hxci/zc/controller/StudentController.java
new file mode 100644
index 0000000000000000000000000000000000000000..e59a5dfe6e19464952ca729d8238ed06cf3cf29a
--- /dev/null
+++ b/ssm_zc_34/src/main/java/com/hxci/zc/controller/StudentController.java
@@ -0,0 +1,33 @@
+package com.hxci.zc.controller;
+
+import com.hxci.zc.domain.Student;
+import com.hxci.zc.service.StudentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import java.util.List;
+
+@Controller
+@RequestMapping("stu")
+public class StudentController {
+ @Autowired
+ StudentService service;
+
+ @RequestMapping("query")
+ public String query(){
+ List list= service.list();
+ System.out.println(list);
+ return null;
+ }
+
+
+ @RequestMapping("add")
+ public String add(){
+ Student stu = new Student();
+ stu.setName("李四");
+ stu.setSno("666");
+ service.save(stu);
+ return null;
+ }
+}
diff --git a/ssm_zc_34/src/main/java/com/hxci/zc/domain/Student.java b/ssm_zc_34/src/main/java/com/hxci/zc/domain/Student.java
new file mode 100644
index 0000000000000000000000000000000000000000..e63e1a50e33ada1fab0a0b92097bd0d73d40b7af
--- /dev/null
+++ b/ssm_zc_34/src/main/java/com/hxci/zc/domain/Student.java
@@ -0,0 +1,24 @@
+package com.hxci.zc.domain;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@TableName(value = "student")
+public class Student {
+ @TableId(value = "id", type = IdType.AUTO)
+ private Integer id;
+
+ @TableField(value = "name")
+ private String name;
+
+ @TableField(value = "sno")
+ private String sno;
+}
\ No newline at end of file
diff --git a/ssm_zc_34/src/main/java/com/hxci/zc/mapper/StudentMapper.java b/ssm_zc_34/src/main/java/com/hxci/zc/mapper/StudentMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..9c24384e8f533cc3bbcd223b025efd9d72c1d3d2
--- /dev/null
+++ b/ssm_zc_34/src/main/java/com/hxci/zc/mapper/StudentMapper.java
@@ -0,0 +1,7 @@
+package com.hxci.zc.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.hxci.zc.domain.Student;
+
+public interface StudentMapper extends BaseMapper {
+}
\ No newline at end of file
diff --git a/ssm_zc_34/src/main/java/com/hxci/zc/service/StudentService.java b/ssm_zc_34/src/main/java/com/hxci/zc/service/StudentService.java
new file mode 100644
index 0000000000000000000000000000000000000000..0c52cc116870d379251ae3071469222d43fae19a
--- /dev/null
+++ b/ssm_zc_34/src/main/java/com/hxci/zc/service/StudentService.java
@@ -0,0 +1,8 @@
+package com.hxci.zc.service;
+
+import com.hxci.zc.domain.Student;
+import com.baomidou.mybatisplus.extension.service.IService;
+public interface StudentService extends IService{
+
+
+}
diff --git a/ssm_zc_34/src/main/java/com/hxci/zc/service/impl/StudentServiceImpl.java b/ssm_zc_34/src/main/java/com/hxci/zc/service/impl/StudentServiceImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..4643c4f62d7bc50fdf547506814a64086775f3b7
--- /dev/null
+++ b/ssm_zc_34/src/main/java/com/hxci/zc/service/impl/StudentServiceImpl.java
@@ -0,0 +1,13 @@
+package com.hxci.zc.service.impl;
+
+import org.springframework.stereotype.Service;
+import javax.annotation.Resource;
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.hxci.zc.domain.Student;
+import com.hxci.zc.mapper.StudentMapper;
+import com.hxci.zc.service.StudentService;
+@Service
+public class StudentServiceImpl extends ServiceImpl implements StudentService{
+
+}
diff --git a/ssm_zc_34/src/main/resources/applicationContext-mybatis.xml b/ssm_zc_34/src/main/resources/applicationContext-mybatis.xml
new file mode 100644
index 0000000000000000000000000000000000000000..6fc38ae1a93e3dcad7a1faf88a1cb2cf4df4845f
--- /dev/null
+++ b/ssm_zc_34/src/main/resources/applicationContext-mybatis.xml
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ssm_zc_34/src/main/resources/database.properties b/ssm_zc_34/src/main/resources/database.properties
new file mode 100644
index 0000000000000000000000000000000000000000..5c94d29cecdfd5ee6c5e667a7771299e3f8ca801
--- /dev/null
+++ b/ssm_zc_34/src/main/resources/database.properties
@@ -0,0 +1,11 @@
+driver=com.mysql.jdbc.Driver
+url=jdbc:mysql://127.0.0.1:3306/mybatis?useUnicode=true&characterEncoding=utf-8
+user=root
+password=x5
+minIdle=45
+maxIdle=50
+initialSize=5
+maxActive=100
+maxWait=100
+removeAbandonedTimeout=180
+removeAbandoned=true
diff --git a/ssm_zc_34/src/main/resources/mapper/StudentMapper.xml b/ssm_zc_34/src/main/resources/mapper/StudentMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..3d82ace043a5c681561abba62cc952a55acb506e
--- /dev/null
+++ b/ssm_zc_34/src/main/resources/mapper/StudentMapper.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ id, `name`, sno
+
+
\ No newline at end of file
diff --git a/ssm_zc_34/src/main/resources/springmvc-servlet.xml b/ssm_zc_34/src/main/resources/springmvc-servlet.xml
new file mode 100644
index 0000000000000000000000000000000000000000..0b33a5083e880fb89b7a1c80ef82b7ad7ab59386
--- /dev/null
+++ b/ssm_zc_34/src/main/resources/springmvc-servlet.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ssm_zc_34/src/main/webapp/WEB-INF/web.xml b/ssm_zc_34/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000000000000000000000000000000000000..7632e3c037d86e15fe0647fe41b987146ed1af5e
--- /dev/null
+++ b/ssm_zc_34/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,58 @@
+
+
+
+ Archetype Created Web Application
+
+
+
+
+ contextConfigLocation
+
+ classpath:applicationContext-mybatis.xml
+
+
+
+
+ encodingFilter
+ org.springframework.web.filter.CharacterEncodingFilter
+
+ encoding
+ UTF-8
+
+
+ forceEncoding
+ true
+
+
+
+ encodingFilter
+ /*
+
+
+
+
+
+ org.springframework.web.context.ContextLoaderListener
+
+
+
+
+
+ springDispatcherServlet
+ org.springframework.web.servlet.DispatcherServlet
+
+ contextConfigLocation
+ classpath:springmvc-servlet.xml
+
+ 1
+
+
+ springDispatcherServlet
+ /
+
+
+
+
+
diff --git a/ssm_zc_34/src/main/webapp/index.jsp b/ssm_zc_34/src/main/webapp/index.jsp
new file mode 100644
index 0000000000000000000000000000000000000000..c38169bb958579c635a5c09ee2f379cc5956c0c2
--- /dev/null
+++ b/ssm_zc_34/src/main/webapp/index.jsp
@@ -0,0 +1,5 @@
+
+
+Hello World!
+
+
diff --git a/ssm_zc_test/pom.xml b/ssm_zc_test/pom.xml
index 5ed0c736a61f43016d1c9bbe7346e7c8614db304..601e4dc75d0d0864c1ca25d61d65589fc21dedd0 100644
--- a/ssm_zc_test/pom.xml
+++ b/ssm_zc_test/pom.xml
@@ -18,17 +18,181 @@
UTF-8
- 1.7
- 1.7
+ 4.3.14.RELEASE
+ 1.8
+ 1.8
+
+
+ org.springframework
+ spring-core
+ ${spring.version}
+
+
+ org.springframework
+ spring-beans
+ ${spring.version}
+
+
+ org.springframework
+ spring-context
+ ${spring.version}
+
+
+ org.springframework
+ spring-tx
+ ${spring.version}
+
+
+ org.springframework
+ spring-web
+ ${spring.version}
+
+
+ org.springframework
+ spring-webmvc
+ ${spring.version}
+
+
+ org.springframework
+ spring-aop
+ ${spring.version}
+
+
+ org.springframework
+ spring-expression
+ ${spring.version}
+
+
+ org.springframework
+ spring-jdbc
+ ${spring.version}
+
+
+ org.springframework
+ spring-test
+ ${spring.version}
+ test
+
+
+
+
+
+ mysql
+ mysql-connector-java
+ 5.1.45
+
+
junit
junit
- 4.11
+ 4.12
test
+
+
+ org.aspectj
+ aspectjweaver
+ 1.8.10
+
+
+ org.aspectj
+ aspectjrt
+ 1.8.10
+
+
+
+ commons-fileupload
+ commons-fileupload
+ 1.3.3
+
+
+
+
+
+ commons-dbcp
+ commons-dbcp
+ 1.4
+
+
+ commons-pool
+ commons-pool
+ 1.6
+
+
+
+ com.fasterxml.jackson.core
+ jackson-core
+ 2.9.0.pr3
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ 2.9.0.pr3
+
+
+ com.fasterxml.jackson.core
+ jackson-annotations
+ 2.9.0.pr3
+
+
+
+ com.google.code.gson
+ gson
+ 2.8.2
+
+
+
+ com.alibaba
+ fastjson
+ 1.2.28
+
+
+
+
+
+ javax.servlet
+ javax.servlet-api
+ 3.1.0
+ provided
+
+
+
+ javax.servlet
+ jstl
+ 1.2
+
+
+
+
+ org.projectlombok
+ lombok
+ 1.16.10
+ provided
+
+
+ com.baomidou
+ mybatis-plus
+ 3.3.2
+
+
+ commons-codec
+ commons-codec
+ 1.15
+
+
diff --git a/ssm_zc_test/src/main/java/com/hxic/zc/controller/StudentController.java b/ssm_zc_test/src/main/java/com/hxic/zc/controller/StudentController.java
new file mode 100644
index 0000000000000000000000000000000000000000..96d974cc59bd8ce90bd02eb5a96d7305e196ee0a
--- /dev/null
+++ b/ssm_zc_test/src/main/java/com/hxic/zc/controller/StudentController.java
@@ -0,0 +1,38 @@
+package com.hxic.zc.controller;
+
+
+import com.hxic.zc.domain.Student;
+import com.hxic.zc.service.StudentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import java.util.List;
+
+@Controller
+@RequestMapping("mp")
+public class StudentController {
+ @Autowired
+ StudentService service;
+
+ @RequestMapping("query")
+ @ResponseBody
+ public String query() {
+
+ List list = service.list();
+ System.out.println(list);
+ return null;
+ }
+
+ @RequestMapping("add")
+ @ResponseBody
+ public String add() {
+ Student st = new Student();
+ st.setName("ccc");
+ st.setSno("1111");
+ service.save(st);
+
+ return null;
+ }
+}
\ No newline at end of file
diff --git a/ssm_zc_test/src/main/java/com/hxic/zc/domain/Student.java b/ssm_zc_test/src/main/java/com/hxic/zc/domain/Student.java
new file mode 100644
index 0000000000000000000000000000000000000000..8c1190df13c984b778871f5bbd276fecf7228515
--- /dev/null
+++ b/ssm_zc_test/src/main/java/com/hxic/zc/domain/Student.java
@@ -0,0 +1,24 @@
+package com.hxic.zc.domain;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@TableName(value = "student")
+public class Student {
+ @TableId(value = "id", type = IdType.AUTO)
+ private Integer id;
+
+ @TableField(value = "name")
+ private String name;
+
+ @TableField(value = "sno")
+ private String sno;
+}
\ No newline at end of file
diff --git a/ssm_zc_test/src/main/java/com/hxic/zc/mapper/StudentMapper.java b/ssm_zc_test/src/main/java/com/hxic/zc/mapper/StudentMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..350c0faa8a09434c7ff7950c03c903f18901bac2
--- /dev/null
+++ b/ssm_zc_test/src/main/java/com/hxic/zc/mapper/StudentMapper.java
@@ -0,0 +1,7 @@
+package com.hxic.zc.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.hxic.zc.domain.Student;
+
+public interface StudentMapper extends BaseMapper {
+}
\ No newline at end of file
diff --git a/ssm_zc_test/src/main/java/com/hxic/zc/service/StudentService.java b/ssm_zc_test/src/main/java/com/hxic/zc/service/StudentService.java
new file mode 100644
index 0000000000000000000000000000000000000000..5521aa4a95637c66411fd8dcfde5d8af3809029f
--- /dev/null
+++ b/ssm_zc_test/src/main/java/com/hxic/zc/service/StudentService.java
@@ -0,0 +1,8 @@
+package com.hxic.zc.service;
+
+import com.hxic.zc.domain.Student;
+import com.baomidou.mybatisplus.extension.service.IService;
+public interface StudentService extends IService{
+
+
+}
diff --git a/ssm_zc_test/src/main/java/com/hxic/zc/service/impl/StudentServiceImpl.java b/ssm_zc_test/src/main/java/com/hxic/zc/service/impl/StudentServiceImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..0a7f8bdd08abfbc59e330b51c8cc25ba30b4e0de
--- /dev/null
+++ b/ssm_zc_test/src/main/java/com/hxic/zc/service/impl/StudentServiceImpl.java
@@ -0,0 +1,13 @@
+package com.hxic.zc.service.impl;
+
+import org.springframework.stereotype.Service;
+import javax.annotation.Resource;
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.hxic.zc.mapper.StudentMapper;
+import com.hxic.zc.domain.Student;
+import com.hxic.zc.service.StudentService;
+@Service
+public class StudentServiceImpl extends ServiceImpl implements StudentService{
+
+}
diff --git a/ssm_zc_test/src/main/resources/applicationContext-mybatis.xml b/ssm_zc_test/src/main/resources/applicationContext-mybatis.xml
new file mode 100644
index 0000000000000000000000000000000000000000..ab9bfc71c6f791d0cfcf56dbb28d7b3698bfd407
--- /dev/null
+++ b/ssm_zc_test/src/main/resources/applicationContext-mybatis.xml
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ssm_zc_test/src/main/resources/database.properties b/ssm_zc_test/src/main/resources/database.properties
new file mode 100644
index 0000000000000000000000000000000000000000..5c94d29cecdfd5ee6c5e667a7771299e3f8ca801
--- /dev/null
+++ b/ssm_zc_test/src/main/resources/database.properties
@@ -0,0 +1,11 @@
+driver=com.mysql.jdbc.Driver
+url=jdbc:mysql://127.0.0.1:3306/mybatis?useUnicode=true&characterEncoding=utf-8
+user=root
+password=x5
+minIdle=45
+maxIdle=50
+initialSize=5
+maxActive=100
+maxWait=100
+removeAbandonedTimeout=180
+removeAbandoned=true
diff --git a/ssm_zc_test/src/main/resources/mapper/StudentMapper.xml b/ssm_zc_test/src/main/resources/mapper/StudentMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..6c0f661ef3fd11185ac7134eede817b1fac30e87
--- /dev/null
+++ b/ssm_zc_test/src/main/resources/mapper/StudentMapper.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ id, `name`, sno
+
+
\ No newline at end of file
diff --git a/ssm_zc_test/src/main/resources/springmvc-servlet.xml b/ssm_zc_test/src/main/resources/springmvc-servlet.xml
new file mode 100644
index 0000000000000000000000000000000000000000..698f3701d80b6ea7c652ffabb3baa8d1fee58ca8
--- /dev/null
+++ b/ssm_zc_test/src/main/resources/springmvc-servlet.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ssm_zc_test/src/main/webapp/WEB-INF/web.xml b/ssm_zc_test/src/main/webapp/WEB-INF/web.xml
index 9f88c1f9632445500e3b3688fe477b860f77d8f2..154a0e38213c418f36dfa30029deeedd73089758 100644
--- a/ssm_zc_test/src/main/webapp/WEB-INF/web.xml
+++ b/ssm_zc_test/src/main/webapp/WEB-INF/web.xml
@@ -4,4 +4,55 @@
Archetype Created Web Application
+
+
+
+
+ contextConfigLocation
+ classpath:applicationContext-mybatis.xml
+
+
+
+
+ encodingFilter
+ org.springframework.web.filter.CharacterEncodingFilter
+
+ encoding
+ UTF-8
+
+
+ forceEncoding
+ true
+
+
+
+ encodingFilter
+ /*
+
+
+
+
+
+ org.springframework.web.context.ContextLoaderListener
+
+
+
+
+
+
+ springDispatcherServlet
+ org.springframework.web.servlet.DispatcherServlet
+
+ contextConfigLocation
+ classpath:springmvc-servlet.xml
+
+ 1
+
+
+ springDispatcherServlet
+ /
+
+
+
+