From b46b1b7b5f70c6de22e7871c4aa87607c89054b2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AE=87=E5=AE=99=E8=B6=85=E7=BA=A7=E6=97=A0=E6=95=8C?=
=?UTF-8?q?=E6=9A=B4=E9=BE=99=E6=9C=BA=E5=85=BD?= <2329060957@qq.com>
Date: Sun, 18 Dec 2022 14:29:54 +0800
Subject: [PATCH] =?UTF-8?q?feature:=20=E8=BD=AF=E4=BB=B620-25=E4=B8=B0?=
=?UTF-8?q?=E4=BB=B2=E7=A7=8B=E7=9A=84=E4=BD=9C=E4=B8=9A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...-\344\270\260\344\273\262\347\247\213.sql" | 14 ++
.../zuoye2/.idea/.gitignore" | 8 ++
.../zuoye2/.idea/compiler.xml" | 13 ++
.../zuoye2/.idea/encodings.xml" | 7 +
.../zuoye2/.idea/jarRepositories.xml" | 20 +++
.../zuoye2/.idea/misc.xml" | 17 +++
"\344\275\234\344\270\2322/zuoye2/pom.xml" | 32 +++++
.../zuoye2/src/main/java/dier/Cat.java" | 4 +
.../zuoye2/src/main/java/dier/Context.java" | 50 +++++++
.../zuoye2/src/main/java/dier/Dog.java" | 4 +
.../zuoye2/src/main/java/dier/Tiger.java" | 4 +
.../zuoye2/src/main/java/dier/Zuoye.java" | 16 +++
.../src/main/resources/application.xml" | 11 ++
.../zuoye2/src/main/webapp/WEB-INF/web.xml" | 7 +
.../zuoye2/src/main/webapp/index.jsp" | 5 +
.../zuoye3/.idea/compiler.xml" | 13 ++
.../zuoye3/.idea/encodings.xml" | 8 ++
.../zuoye3/.idea/jarRepositories.xml" | 20 +++
.../zuoye3/.idea/misc.xml" | 17 +++
.../zuoye3/.idea/vcs.xml" | 6 +
.../zuoye3/.idea/workspace.xml" | 134 ++++++++++++++++++
"\344\275\234\344\270\2323/zuoye3/pom.xml" | 38 +++++
.../zuoye3/src/main/java/fzq/Demo.java" | 19 +++
.../zuoye3/src/main/java/fzq/Test.java" | 15 ++
.../zuoye3/src/main/resources/beans.xml" | 8 ++
.../src/main/resources/demo.properties" | 1 +
.../zuoye3/src/main/webapp/WEB-INF/web.xml" | 7 +
.../zuoye3/src/main/webapp/index.jsp" | 5 +
28 files changed, 503 insertions(+)
create mode 100644 "\344\275\234\344\270\2321/1.20202501358-\344\270\260\344\273\262\347\247\213.sql"
create mode 100644 "\344\275\234\344\270\2322/zuoye2/.idea/.gitignore"
create mode 100644 "\344\275\234\344\270\2322/zuoye2/.idea/compiler.xml"
create mode 100644 "\344\275\234\344\270\2322/zuoye2/.idea/encodings.xml"
create mode 100644 "\344\275\234\344\270\2322/zuoye2/.idea/jarRepositories.xml"
create mode 100644 "\344\275\234\344\270\2322/zuoye2/.idea/misc.xml"
create mode 100644 "\344\275\234\344\270\2322/zuoye2/pom.xml"
create mode 100644 "\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Cat.java"
create mode 100644 "\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Context.java"
create mode 100644 "\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Dog.java"
create mode 100644 "\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Tiger.java"
create mode 100644 "\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Zuoye.java"
create mode 100644 "\344\275\234\344\270\2322/zuoye2/src/main/resources/application.xml"
create mode 100644 "\344\275\234\344\270\2322/zuoye2/src/main/webapp/WEB-INF/web.xml"
create mode 100644 "\344\275\234\344\270\2322/zuoye2/src/main/webapp/index.jsp"
create mode 100644 "\344\275\234\344\270\2323/zuoye3/.idea/compiler.xml"
create mode 100644 "\344\275\234\344\270\2323/zuoye3/.idea/encodings.xml"
create mode 100644 "\344\275\234\344\270\2323/zuoye3/.idea/jarRepositories.xml"
create mode 100644 "\344\275\234\344\270\2323/zuoye3/.idea/misc.xml"
create mode 100644 "\344\275\234\344\270\2323/zuoye3/.idea/vcs.xml"
create mode 100644 "\344\275\234\344\270\2323/zuoye3/.idea/workspace.xml"
create mode 100644 "\344\275\234\344\270\2323/zuoye3/pom.xml"
create mode 100644 "\344\275\234\344\270\2323/zuoye3/src/main/java/fzq/Demo.java"
create mode 100644 "\344\275\234\344\270\2323/zuoye3/src/main/java/fzq/Test.java"
create mode 100644 "\344\275\234\344\270\2323/zuoye3/src/main/resources/beans.xml"
create mode 100644 "\344\275\234\344\270\2323/zuoye3/src/main/resources/demo.properties"
create mode 100644 "\344\275\234\344\270\2323/zuoye3/src/main/webapp/WEB-INF/web.xml"
create mode 100644 "\344\275\234\344\270\2323/zuoye3/src/main/webapp/index.jsp"
diff --git "a/\344\275\234\344\270\2321/1.20202501358-\344\270\260\344\273\262\347\247\213.sql" "b/\344\275\234\344\270\2321/1.20202501358-\344\270\260\344\273\262\347\247\213.sql"
new file mode 100644
index 0000000..929109e
--- /dev/null
+++ "b/\344\275\234\344\270\2321/1.20202501358-\344\270\260\344\273\262\347\247\213.sql"
@@ -0,0 +1,14 @@
+CREATE DATABASE MI CHARACTER set='gbk';
+CREATE table if not exists `注册表`(
+`ID` int(5),
+`名字` VARCHAR(18),
+`性别` VARCHAR(3),
+`日期` varchar(8)
+)ENGINE INNODB CHARSET='gbk';
+INSERT INTO `注册表` VALUES(1,"丰仲秋","男","20221201");
+INSERT INTO `注册表` VALUES(2,"王昕照","男","20221202");
+INSERT INTO `注册表` VALUES(3,"李佳佳","男","20221203");
+INSERT INTO `注册表` VALUES(4,"王旭","男","20221204");
+INSERT INTO `注册表` (性别) VALUE("女");
+UPDATE `注册表` set `性别`="女" where ID=3;
+UPDATE `注册表` set `名字`="阿丽娜" where ID=2
\ No newline at end of file
diff --git "a/\344\275\234\344\270\2322/zuoye2/.idea/.gitignore" "b/\344\275\234\344\270\2322/zuoye2/.idea/.gitignore"
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ "b/\344\275\234\344\270\2322/zuoye2/.idea/.gitignore"
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git "a/\344\275\234\344\270\2322/zuoye2/.idea/compiler.xml" "b/\344\275\234\344\270\2322/zuoye2/.idea/compiler.xml"
new file mode 100644
index 0000000..3299dfa
--- /dev/null
+++ "b/\344\275\234\344\270\2322/zuoye2/.idea/compiler.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\344\275\234\344\270\2322/zuoye2/.idea/encodings.xml" "b/\344\275\234\344\270\2322/zuoye2/.idea/encodings.xml"
new file mode 100644
index 0000000..aa00ffa
--- /dev/null
+++ "b/\344\275\234\344\270\2322/zuoye2/.idea/encodings.xml"
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\344\275\234\344\270\2322/zuoye2/.idea/jarRepositories.xml" "b/\344\275\234\344\270\2322/zuoye2/.idea/jarRepositories.xml"
new file mode 100644
index 0000000..712ab9d
--- /dev/null
+++ "b/\344\275\234\344\270\2322/zuoye2/.idea/jarRepositories.xml"
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\344\275\234\344\270\2322/zuoye2/.idea/misc.xml" "b/\344\275\234\344\270\2322/zuoye2/.idea/misc.xml"
new file mode 100644
index 0000000..79a352f
--- /dev/null
+++ "b/\344\275\234\344\270\2322/zuoye2/.idea/misc.xml"
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\344\275\234\344\270\2322/zuoye2/pom.xml" "b/\344\275\234\344\270\2322/zuoye2/pom.xml"
new file mode 100644
index 0000000..bc98e5d
--- /dev/null
+++ "b/\344\275\234\344\270\2322/zuoye2/pom.xml"
@@ -0,0 +1,32 @@
+
+ 4.0.0
+ org.example
+ zuoye2
+ war
+ 1.0-SNAPSHOT
+ zuoye2 Maven Webapp
+ http://maven.apache.org
+
+
+ junit
+ junit
+ 3.8.1
+ test
+
+
+ org.springframework
+ spring-context
+ 5.3.18
+
+
+ org.junit.jupiter
+ junit-jupiter
+ RELEASE
+ compile
+
+
+
+ zuoye2
+
+
diff --git "a/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Cat.java" "b/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Cat.java"
new file mode 100644
index 0000000..704c677
--- /dev/null
+++ "b/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Cat.java"
@@ -0,0 +1,4 @@
+package dier;
+
+public class Cat {
+}
diff --git "a/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Context.java" "b/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Context.java"
new file mode 100644
index 0000000..509f027
--- /dev/null
+++ "b/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Context.java"
@@ -0,0 +1,50 @@
+package dier;
+
+public class Context {
+ private Cat cat;
+ private Cat cat2;
+ private Dog dog;
+ private Tiger tiger;
+
+ public Cat getCat() {
+ return cat;
+ }
+
+ public void setCat(Cat cat) {
+ this.cat = cat;
+ }
+
+ public Dog getDog() {
+ return dog;
+ }
+
+ public void setDog(Dog dog) {
+ this.dog = dog;
+ }
+
+ public Tiger getTiger() {
+ return tiger;
+ }
+
+ public void setTiger(Tiger tiger) {
+ this.tiger = tiger;
+ }
+
+ public Cat getCat2() {
+ return cat2;
+ }
+
+ public void setCat2(Cat cat2) {
+ this.cat2 = cat2;
+ }
+
+ @Override
+ public String toString() {
+ return "Context{" +
+ "cat=" + cat +
+ ", cat2=" + cat2 +
+ ", dog=" + dog +
+ ", tiger=" + tiger +
+ '}';
+ }
+}
diff --git "a/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Dog.java" "b/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Dog.java"
new file mode 100644
index 0000000..f3e6c0c
--- /dev/null
+++ "b/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Dog.java"
@@ -0,0 +1,4 @@
+package dier;
+
+public class Dog {
+}
diff --git "a/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Tiger.java" "b/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Tiger.java"
new file mode 100644
index 0000000..70d6f13
--- /dev/null
+++ "b/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Tiger.java"
@@ -0,0 +1,4 @@
+package dier;
+
+public class Tiger {
+}
diff --git "a/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Zuoye.java" "b/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Zuoye.java"
new file mode 100644
index 0000000..fd23c39
--- /dev/null
+++ "b/\344\275\234\344\270\2322/zuoye2/src/main/java/dier/Zuoye.java"
@@ -0,0 +1,16 @@
+package dier;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.context.ApplicationContext;
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+public class Zuoye {
+ @Test
+ public void test00()
+ {
+ ApplicationContext ac =new ClassPathXmlApplicationContext("application.xml");
+ Context ct=(Context) ac.getBean("context");
+ System.out.println(ct);
+ ((ClassPathXmlApplicationContext)ac).close();
+ }
+}
diff --git "a/\344\275\234\344\270\2322/zuoye2/src/main/resources/application.xml" "b/\344\275\234\344\270\2322/zuoye2/src/main/resources/application.xml"
new file mode 100644
index 0000000..22ea75e
--- /dev/null
+++ "b/\344\275\234\344\270\2322/zuoye2/src/main/resources/application.xml"
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\344\275\234\344\270\2322/zuoye2/src/main/webapp/WEB-INF/web.xml" "b/\344\275\234\344\270\2322/zuoye2/src/main/webapp/WEB-INF/web.xml"
new file mode 100644
index 0000000..9f88c1f
--- /dev/null
+++ "b/\344\275\234\344\270\2322/zuoye2/src/main/webapp/WEB-INF/web.xml"
@@ -0,0 +1,7 @@
+
+
+
+ Archetype Created Web Application
+
diff --git "a/\344\275\234\344\270\2322/zuoye2/src/main/webapp/index.jsp" "b/\344\275\234\344\270\2322/zuoye2/src/main/webapp/index.jsp"
new file mode 100644
index 0000000..c38169b
--- /dev/null
+++ "b/\344\275\234\344\270\2322/zuoye2/src/main/webapp/index.jsp"
@@ -0,0 +1,5 @@
+
+
+Hello World!
+
+
diff --git "a/\344\275\234\344\270\2323/zuoye3/.idea/compiler.xml" "b/\344\275\234\344\270\2323/zuoye3/.idea/compiler.xml"
new file mode 100644
index 0000000..0ce11bc
--- /dev/null
+++ "b/\344\275\234\344\270\2323/zuoye3/.idea/compiler.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\344\275\234\344\270\2323/zuoye3/.idea/encodings.xml" "b/\344\275\234\344\270\2323/zuoye3/.idea/encodings.xml"
new file mode 100644
index 0000000..63574ec
--- /dev/null
+++ "b/\344\275\234\344\270\2323/zuoye3/.idea/encodings.xml"
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\344\275\234\344\270\2323/zuoye3/.idea/jarRepositories.xml" "b/\344\275\234\344\270\2323/zuoye3/.idea/jarRepositories.xml"
new file mode 100644
index 0000000..712ab9d
--- /dev/null
+++ "b/\344\275\234\344\270\2323/zuoye3/.idea/jarRepositories.xml"
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\344\275\234\344\270\2323/zuoye3/.idea/misc.xml" "b/\344\275\234\344\270\2323/zuoye3/.idea/misc.xml"
new file mode 100644
index 0000000..79a352f
--- /dev/null
+++ "b/\344\275\234\344\270\2323/zuoye3/.idea/misc.xml"
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\344\275\234\344\270\2323/zuoye3/.idea/vcs.xml" "b/\344\275\234\344\270\2323/zuoye3/.idea/vcs.xml"
new file mode 100644
index 0000000..6c0b863
--- /dev/null
+++ "b/\344\275\234\344\270\2323/zuoye3/.idea/vcs.xml"
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\344\275\234\344\270\2323/zuoye3/.idea/workspace.xml" "b/\344\275\234\344\270\2323/zuoye3/.idea/workspace.xml"
new file mode 100644
index 0000000..0365a61
--- /dev/null
+++ "b/\344\275\234\344\270\2323/zuoye3/.idea/workspace.xml"
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1671340567295
+
+
+ 1671340567295
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\344\275\234\344\270\2323/zuoye3/pom.xml" "b/\344\275\234\344\270\2323/zuoye3/pom.xml"
new file mode 100644
index 0000000..930ca6f
--- /dev/null
+++ "b/\344\275\234\344\270\2323/zuoye3/pom.xml"
@@ -0,0 +1,38 @@
+
+ 4.0.0
+ org.example
+ zuoye3
+ war
+ 1.0-SNAPSHOT
+ zuoye3 Maven Webapp
+ http://maven.apache.org
+
+
+ junit
+ junit
+ 3.8.1
+ test
+
+
+ org.springframework
+ spring-context
+ 5.3.18
+
+
+ org.junit.jupiter
+ junit-jupiter
+ RELEASE
+ compile
+
+
+ org.junit.jupiter
+ junit-jupiter
+ RELEASE
+ compile
+
+
+
+ zuoye3
+
+
diff --git "a/\344\275\234\344\270\2323/zuoye3/src/main/java/fzq/Demo.java" "b/\344\275\234\344\270\2323/zuoye3/src/main/java/fzq/Demo.java"
new file mode 100644
index 0000000..cdaa8ef
--- /dev/null
+++ "b/\344\275\234\344\270\2323/zuoye3/src/main/java/fzq/Demo.java"
@@ -0,0 +1,19 @@
+package fzq;
+
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.PropertySource;
+import org.springframework.stereotype.Component;
+
+@Component
+public class Demo {
+ @Value("${name}")//配置外置文件,扫描,指定位置 方便查找修改
+ private String name;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
diff --git "a/\344\275\234\344\270\2323/zuoye3/src/main/java/fzq/Test.java" "b/\344\275\234\344\270\2323/zuoye3/src/main/java/fzq/Test.java"
new file mode 100644
index 0000000..39b4354
--- /dev/null
+++ "b/\344\275\234\344\270\2323/zuoye3/src/main/java/fzq/Test.java"
@@ -0,0 +1,15 @@
+package fzq;
+
+import org.springframework.context.ApplicationContext;
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+public class Test {
+ @org.junit.jupiter.api.Test
+ public void test02()
+ {
+ ApplicationContext ac =new ClassPathXmlApplicationContext("beans.xml");
+ Demo demo=(Demo) ac.getBean("demo");
+ System.out.println("FZQ:"+demo.getName());
+ ((ClassPathXmlApplicationContext)ac).close();
+ }
+}
diff --git "a/\344\275\234\344\270\2323/zuoye3/src/main/resources/beans.xml" "b/\344\275\234\344\270\2323/zuoye3/src/main/resources/beans.xml"
new file mode 100644
index 0000000..79485ff
--- /dev/null
+++ "b/\344\275\234\344\270\2323/zuoye3/src/main/resources/beans.xml"
@@ -0,0 +1,8 @@
+
+
+
+
+
\ No newline at end of file
diff --git "a/\344\275\234\344\270\2323/zuoye3/src/main/resources/demo.properties" "b/\344\275\234\344\270\2323/zuoye3/src/main/resources/demo.properties"
new file mode 100644
index 0000000..03fa77d
--- /dev/null
+++ "b/\344\275\234\344\270\2323/zuoye3/src/main/resources/demo.properties"
@@ -0,0 +1 @@
+name=丰仲秋
\ No newline at end of file
diff --git "a/\344\275\234\344\270\2323/zuoye3/src/main/webapp/WEB-INF/web.xml" "b/\344\275\234\344\270\2323/zuoye3/src/main/webapp/WEB-INF/web.xml"
new file mode 100644
index 0000000..9f88c1f
--- /dev/null
+++ "b/\344\275\234\344\270\2323/zuoye3/src/main/webapp/WEB-INF/web.xml"
@@ -0,0 +1,7 @@
+
+
+
+ Archetype Created Web Application
+
diff --git "a/\344\275\234\344\270\2323/zuoye3/src/main/webapp/index.jsp" "b/\344\275\234\344\270\2323/zuoye3/src/main/webapp/index.jsp"
new file mode 100644
index 0000000..c38169b
--- /dev/null
+++ "b/\344\275\234\344\270\2323/zuoye3/src/main/webapp/index.jsp"
@@ -0,0 +1,5 @@
+
+
+Hello World!
+
+
--
Gitee