From 72ff33e670c06ad1d605af0ffffbbc0f698c884a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2?= <1519877757@qq.com> Date: Sun, 18 Dec 2022 18:13:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../worktable.sql" | 24 ++ .../Spring/.idea/compiler.xml" | 13 ++ .../Spring/.idea/encodings.xml" | 7 + .../Spring/.idea/misc.xml" | 20 ++ .../Spring/.idea/uiDesigner.xml" | 124 ++++++++++ .../Spring/.idea/workspace.xml" | 213 ++++++++++++++++++ .../Spring/Spring.iml" | 2 + .../Spring/pom.xml" | 83 +++++++ .../java/cn/tedu/springdemo/day01/Demo.java" | 5 + .../cn/tedu/springdemo/day01/Person.java" | 12 + .../tedu/springdemo/day01/SpellChecker.java" | 8 + .../cn/tedu/springdemo/day01/Test01.java" | 23 ++ .../cn/tedu/springdemo/day01/UserDao.java" | 13 ++ .../cn/tedu/springdemo/day02/Context.java" | 42 ++++ .../java/cn/tedu/springdemo/day02/Demo.java" | 4 + .../java/cn/tedu/springdemo/day02/Speak.java" | 5 + .../main/resources/applicationContext.xml" | 11 + .../Spring/src/main/resources/beans.xml" | 21 ++ .../Spring/src/main/webapp/WEB-INF/web.xml" | 7 + .../Spring/src/main/webapp/index.jsp" | 5 + .../classes/META-INF/Spring.kotlin_module" | Bin 0 -> 16 bytes .../target/classes/applicationContext.xml" | 11 + .../Spring/target/classes/beans.xml" | 21 ++ .../cn/tedu/springdemo/day01/Demo.class" | Bin 0 -> 287 bytes .../cn/tedu/springdemo/day01/Person.class" | Bin 0 -> 599 bytes .../tedu/springdemo/day01/SpellChecker.class" | Bin 0 -> 496 bytes .../cn/tedu/springdemo/day01/Test01.class" | Bin 0 -> 1260 bytes .../cn/tedu/springdemo/day01/UserDao.class" | Bin 0 -> 735 bytes .../cn/tedu/springdemo/day02/Context.class" | Bin 0 -> 1575 bytes .../cn/tedu/springdemo/day02/Demo.class" | Bin 0 -> 287 bytes .../cn/tedu/springdemo/day02/Speak.class" | Bin 0 -> 290 bytes .../Beans.xml" | 90 ++++++++ .../Demo.java" | 87 +++++++ .../demo.properties" | 2 + 34 files changed, 853 insertions(+) create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/1\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/worktable.sql" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/compiler.xml" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/encodings.xml" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/misc.xml" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/uiDesigner.xml" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/workspace.xml" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/Spring.iml" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/pom.xml" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/Demo.java" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/Person.java" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/SpellChecker.java" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/Test01.java" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/UserDao.java" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day02/Context.java" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day02/Demo.java" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day02/Speak.java" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/resources/applicationContext.xml" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/resources/beans.xml" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/webapp/WEB-INF/web.xml" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/webapp/index.jsp" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/META-INF/Spring.kotlin_module" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/applicationContext.xml" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/beans.xml" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day01/Demo.class" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day01/Person.class" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day01/SpellChecker.class" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day01/Test01.class" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day01/UserDao.class" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day02/Context.class" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day02/Demo.class" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day02/Speak.class" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/3\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Beans.xml" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/3\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Demo.java" create mode 100644 "20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/3\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/demo.properties" diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/1\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/worktable.sql" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/1\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/worktable.sql" new file mode 100644 index 0000000..c1f022c --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/1\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/worktable.sql" @@ -0,0 +1,24 @@ +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; +CREATE DATABASE MI CHARACTER SET = utf8; +USE MI; +DROP TABLE IF EXISTS `worktable`; +CREATE TABLE `worktable` ( + `ID` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `名字` varchar(4) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `电话` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `性别` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `日期` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; + +INSERT INTO `worktable` VALUES ('1', '丽丽', '10012', '女', '2020-1-01'); +INSERT INTO `worktable` VALUES ('2', '龙龙', '10013', '男', '2020-2-10'); +INSERT INTO `worktable` VALUES ('3', '花花', '10014', '女', '2020-3-23'); +INSERT INTO `worktable` VALUES ('4', '绿绿', '10056', '男', '2020-4-09'); +INSERT INTO `worktable` VALUES ('', '', '', '女', ''); +SET FOREIGN_KEY_CHECKS = 1; + +UPDATE `worktable` SET 名字='红红' WHERE ID='3'; +UPDATE `worktable` SET 性别='女' WHERE ID='4'; + +DELETE FROM worktable WHERE 电话 = 10014; \ No newline at end of file diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/compiler.xml" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/compiler.xml" new file mode 100644 index 0000000..04866d1 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/compiler.xml" @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/encodings.xml" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/encodings.xml" new file mode 100644 index 0000000..aa00ffa --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/encodings.xml" @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/misc.xml" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/misc.xml" new file mode 100644 index 0000000..1035788 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/misc.xml" @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/uiDesigner.xml" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/uiDesigner.xml" new file mode 100644 index 0000000..e96534f --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/uiDesigner.xml" @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/workspace.xml" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/workspace.xml" new file mode 100644 index 0000000..94a14e5 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/.idea/workspace.xml" @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1669969127668 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/Spring.iml" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/Spring.iml" new file mode 100644 index 0000000..78b2cc5 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/Spring.iml" @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/pom.xml" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/pom.xml" new file mode 100644 index 0000000..90d4467 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/pom.xml" @@ -0,0 +1,83 @@ + + + + 4.0.0 + + org.example + Spring + 1.0-SNAPSHOT + war + + Spring Maven Webapp + + http://www.example.com + + + UTF-8 + 1.7 + 1.7 + + + + + + junit + junit + 4.13.2 + test + + + + + org.springframework + spring-context + 5.3.18 + + + + org.junit.jupiter + junit-jupiter + RELEASE + compile + + + + + + Spring + + + + 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/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/Demo.java" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/Demo.java" new file mode 100644 index 0000000..6d7d6de --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/Demo.java" @@ -0,0 +1,5 @@ +package cn.tedu.springdemo.day01; + +public class Demo { + +} diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/Person.java" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/Person.java" new file mode 100644 index 0000000..168b8d9 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/Person.java" @@ -0,0 +1,12 @@ +package cn.tedu.springdemo.day01; + +import org.junit.jupiter.api.Test; + +public class Person { + public void eat(){ + System.out.println("吃..."); + } + public void say(){ + System.out.println("说...."); + } +} diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/SpellChecker.java" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/SpellChecker.java" new file mode 100644 index 0000000..dc8fc5e --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/SpellChecker.java" @@ -0,0 +1,8 @@ +package cn.tedu.springdemo.day01; + +public class SpellChecker { + public SpellChecker(){ + System.out.println("Inside SpellChecker constructor." ); + } + +} diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/Test01.java" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/Test01.java" new file mode 100644 index 0000000..2003304 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/Test01.java" @@ -0,0 +1,23 @@ +package cn.tedu.springdemo.day01; +import cn.tedu.springdemo.day02.Context; +import org.junit.jupiter.api.Test; +import org.springframework.context.ApplicationContext; +import org.springframework.context.support.ClassPathXmlApplicationContext; + + +public class Test01 { + @Test + public void test01(){ + Person p1=new Person(); + p1.eat(); + p1.say(); + } + @Test + public void test02(){ + + ApplicationContext ac=new ClassPathXmlApplicationContext("beans.xml"); + Context context=(Context)ac.getBean("context"); + System.out.println(context); + ((ClassPathXmlApplicationContext)ac).close(); + } +} diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/UserDao.java" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/UserDao.java" new file mode 100644 index 0000000..2340595 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day01/UserDao.java" @@ -0,0 +1,13 @@ +package cn.tedu.springdemo.day01; + +public class UserDao { + public void myInit(){ + System.out.println("获取数据库连接"); + } + public void mySelect(){ + System.out.println("查询数据"); + } + public void myDestroy(){ + System.out.println("断开数据连接"); + } +} diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day02/Context.java" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day02/Context.java" new file mode 100644 index 0000000..86acb67 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day02/Context.java" @@ -0,0 +1,42 @@ +package cn.tedu.springdemo.day02; + +public class Context { + private Speak speak; + private Demo demo1; + private cn.tedu.springdemo.day01.Demo demo2; + + public cn.tedu.springdemo.day01.Demo getDemo2() { + return demo2; + } + + public void setDemo2(cn.tedu.springdemo.day01.Demo demo2) { + this.demo2 = demo2; + } + + public Demo getDemo1() { + return demo1; + } + + public void setDemo1(Demo demo1) { + this.demo1 = demo1; + } + + public Speak getSpeak() { + return speak; + } + + @Override + public String toString() { + return "Context{" + + "speak=" + speak + + ", demo1=" + demo1 + + ", demo2=" + demo2 + + '}'; + } + + public void setSpeak(Speak speak) { + this.speak = speak; + } + + +} diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day02/Demo.java" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day02/Demo.java" new file mode 100644 index 0000000..424e1f0 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day02/Demo.java" @@ -0,0 +1,4 @@ +package cn.tedu.springdemo.day02; + +public class Demo { +} diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day02/Speak.java" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day02/Speak.java" new file mode 100644 index 0000000..934b3fb --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/java/cn/tedu/springdemo/day02/Speak.java" @@ -0,0 +1,5 @@ +package cn.tedu.springdemo.day02; + +public class Speak { + +} diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/resources/applicationContext.xml" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/resources/applicationContext.xml" new file mode 100644 index 0000000..3ce09c9 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/resources/applicationContext.xml" @@ -0,0 +1,11 @@ + + + + + + + + + \ No newline at end of file diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/resources/beans.xml" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/resources/beans.xml" new file mode 100644 index 0000000..c900f2c --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/resources/beans.xml" @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/webapp/WEB-INF/web.xml" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/webapp/WEB-INF/web.xml" new file mode 100644 index 0000000..9f88c1f --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/webapp/WEB-INF/web.xml" @@ -0,0 +1,7 @@ + + + + Archetype Created Web Application + diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/webapp/index.jsp" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/webapp/index.jsp" new file mode 100644 index 0000000..c38169b --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/src/main/webapp/index.jsp" @@ -0,0 +1,5 @@ + + +

Hello World!

+ + diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/META-INF/Spring.kotlin_module" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/META-INF/Spring.kotlin_module" new file mode 100644 index 0000000000000000000000000000000000000000..a49347afef10a9b5f95305e1058ba36adec7d6dd GIT binary patch literal 16 RcmZQzU|?ooU|@t|0RRA102TlM literal 0 HcmV?d00001 diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/applicationContext.xml" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/applicationContext.xml" new file mode 100644 index 0000000..3ce09c9 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/applicationContext.xml" @@ -0,0 +1,11 @@ + + + + + + + + + \ No newline at end of file diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/beans.xml" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/beans.xml" new file mode 100644 index 0000000..67a0069 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/beans.xml" @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day01/Demo.class" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day01/Demo.class" new file mode 100644 index 0000000000000000000000000000000000000000..60d58edbf0f3345b93668ee265f86f2c55739f97 GIT binary patch literal 287 zcmaKn&1%9>5QWdg{Ae0~=w8HK>%!aOvf{?lRj>=i{Y`SQSK>{HNuiI`mC%I`;6sUX z#kDhVnDa4bU{2@%BY+8dAsT20=mh8z{HZp&nh_dL&ufA^FET~w#@eVwy-QTNl1a|w zF)mV>uVtyNzd^V9(tE-nPK~HkR*U_2sm&%+yFz60_vKZ*^Y}&xmqlHs>OqF_)NActuTbcPuL=EKEmp=6ITy-qXX!VfrEh6XABNBS)=Rh Np@ong;epjbbO8^rJgWcz literal 0 HcmV?d00001 diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day01/Person.class" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day01/Person.class" new file mode 100644 index 0000000000000000000000000000000000000000..3dd09c32d3068acdd5189aeb3e7753e970a7fc14 GIT binary patch literal 599 zcmah`%Syvg5IwiAJQ}sO*0mpzRb7#(-bLLF){`L9>;1IhiBvceEp(H-sh^>o8aaqwtK@frpk?yC-&`!;xBom>Zr3(cYet;h( z-n1?%xNt7qnRDho=G^)Gdj9}$jspWLsFqMey@-Z^bu@Ks=-6afxsah$mkjxKXTYHK zBTq0?Y#EB%G#HBbfe(FR>UQLEf52mz;U7{{W0^1<+iqwn;iXnGjb%9UL=agXpPimr z&Q$n*e=OWb5%(AjCrV>iT+6IvZTYf0;ZNLzj-rk&6WiEfXx)T~^h9epuH{ByqTa&ui>5sfmXUQ&s+6N*!2=S} z_=9H9GwI3?DX+aqoOhutnnOFEWyJY-0&+O93v7-DntyA1J7uPzt{s&KnOxPg zxUd*cfh<>6h)0Gy2CY@Owqr~9 zf#*`k=!do|?WWkZ1DhzMhFdzse926QMwv-iju!|_Vu1dc>WP7=37|MkCzDo2YhvL9 z>>F(~+@P2YlPQeQ-iQj2$4xph+@fYJY<^FxM!BI=XnQA!Rg1@n)0^l5+by8l$*P;CHB6k&lH`5fru<`l`joPL5-wU|r)Kt{tEvTwe_ zSUg5w@eIjh^mpm=NKjJ_8Pc04XX8XZO*`eQ5CL{1WQh7MCWtyuS5=@3)BX`NMLins F{RLEYDS`k1 literal 0 HcmV?d00001 diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day01/UserDao.class" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day01/UserDao.class" new file mode 100644 index 0000000000000000000000000000000000000000..fe8339b2b730805619542e9588d7cc5e6b80a68f GIT binary patch literal 735 zcmaixOG_J36vzKJiJ6C^(b)Lb`UG{+vAF0W#f>5eL4|1cH_640%tK}-!tDG4+C|Z2 z3xzDLZ5Ik6y7zlz$fpp`WJFyIIE#DFIrsd3=P?hDH+KM5Ft0*JLBSw~WDKhq!KjQe z8RHTrBup}7zZ$mTuQH?;7Ap*yHK#5ZawWqSTMer!++AKZDUvTaHEve8YefEYFyntS zJcgN4&DMQUZ|L5kYuNjBVL5u82g{%JJx{pn+$mBaE7+t;46+rJg(+%eDps&AJl}N! z2DR)o+?v=hqH5Z+?$ZH3;u;jF5U dGNda3A`?VOgyfSU*#t;8L9|530QH%|hbNOOo3#J{ literal 0 HcmV?d00001 diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day02/Context.class" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day02/Context.class" new file mode 100644 index 0000000000000000000000000000000000000000..453a1ac995599bb76b7350b806dbddbb8e81a164 GIT binary patch literal 1575 zcmah}TW=C!5IrB)1-C%4rB-VTR9m2>TPR+8OT_p@^a0bv7n21xxRovh7Nar#Crv6% zH1P-cql`1l0q@T3HxyHA^p#$xs~gRRcF|TE>ZkppQf0&;K{-|s z*l>qFC&UO@oP#VVHZpLe8@hQS;LT*u1bpRoLlcNrbVGaDzo=>5*J`ark$9zDS6gRl zSLbIt=riBxJ%O}4pK{wUwT~uIlA4;yJ&9E+lXc4&^OAaFcslbRG!q|{Cwb@pxuIwkPlFWA1p=tB6*pZ692H~=;cC0z zt!poIUWaT8yT_GfB(Nf53Cl9#xG5usMS&G((`S9X)zG>E5j**_b@h&A9O8)0F|pcB zT9<6%7OnRuGPaSSTk3jA?V19yN#9qsbFFR)1k_GPGa3T<%ylWQt78)-k*4s&YKQai zYnih9YozGojM8W8g@+{~&%=6ICy7U=1i@O8y+uz7oq|q(?h4|Y1zRN>u!3IPCSM)` za0hGjBybn&WT%ra;rZ%F4$Vy7K+;Y=A!Z(KmD~9a&!lzOiZ0OqBVtuZ3{iG_rp9wH z>lD&6h5QWdg{Ae0~=w8HK>%v>=vf{?lRj>=i{Y`SQSK>{HNuiI`mC%I`;6sUX z#kDhVnDa4bU{2@%BY+8dAsT20=mh8z{HZp&nh_dL&ufA^FET~w#@eVwy-QTNl1a|w zF)mV>uVtyNzd^V9(tE-nPK~HkR*U_2sm&%+yFz60_vKZ*^Y}&xmqlHs>OqF_)NActuTbcPuL=EKEmp=6ITy-qXX!VfrEh6XABNBS)=Rh Np@ong;epjbbO8{@Jgoo# literal 0 HcmV?d00001 diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day02/Speak.class" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/2\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Spring/target/classes/cn/tedu/springdemo/day02/Speak.class" new file mode 100644 index 0000000000000000000000000000000000000000..b308460104ae6f916c62c0b44bb6d2d3ad786259 GIT binary patch literal 290 zcmaKn&1%9>5QWdg{M49g@BvD@vt4*amo07zu7WNU_czJKUX3>rlR_WMmC%I`;6oKB zp=)R0Fy~|Dz+C@+F90S8eYEiCq3fYXa6h!s<&@AGysioMXPzoTFVaTMt9`7Bm5ehc z{U}dlww8si{XewJFMT9DM~M-oN-J?Z6xwW3wa-N=e@0`mJSe$)C-}>}DiSr*b(Y`I z;Z}aj05%-L)BONKSTBoAnvGb*Ta}b}fyIB+Mckai>ar7!2b{Mv=)}N+$LcZ$A3U%I P&Fr8JpB + + + + + + + + + + + + + + + + + + v1 + v2 + v3 + + + + + + + + s1 + s2 + s3 + + + p1 + p2 + p3 + + + \ No newline at end of file diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/3\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Demo.java" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/3\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Demo.java" new file mode 100644 index 0000000..90ee0c8 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/3\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/Demo.java" @@ -0,0 +1,87 @@ +package cn.tedu.spring.day03; + +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Component; + +import java.util.List; +import java.util.Map; +import java.util.Properties; +import java.util.Set; + +@Component +public class Demo { + //@Value("孙涛")// + @Value("${uname}")//配置外置文件, + private String name; + ///@Value("18") + @Value("${uage}")//语法:${properties配置文件中key值} test03测试的错误,这个地方语法用错了 + private int age; + @Value("#{@list1}") + private List list; + @Value("#{@set1}") + private Set set; + @Value("#{@map1}") + private Map map; + @Value("#{@properties1}") + private Properties properties; + + 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 List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public Set getSet() { + return set; + } + + public void setSet(Set set) { + this.set = set; + } + + public Map getMap() { + return map; + } + + public void setMap(Map map) { + this.map = map; + } + + public Properties getProperties() { + return properties; + } + + public void setProperties(Properties properties) { + this.properties = properties; + } + + @Override + public String toString() { + return "Demo{" + + "name='" + name + '\'' + + ", age=" + age + + ", list=" + list + + ", set=" + set + + ", map=" + map + + ", properties=" + properties + + '}'; + } +} diff --git "a/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/3\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/demo.properties" "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/3\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/demo.properties" new file mode 100644 index 0000000..6305330 --- /dev/null +++ "b/20202501104-\345\215\242\345\271\277\347\246\204-\344\275\234\344\270\232/3\344\275\234\344\270\232-20202501104-\345\215\242\345\271\277\347\246\204/demo.properties" @@ -0,0 +1,2 @@ +uname=\u5362\u5e7f\u7984 +uage=20 -- Gitee