diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/.gitignore" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/.gitignore"
new file mode 100644
index 0000000000000000000000000000000000000000..35410cacdc5e87f985c93a96520f5e11a5c822e4
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/.gitignore"
@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/artifacts/Day0609_war_exploded.xml" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/artifacts/Day0609_war_exploded.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..49d138fdb21d51b7a16c5221d78193540c45aeb2
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/artifacts/Day0609_war_exploded.xml"
@@ -0,0 +1,13 @@
+
+
+ $PROJECT_DIR$/out/artifacts/Day0609_war_exploded
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/dataSources.xml" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/dataSources.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..ba19978fd713e3238abfb22eacdf080f184f28e9
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.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/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/libraries/lib.xml" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/libraries/lib.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..23106033b23a0c8e5ae95ddf611aebd76dc3d72f
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/libraries/lib.xml"
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/misc.xml" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/misc.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..05483570e041eb648703359441d61bf9a5feeb13
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/misc.xml"
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/modules.xml" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/modules.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..4606445cd38c25c88f0bed23dbfb1a0208c4181d
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/.idea/modules.xml"
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/Day0609.iml" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/Day0609.iml"
new file mode 100644
index 0000000000000000000000000000000000000000..bc73df7611ec684b1bbe278ef7410a3c374a9849
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/Day0609.iml"
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/add.jsp" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/add.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..2cdb71774445bf98319c514bb7750b63025189f2
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/add.jsp"
@@ -0,0 +1,53 @@
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%--
+ Created by IntelliJ IDEA.
+ User: Administrator
+ Date: 2023-06-09
+ Time: 17:17
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ Title
+
+
+
+
+
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/Main.class" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/Main.class"
new file mode 100644
index 0000000000000000000000000000000000000000..baa3095135d94c33157ebcb8e4f7ff41bf99d277
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/Main.class" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/bean/HouseInfo.class" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/bean/HouseInfo.class"
new file mode 100644
index 0000000000000000000000000000000000000000..6aa5a48bc5fa61fb2d463aae52fdf2d5bdb5cb96
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/bean/HouseInfo.class" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/bean/HouseType.class" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/bean/HouseType.class"
new file mode 100644
index 0000000000000000000000000000000000000000..88bdcdc931a10cde63e8ea5f3abf585fa0909401
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/bean/HouseType.class" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/servlet/AddServlet.class" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/servlet/AddServlet.class"
new file mode 100644
index 0000000000000000000000000000000000000000..eb4a997156672ecf48f9b4072033b2d67d2b7398
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/servlet/AddServlet.class" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/servlet/ListServlet.class" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/servlet/ListServlet.class"
new file mode 100644
index 0000000000000000000000000000000000000000..a114b0d0abf91fc46da41237b538f165db46558b
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/servlet/ListServlet.class" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/utils/DBUtil.class" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/utils/DBUtil.class"
new file mode 100644
index 0000000000000000000000000000000000000000..8baae54864b2a18bb769899f7fa9bc35743346a8
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/classes/utils/DBUtil.class" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/lib/jstl.jar" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/lib/jstl.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..a02abecc8b888f09e4d1f9e4c9790dc482426d4f
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/lib/jstl.jar" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.8.jar" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.8.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..5a7c6fb070683d0afff5aaa43ad0f8a0340ea8c3
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.8.jar" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/lib/servlet-api.jar" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/lib/servlet-api.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..a8208fbb4a7d2db192f70f641b42c4d549b32084
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/lib/servlet-api.jar" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/lib/standard.jar" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/lib/standard.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..bc528acb949096eeb2e3048de1ff5b9ab12a66c5
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/lib/standard.jar" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/list.jsp" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/list.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..dc68250ce2c2c0a3cd8363301894bf4b7c135bb3
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/list.jsp"
@@ -0,0 +1,33 @@
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ Title
+
+
+
+
+
+ | 编号 |
+ 租赁方式 |
+ 租金(元) |
+ 联系人 |
+ 押金方式 |
+ 房屋类型 |
+ 详细地址 |
+
+
+
+
+ | ${house.id} |
+ ${house.leaseMode} |
+ ${house.rent} |
+ ${house.contacts} |
+ ${house.depositMethod} |
+ ${house.type} |
+ ${house.address} |
+
+
+
+
+
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/msg.jsp" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/msg.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..00e7c4dfd5d54710c680270b302c60d20d84b06a
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/msg.jsp"
@@ -0,0 +1,17 @@
+<%--
+ Created by IntelliJ IDEA.
+ User: Administrator
+ Date: 2023-06-09
+ Time: 17:37
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ Title
+
+
+${msg}
+
+
+
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/web.xml" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/web.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..d80081d1318531b6c30eaf0d748bf80a0b2e042a
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/WEB-INF/web.xml"
@@ -0,0 +1,6 @@
+
+
+
\ No newline at end of file
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/index.jsp" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/index.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..47f52b57fe9375bdee9fee574da0272a32670a36
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/artifacts/Day0609_war_exploded/index.jsp"
@@ -0,0 +1,16 @@
+<%--
+ Created by IntelliJ IDEA.
+ User: Administrator
+ Date: 2023-06-09
+ Time: 16:03
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ $Title$
+
+
+ $END$
+
+
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/Main.class" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/Main.class"
new file mode 100644
index 0000000000000000000000000000000000000000..baa3095135d94c33157ebcb8e4f7ff41bf99d277
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/Main.class" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/bean/HouseInfo.class" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/bean/HouseInfo.class"
new file mode 100644
index 0000000000000000000000000000000000000000..6aa5a48bc5fa61fb2d463aae52fdf2d5bdb5cb96
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/bean/HouseInfo.class" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/bean/HouseType.class" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/bean/HouseType.class"
new file mode 100644
index 0000000000000000000000000000000000000000..88bdcdc931a10cde63e8ea5f3abf585fa0909401
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/bean/HouseType.class" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/servlet/AddServlet.class" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/servlet/AddServlet.class"
new file mode 100644
index 0000000000000000000000000000000000000000..eb4a997156672ecf48f9b4072033b2d67d2b7398
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/servlet/AddServlet.class" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/servlet/ListServlet.class" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/servlet/ListServlet.class"
new file mode 100644
index 0000000000000000000000000000000000000000..a114b0d0abf91fc46da41237b538f165db46558b
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/servlet/ListServlet.class" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/utils/DBUtil.class" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/utils/DBUtil.class"
new file mode 100644
index 0000000000000000000000000000000000000000..8baae54864b2a18bb769899f7fa9bc35743346a8
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/out/production/Day0609/utils/DBUtil.class" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/Main.java" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/Main.java"
new file mode 100644
index 0000000000000000000000000000000000000000..3e59c38fbd57497a72e78859efacc67ac75869da
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/Main.java"
@@ -0,0 +1,5 @@
+public class Main {
+ public static void main(String[] args) {
+ System.out.println("Hello world!");
+ }
+}
\ No newline at end of file
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/bean/HouseInfo.java" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/bean/HouseInfo.java"
new file mode 100644
index 0000000000000000000000000000000000000000..fb27f6631c0cd5bc8de12e60a4926ad2df9ef2b7
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/bean/HouseInfo.java"
@@ -0,0 +1,104 @@
+package bean;
+
+public class HouseInfo {
+ private int id;
+ private String leaseMode; //租赁方式
+ private double rent; //租金(元)
+ private String contacts; // 联系人
+ private String depositMethod;//押金方式
+ private int typeId; //房屋类型
+ private String address;//地址
+ private String type;
+
+ public HouseInfo() {
+ }
+
+ @Override
+ public String toString() {
+ return "HouseInfo{" +
+ "id=" + id +
+ ", leaseMode='" + leaseMode + '\'' +
+ ", rent=" + rent +
+ ", contacts='" + contacts + '\'' +
+ ", depositMethod='" + depositMethod + '\'' +
+ ", typeId=" + typeId +
+ ", address='" + address + '\'' +
+ ", type='" + type + '\'' +
+ '}';
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getLeaseMode() {
+ return leaseMode;
+ }
+
+ public void setLeaseMode(String leaseMode) {
+ this.leaseMode = leaseMode;
+ }
+
+ public double getRent() {
+ return rent;
+ }
+
+ public void setRent(double rent) {
+ this.rent = rent;
+ }
+
+ public String getContacts() {
+ return contacts;
+ }
+
+ public void setContacts(String contacts) {
+ this.contacts = contacts;
+ }
+
+ public String getDepositMethod() {
+ return depositMethod;
+ }
+
+ public void setDepositMethod(String depositMethod) {
+ this.depositMethod = depositMethod;
+ }
+
+ public int getTypeId() {
+ return typeId;
+ }
+
+ public void setTypeId(int typeId) {
+ this.typeId = typeId;
+ }
+
+ public String getAddress() {
+ return address;
+ }
+
+ public void setAddress(String address) {
+ this.address = address;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public HouseInfo(int id, String leaseMode, double rent, String contacts, String depositMethod, int typeId, String address, String type) {
+ this.id = id;
+ this.leaseMode = leaseMode;
+ this.rent = rent;
+ this.contacts = contacts;
+ this.depositMethod = depositMethod;
+ this.typeId = typeId;
+ this.address = address;
+ this.type = type;
+ }
+}
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/bean/HouseType.java" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/bean/HouseType.java"
new file mode 100644
index 0000000000000000000000000000000000000000..bb3d73ebfa31d3286fc0d0fce836e96475d5b940
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/bean/HouseType.java"
@@ -0,0 +1,38 @@
+package bean;
+
+public class HouseType {
+ private int id;
+ private String type;
+
+ public HouseType(int id, String type) {
+ this.id = id;
+ this.type = type;
+ }
+
+ public HouseType() {
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ @Override
+ public String toString() {
+ return "HouseType{" +
+ "id=" + id +
+ ", type='" + type + '\'' +
+ '}';
+ }
+}
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/servlet/AddServlet.java" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/servlet/AddServlet.java"
new file mode 100644
index 0000000000000000000000000000000000000000..1faa967e78a200e366784691849caf961f35696e
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/servlet/AddServlet.java"
@@ -0,0 +1,68 @@
+package servlet;
+
+import bean.HouseInfo;
+import bean.HouseType;
+import utils.DBUtil;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.servlet.annotation.*;
+import java.io.IOException;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.ArrayList;
+
+@WebServlet("/add")
+public class AddServlet extends HttpServlet {
+ @Override
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+// 1. 编写sql语句 使用JSP显示
+ String sql = "select * from house_type ";
+// 2. 将sql语句 传给工具类
+ ResultSet re = DBUtil.query(sql);
+// 3. 设置一个集合,遍历结果集,封装成对象 再将对象添加到集合中
+ ArrayList list = new ArrayList<>();
+ try {
+ while (re.next()){
+ int id = re.getInt(1);
+ String type = re.getString(2);
+ HouseType hous = new HouseType(id, type);
+ list.add(hous);
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+// 4. 把集合添加request请求域中
+ request.setAttribute("list",list);
+// 5. 将请求转发给jSP
+ request.getRequestDispatcher("/WEB-INF/add.jsp").forward(request,response);
+
+ }
+
+ @Override
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ // 1 处理乱码
+ request.setCharacterEncoding("utf-8");
+ // 2 接收表单数据
+ String leaseMode = request.getParameter("leaseMode");
+ String rent = request.getParameter("rent");
+ String contacts = request.getParameter("contacts");
+ String depositMethod = request.getParameter("depositMethod");
+ String type = request.getParameter("type");
+ String address = request.getParameter("address");
+ // 3 编写sql
+ String sql = "insert into house_info values (?,?,?,?,?,?,?)";
+ // 4 调用工具类执行SQL,得到影响的行数
+ int i = DBUtil.update(sql, null, leaseMode, rent, contacts, depositMethod, type, address);
+ // 5 根据影响的行数,做判断提示
+ if (i>0){
+ // 使用响应的重定向可以直接刷新列表
+ response.sendRedirect("/list");
+ }else{
+ // 在request域中添加失败的提示信息
+ request.setAttribute("msg","添加失败");
+ // 5 将请求转发给jsp
+ request.getRequestDispatcher("/WEB-INF/msg.jsp").forward(request,response);
+ }
+}
+}
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/servlet/ListServlet.java" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/servlet/ListServlet.java"
new file mode 100644
index 0000000000000000000000000000000000000000..09aa0565948faaab744926bffb38f021831fc5d7
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/servlet/ListServlet.java"
@@ -0,0 +1,50 @@
+package servlet;
+
+import bean.HouseInfo;
+import utils.DBUtil;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.servlet.annotation.*;
+import java.io.IOException;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.ArrayList;
+
+@WebServlet("/list")
+public class ListServlet extends HttpServlet {
+ @Override
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+// 1. 编写sql语句 使用JSP显示
+ String sql = "select * from house_info i,house_type t where i.house_type_id = t.id";
+// 2. 将sql语句 传给工具类
+ ResultSet re = DBUtil.query(sql);
+// 3. 设置一个集合,遍历结果集,封装成对象 再将对象添加到集合中
+ ArrayList list = new ArrayList<>();
+ try {
+ while (re.next()){
+ int id = re.getInt(1);
+ String leaseMode = re.getString(2);
+ double rent = re.getDouble(3);
+ String contacts = re.getString(4);
+ String method = re.getString(5);
+ int typeId = re.getInt(6);
+ String address = re.getString(7);
+ String type = re.getString(9);
+ HouseInfo house = new HouseInfo(id, leaseMode, rent, contacts, method, typeId, address, type);
+ list.add(house);
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+// 4. 把集合添加request请求域中
+ request.setAttribute("list",list);
+// 5. 将请求转发给jSP
+ request.getRequestDispatcher("/WEB-INF/list.jsp").forward(request,response);
+ }
+
+ @Override
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+
+ }
+}
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/utils/DBUtil.java" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/utils/DBUtil.java"
new file mode 100644
index 0000000000000000000000000000000000000000..3eb7be14b5f3a8ffad88fab45ad4ff994534b36b
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/src/utils/DBUtil.java"
@@ -0,0 +1,64 @@
+package utils;
+
+import java.sql.*;
+
+/**
+ * 工具类 都是static 类
+ */
+public class DBUtil {
+// 1. 定义数据库地址
+ static String url = "jdbc:mysql:///test?characterEncoding=utf8";
+ static String user = "root";
+ static String PWD = "root";
+// 2. 注册驱动
+ static {
+ try {
+ Class.forName("com.mysql.jdbc.Driver");
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ }
+}
+// 3. 获取连接对象
+ public static Connection getConn() throws SQLException {
+ Connection conn = DriverManager.getConnection(url, user, PWD);
+ return conn;
+ }
+// 4. 通用的查询方法 返回结果集
+ public static ResultSet query(String sql,Object...keys){
+ ResultSet re = null;
+ try {
+ Connection conn = getConn();
+// 获取执行sql语句的pst
+ PreparedStatement pst = conn.prepareStatement(sql);
+// 遍历keys值
+ for (int i = 0; i < keys.length; i++) {
+ pst.setObject((i+1),keys[i]);
+ }
+// pst 执行sql得到结果集
+ re = pst.executeQuery();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+// 返回结果集
+ return re;
+ }
+// 5. 通用的update
+ public static int update(String sql,Object...keys){
+ int re = 0;
+ try {
+ Connection conn = getConn();
+// 获取执行sql语句的pst
+ PreparedStatement pst = conn.prepareStatement(sql);
+// 遍历keys值
+ for (int i = 0; i < keys.length; i++) {
+ pst.setObject((i+1),keys[i]);
+ }
+// pst 执行sql得到结果集
+ re = pst.executeUpdate();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+// 返回结果集
+ return re;
+}
+}
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/add.jsp" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/add.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..2cdb71774445bf98319c514bb7750b63025189f2
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/add.jsp"
@@ -0,0 +1,53 @@
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%--
+ Created by IntelliJ IDEA.
+ User: Administrator
+ Date: 2023-06-09
+ Time: 17:17
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ Title
+
+
+
+
+
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/lib/jstl.jar" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/lib/jstl.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..a02abecc8b888f09e4d1f9e4c9790dc482426d4f
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/lib/jstl.jar" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/lib/mysql-connector-java-5.1.8.jar" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/lib/mysql-connector-java-5.1.8.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..5a7c6fb070683d0afff5aaa43ad0f8a0340ea8c3
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/lib/mysql-connector-java-5.1.8.jar" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/lib/servlet-api.jar" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/lib/servlet-api.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..a8208fbb4a7d2db192f70f641b42c4d549b32084
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/lib/servlet-api.jar" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/lib/standard.jar" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/lib/standard.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..bc528acb949096eeb2e3048de1ff5b9ab12a66c5
Binary files /dev/null and "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/lib/standard.jar" differ
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/list.jsp" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/list.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..12286319be1155f13318aa230ca5757830ab4aca
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/list.jsp"
@@ -0,0 +1,37 @@
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ Title
+
+
+
+
+
+ | 编号 |
+ 租赁方式 |
+ 租金(元) |
+ 联系人 |
+ 押金方式 |
+ 房屋类型 |
+ 详细地址 |
+ 操作 |
+
+
+
+
+ | ${house.id} |
+ ${house.leaseMode} |
+ ${house.rent} |
+ ${house.contacts} |
+ ${house.depositMethod} |
+ ${house.type} |
+ ${house.address} |
+
+
+
+
+
+
+
+
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/msg.jsp" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/msg.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..00e7c4dfd5d54710c680270b302c60d20d84b06a
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/msg.jsp"
@@ -0,0 +1,17 @@
+<%--
+ Created by IntelliJ IDEA.
+ User: Administrator
+ Date: 2023-06-09
+ Time: 17:37
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ Title
+
+
+${msg}
+
+
+
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/web.xml" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/web.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..d80081d1318531b6c30eaf0d748bf80a0b2e042a
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/WEB-INF/web.xml"
@@ -0,0 +1,6 @@
+
+
+
\ No newline at end of file
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/index.jsp" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/index.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..47f52b57fe9375bdee9fee574da0272a32670a36
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/web/index.jsp"
@@ -0,0 +1,16 @@
+<%--
+ Created by IntelliJ IDEA.
+ User: Administrator
+ Date: 2023-06-09
+ Time: 16:03
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ $Title$
+
+
+ $END$
+
+
diff --git "a/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/\346\210\277\346\272\220.sql" "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/\346\210\277\346\272\220.sql"
new file mode 100644
index 0000000000000000000000000000000000000000..b3faa947ce23e05ab83322aff063664bbc69bcdb
--- /dev/null
+++ "b/14 \346\235\216\344\277\212\345\205\264/Day0609 \347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/\346\210\277\346\272\220.sql"
@@ -0,0 +1,33 @@
+# 数据库名称:test
+create database test charset utf8;
+use test;
+# house_type表
+create table house_type
+(
+ id int primary key auto_increment, # 主键,自动增长列 编号
+ type varchar(50) # 房屋类型
+);
+# 为 house_type 表插入数据
+insert into house_type values
+ (null,'三室一厅两卫'),
+ (null,'两室一厅一卫'),
+ (null,'三室一厅一卫'),
+ (null,'四室两厅两卫');
+
+# 表:house_info (房源信息表)
+create table house_info (
+ id int primary key auto_increment , # 编号主键,自动增长列
+ lease_mode varchar(50), # 租赁方式可以为空
+ rent double not null , # 租金不允许为空
+ contacts varchar(20) , # 联系人可以为空
+ deposit_method varchar(20) , # 押金方式可以为空
+ house_type_id int , # 房屋类型外键
+ address varchar(200) not null , # 详细地址不允许为空
+ foreign key (house_type_id) references house_type(id)
+);
+# 为 house_info 插入数据
+insert into house_info values
+ (null,'合租',1800,'李青','押一付一',1,'福建省龙岩市长汀县大同镇江滨中路41号'),
+ (null,'单租',1400,'艾希','押三付二',2,'福建省龙岩市长汀县大同镇江滨中路'),
+ (null,'整租',4000,'夏梦','押一付二',4,'福建省龙岩市长汀县大同镇'),
+ (null,'合租',2000,'林青','押零付一',3,'福建省龙岩市长汀县');