diff --git "a/\346\236\227\345\261\225/vue-jd/.gitignore" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/.gitignore"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/.gitignore"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/.gitignore"
diff --git "a/\346\236\227\345\261\225/vue-jd/.vscode/extensions.json" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/.vscode/extensions.json"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/.vscode/extensions.json"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/.vscode/extensions.json"
diff --git "a/\346\236\227\345\261\225/vue-jd/README.md" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/README.md"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/README.md"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/README.md"
diff --git "a/\346\236\227\345\261\225/vue-jd/index.html" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/index.html"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/index.html"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/index.html"
diff --git "a/\346\236\227\345\261\225/vue-jd/jsconfig.json" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/jsconfig.json"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/jsconfig.json"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/jsconfig.json"
diff --git "a/\346\236\227\345\261\225/vue-jd/package-lock.json" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/package-lock.json"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/package-lock.json"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/package-lock.json"
diff --git "a/\346\236\227\345\261\225/vue-jd/package.json" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/package.json"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/package.json"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/package.json"
diff --git "a/\346\236\227\345\261\225/vue-jd/public/favicon.ico" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/public/favicon.ico"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/public/favicon.ico"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/public/favicon.ico"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/App.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/App.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/App.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/App.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/components/ShopInfo/Product.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/components/ShopInfo/Product.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/components/ShopInfo/Product.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/components/ShopInfo/Product.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/components/ShopInfo/ShopInfo.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/components/ShopInfo/ShopInfo.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/components/ShopInfo/ShopInfo.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/components/ShopInfo/ShopInfo.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/components/Tabbar/Tabbar.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/components/Tabbar/Tabbar.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/components/Tabbar/Tabbar.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/components/Tabbar/Tabbar.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/components/carts/cartsButton.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/components/carts/cartsButton.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/components/carts/cartsButton.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/components/carts/cartsButton.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/main.js" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/main.js"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/main.js"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/main.js"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/router/index.js" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/router/index.js"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/router/index.js"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/router/index.js"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/stores/carts.js" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/stores/carts.js"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/stores/carts.js"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/stores/carts.js"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/stores/shop.js" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/stores/shop.js"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/stores/shop.js"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/stores/shop.js"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/style/base.scss" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/style/base.scss"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/style/base.scss"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/style/base.scss"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/style/iconfont.css" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/style/iconfont.css"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/style/iconfont.css"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/style/iconfont.css"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/style/mixins.scss" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/style/mixins.scss"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/style/mixins.scss"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/style/mixins.scss"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/style/viriables.scss" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/style/viriables.scss"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/style/viriables.scss"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/style/viriables.scss"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/views/Address/AddressView.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Address/AddressView.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/views/Address/AddressView.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Address/AddressView.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/views/Address/CreateAddressView.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Address/CreateAddressView.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/views/Address/CreateAddressView.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Address/CreateAddressView.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/views/Cart/CartView.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Cart/CartView.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/views/Cart/CartView.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Cart/CartView.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/views/Home/HomeView.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Home/HomeView.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/views/Home/HomeView.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Home/HomeView.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/views/Home/NearByView.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Home/NearByView.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/views/Home/NearByView.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Home/NearByView.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/views/Home/StaticPartt.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Home/StaticPartt.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/views/Home/StaticPartt.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Home/StaticPartt.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/views/Layout/LayoutView.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Layout/LayoutView.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/views/Layout/LayoutView.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Layout/LayoutView.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/views/Login/LoginView.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Login/LoginView.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/views/Login/LoginView.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Login/LoginView.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/views/My/MyView.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/My/MyView.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/views/My/MyView.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/My/MyView.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/views/Order/OrderView.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Order/OrderView.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/views/Order/OrderView.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Order/OrderView.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/src/views/Shop/ShopView.vue" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Shop/ShopView.vue"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/src/views/Shop/ShopView.vue"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/src/views/Shop/ShopView.vue"
diff --git "a/\346\236\227\345\261\225/vue-jd/vite.config.js" "b/\346\236\227\345\261\225/jd 5.15/vue-jd/vite.config.js"
similarity index 100%
rename from "\346\236\227\345\261\225/vue-jd/vite.config.js"
rename to "\346\236\227\345\261\225/jd 5.15/vue-jd/vite.config.js"
diff --git "a/\346\236\227\345\261\225/\344\274\232\345\206\231\345\256\214\347\232\204.txt" "b/\346\236\227\345\261\225/jd 5.15/\344\274\232\345\206\231\345\256\214\347\232\204.txt"
similarity index 100%
rename from "\346\236\227\345\261\225/\344\274\232\345\206\231\345\256\214\347\232\204.txt"
rename to "\346\236\227\345\261\225/jd 5.15/\344\274\232\345\206\231\345\256\214\347\232\204.txt"
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/.gitignore" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/.gitignore"
new file mode 100644
index 0000000000000000000000000000000000000000..35410cacdc5e87f985c93a96520f5e11a5c822e4
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/.gitignore"
@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/compiler.xml" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/compiler.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..d9e3477add1ad81e9f61334036a0d521f39da270
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/compiler.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/dataSources.xml" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/dataSources.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..acf05007528f115afc65ff7e54affd61c0f4eeb2
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/dataSources.xml"
@@ -0,0 +1,12 @@
+
+
+
+
+ mysql.8
+ true
+ com.mysql.cj.jdbc.Driver
+ jdbc:mysql://localhost:3306
+ $ProjectFileDir$
+
+
+
\ No newline at end of file
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/encodings.xml" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/encodings.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..aa00ffab7828f4818589659c804ec2cfd99baed3
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/encodings.xml"
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/jarRepositories.xml" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/jarRepositories.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..762815353bd8c6265936541cb1b8656326e167a5
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/jarRepositories.xml"
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/misc.xml" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/misc.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..49d080440d9fb1f55efe2bf2ef69db2d80c084bf
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/misc.xml"
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/uiDesigner.xml" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/uiDesigner.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..2b63946d5b31084bbb7dda418ceb3d75eb686373
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/.idea/uiDesigner.xml"
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/pom.xml" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/pom.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..a8ca2b2333a356f3caeecbfeabbfe398a8a5e628
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/pom.xml"
@@ -0,0 +1,81 @@
+
+ 4.0.0
+ com.lz
+ untitled
+ war
+ 1.0-SNAPSHOT
+ untitled Maven Webapp
+ http://maven.apache.org
+
+
+
+ org.springframework
+ spring-webmvc
+ 5.2.10.RELEASE
+
+
+
+
+ com.alibaba
+ druid
+ 1.1.16
+
+
+ mysql
+ mysql-connector-java
+ 8.0.28
+
+
+ org.springframework
+ spring-jdbc
+ 5.2.10.RELEASE
+
+
+
+
+ org.mybatis
+ mybatis
+ 3.5.6
+
+
+ org.mybatis
+ mybatis-spring
+ 1.3.0
+
+
+
+
+ junit
+ junit
+ 4.12
+ test
+
+
+ org.springframework
+ spring-test
+ 5.2.10.RELEASE
+
+
+
+ javax.servlet
+ javax.servlet-api
+ 3.1.0
+
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ 2.9.0
+
+
+ org.springframework
+ spring-beans
+ 5.2.10.RELEASE
+
+
+
+
+ untitled
+
+
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/JdbcConfig.java" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/JdbcConfig.java"
new file mode 100644
index 0000000000000000000000000000000000000000..29063cd34ad70e747f61d90b8e84adfb5a1ba7e2
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/JdbcConfig.java"
@@ -0,0 +1,31 @@
+package com.lz.config;
+
+import com.alibaba.druid.pool.DruidDataSource;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Bean;
+
+import javax.sql.DataSource;
+
+public class JdbcConfig {
+ @Value("${jdbc.driver}")
+ private String driver;
+
+ @Value("${jdbc.url}")
+ private String url;
+
+ @Value("${jdbc.user}")
+ private String useruser;
+
+ @Value("${jdbc.pwd}")
+ private String password;
+
+ @Bean
+ public DataSource dataSource(){
+ DruidDataSource ds=new DruidDataSource();
+ ds.setDriverClassName(driver);
+ ds.setUrl(url);
+ ds.setUsername(useruser);
+ ds.setPassword(password);
+ return ds;
+ }
+}
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/MyBatisConfig.java" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/MyBatisConfig.java"
new file mode 100644
index 0000000000000000000000000000000000000000..46490b06848c9c35ef09093bae7aa6c5b4583c15
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/MyBatisConfig.java"
@@ -0,0 +1,25 @@
+package com.lz.config;
+
+import org.mybatis.spring.SqlSessionFactoryBean;
+import org.mybatis.spring.mapper.MapperScannerConfigurer;
+import org.springframework.context.annotation.Bean;
+
+import javax.sql.DataSource;
+
+
+public class MyBatisConfig {
+ @Bean
+ public SqlSessionFactoryBean sqlSessionFactoryBean(DataSource dataSource) {
+ SqlSessionFactoryBean sqlSessionFactoryBean = new SqlSessionFactoryBean();
+ sqlSessionFactoryBean.setDataSource(dataSource);
+ sqlSessionFactoryBean.setTypeAliasesPackage("com.lz.pojo");
+ return sqlSessionFactoryBean;
+ }
+
+ @Bean
+ public MapperScannerConfigurer mapperScannerConfigurer(){
+ MapperScannerConfigurer mapperScannerConfigurer=new MapperScannerConfigurer();
+ mapperScannerConfigurer.setBasePackage("com.lz.mapper");
+ return mapperScannerConfigurer;
+ }
+}
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/ServletConfig.java" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/ServletConfig.java"
new file mode 100644
index 0000000000000000000000000000000000000000..0615b9bccf03571703721cd94a04df06ec7a6c74
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/ServletConfig.java"
@@ -0,0 +1,21 @@
+package com.lz.config;
+
+import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
+
+public class ServletConfig extends AbstractAnnotationConfigDispatcherServletInitializer {
+
+ @Override
+ protected Class>[] getRootConfigClasses() {
+ return new Class[]{SpringConfig.class};
+ }
+
+ @Override
+ protected Class>[] getServletConfigClasses() {
+ return new Class[]{SpringMvcConfig.class};
+ }
+
+ @Override
+ protected String[] getServletMappings() {
+ return new String[]{"/"};
+ }
+}
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/SpringConfig.java" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/SpringConfig.java"
new file mode 100644
index 0000000000000000000000000000000000000000..ea8c0a5ec1cd7e34e57b7e7c33dee1d7f522f3c7
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/SpringConfig.java"
@@ -0,0 +1,13 @@
+package com.lz.config;
+
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.context.annotation.PropertySource;
+
+@Configuration
+@ComponentScan({"com.lz.service"})
+@PropertySource({"classpath:jdbc.config.properties"})
+@Import({JdbcConfig.class,MyBatisConfig.class})
+public class SpringConfig {
+}
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/SpringMvcConfig.java" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/SpringMvcConfig.java"
new file mode 100644
index 0000000000000000000000000000000000000000..66cc41c35ef2f65eed8792252f6a581ac3be34c5
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/config/SpringMvcConfig.java"
@@ -0,0 +1,17 @@
+package com.lz.config;
+
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.web.servlet.config.annotation.EnableWebMvc;
+import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
+
+@Configuration
+@ComponentScan("com.lz.controller")
+@EnableWebMvc
+public class SpringMvcConfig implements WebMvcConfigurer {
+ @Override
+ public void addResourceHandlers(ResourceHandlerRegistry registry) {
+ registry.addResourceHandler("/index.html").addResourceLocations("/index.html");
+ }
+}
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/controller/UserController.java" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/controller/UserController.java"
new file mode 100644
index 0000000000000000000000000000000000000000..0e89a07aa5af2bfc1e69fc8fada3a627e7ec5701
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/controller/UserController.java"
@@ -0,0 +1,19 @@
+package com.lz.controller;
+
+import com.lz.service.UserService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@RequestMapping("/users")
+public class UserController {
+ @Autowired
+ public UserService userService;
+
+ @GetMapping
+ public String get(){
+ return "get ok";
+ };
+}
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/mapper/UserMapper.java" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/mapper/UserMapper.java"
new file mode 100644
index 0000000000000000000000000000000000000000..b5197c859d65a9c4a895cb399a7e0e72bc536f29
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/mapper/UserMapper.java"
@@ -0,0 +1,11 @@
+package com.lz.mapper;
+
+import com.lz.pojo.User;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface UserMapper {
+ List getUserList();
+}
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/pojo/User.java" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/pojo/User.java"
new file mode 100644
index 0000000000000000000000000000000000000000..2c2fad1eb9acfaa1c6546788206a9b2fdfef77ad
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/pojo/User.java"
@@ -0,0 +1,49 @@
+package com.lz.pojo;
+
+public class User {
+ private int id;
+ private String name;
+ private int age;
+
+ @Override
+ public String toString() {
+ return "User{" +
+ "id=" + id +
+ ", name='" + name + '\'' +
+ ", age=" + age +
+ '}';
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getAge() {
+ return age;
+ }
+
+ public void setAge(int age) {
+ this.age = age;
+ }
+
+ public User() {
+ }
+
+ public User(int id, String name, int age) {
+ this.id = id;
+ this.name = name;
+ this.age = age;
+ }
+}
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/service/UserService.java" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/service/UserService.java"
new file mode 100644
index 0000000000000000000000000000000000000000..b636183ab78f99d645c020aa9d6550847ffe59b4
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/service/UserService.java"
@@ -0,0 +1,11 @@
+package com.lz.service;
+
+import com.lz.pojo.User;
+
+import java.util.List;
+
+
+
+public interface UserService {
+ List getUserList();
+}
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/service/impl/UserServiceImp.java" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/service/impl/UserServiceImp.java"
new file mode 100644
index 0000000000000000000000000000000000000000..5e55fb89c59737c61f7dad925e66c4c73ece2fa0
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/java/com/lz/service/impl/UserServiceImp.java"
@@ -0,0 +1,19 @@
+package com.lz.service.impl;
+
+import com.lz.mapper.UserMapper;
+import com.lz.pojo.User;
+import com.lz.service.UserService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+@Service
+public class UserServiceImp implements UserService {
+ @Autowired
+ public UserMapper userMapper;
+
+ @Override
+ public List getUserList() {
+ return userMapper.getUserList();
+ }
+}
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/resources/com/lz/mapper/UserMapper.xml" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/resources/com/lz/mapper/UserMapper.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..af0cdc60e7f2b2c530f3be9a4e11b173e7d99844
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/resources/com/lz/mapper/UserMapper.xml"
@@ -0,0 +1,9 @@
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/resources/jdbc.config.properties" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/resources/jdbc.config.properties"
new file mode 100644
index 0000000000000000000000000000000000000000..07fb30c7bd5b4f22a4fa6158e6771d87a4063399
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/resources/jdbc.config.properties"
@@ -0,0 +1,4 @@
+jdbc.driver=com.mysql.jdbc.Driver
+jdbc.url=jdbc:mysql://localhost:3306/db_ssm
+jdbc.user=root
+jdbc.pwd=123456
\ No newline at end of file
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/webapp/WEB-INF/web.xml" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/webapp/WEB-INF/web.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..9f88c1f9632445500e3b3688fe477b860f77d8f2
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/webapp/WEB-INF/web.xml"
@@ -0,0 +1,7 @@
+
+
+
+ Archetype Created Web Application
+
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/webapp/index.html" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/webapp/index.html"
new file mode 100644
index 0000000000000000000000000000000000000000..c568873f5c395a76e0311a0156effec16829e1b1
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/webapp/index.html"
@@ -0,0 +1,10 @@
+
+
+
+
+ Title
+
+
+hellowwwww
+
+
\ No newline at end of file
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/webapp/index.jsp" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/webapp/index.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..c38169bb958579c635a5c09ee2f379cc5956c0c2
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/main/webapp/index.jsp"
@@ -0,0 +1,5 @@
+
+
+Hello World!
+
+
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/test/java/com/lz/UserTest.java" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/test/java/com/lz/UserTest.java"
new file mode 100644
index 0000000000000000000000000000000000000000..66159f721231141e515ea4ddec45e44a278e8121
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/src/test/java/com/lz/UserTest.java"
@@ -0,0 +1,25 @@
+package com.lz;
+
+import com.lz.config.SpringConfig;
+import com.lz.pojo.User;
+import com.lz.service.UserService;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+
+import java.util.List;
+
+@RunWith(SpringJUnit4ClassRunner.class)
+@ContextConfiguration(classes = SpringConfig.class)
+public class UserTest {
+ @Autowired
+ private UserService userService;
+
+ @Test
+ public void test() {
+ Listusers=userService.getUserList();
+ System.out.println(users);
+ }
+}
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/classes/com/lz/mapper/UserMapper.xml" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/classes/com/lz/mapper/UserMapper.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..af0cdc60e7f2b2c530f3be9a4e11b173e7d99844
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/classes/com/lz/mapper/UserMapper.xml"
@@ -0,0 +1,9 @@
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/classes/jdbc.config.properties" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/classes/jdbc.config.properties"
new file mode 100644
index 0000000000000000000000000000000000000000..07fb30c7bd5b4f22a4fa6158e6771d87a4063399
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/classes/jdbc.config.properties"
@@ -0,0 +1,4 @@
+jdbc.driver=com.mysql.jdbc.Driver
+jdbc.url=jdbc:mysql://localhost:3306/db_ssm
+jdbc.user=root
+jdbc.pwd=123456
\ No newline at end of file
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/META-INF/MANIFEST.MF" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/META-INF/MANIFEST.MF"
new file mode 100644
index 0000000000000000000000000000000000000000..d4aaa249229739644484560f6ec2b6e849c7e5af
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/META-INF/MANIFEST.MF"
@@ -0,0 +1,5 @@
+Manifest-Version: 1.0
+Created-By: IntelliJ IDEA
+Built-By: LZ
+Build-Jdk: 1.8.0_401
+
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/WEB-INF/classes/com/lz/mapper/UserMapper.xml" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/WEB-INF/classes/com/lz/mapper/UserMapper.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..af0cdc60e7f2b2c530f3be9a4e11b173e7d99844
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/WEB-INF/classes/com/lz/mapper/UserMapper.xml"
@@ -0,0 +1,9 @@
+
+
+
+
+
\ No newline at end of file
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/WEB-INF/classes/jdbc.config.properties" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/WEB-INF/classes/jdbc.config.properties"
new file mode 100644
index 0000000000000000000000000000000000000000..07fb30c7bd5b4f22a4fa6158e6771d87a4063399
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/WEB-INF/classes/jdbc.config.properties"
@@ -0,0 +1,4 @@
+jdbc.driver=com.mysql.jdbc.Driver
+jdbc.url=jdbc:mysql://localhost:3306/db_ssm
+jdbc.user=root
+jdbc.pwd=123456
\ No newline at end of file
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/WEB-INF/web.xml" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/WEB-INF/web.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..9f88c1f9632445500e3b3688fe477b860f77d8f2
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/WEB-INF/web.xml"
@@ -0,0 +1,7 @@
+
+
+
+ Archetype Created Web Application
+
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/index.html" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/index.html"
new file mode 100644
index 0000000000000000000000000000000000000000..c568873f5c395a76e0311a0156effec16829e1b1
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/index.html"
@@ -0,0 +1,10 @@
+
+
+
+
+ Title
+
+
+hellowwwww
+
+
\ No newline at end of file
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/index.jsp" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/index.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..c38169bb958579c635a5c09ee2f379cc5956c0c2
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/target/untitled/index.jsp"
@@ -0,0 +1,5 @@
+
+
+Hello World!
+
+
diff --git "a/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/untitled.iml" "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/untitled.iml"
new file mode 100644
index 0000000000000000000000000000000000000000..c3900195961b51148132174fc6f3ae2e87a9f668
--- /dev/null
+++ "b/\346\236\227\345\261\225/spring\345\244\215\344\271\240 5.28/untitled/untitled.iml"
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file