diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/.gitignore" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/.gitignore"
new file mode 100644
index 0000000000000000000000000000000000000000..35410cacdc5e87f985c93a96520f5e11a5c822e4
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/.gitignore"
@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/artifacts/untitled7_war_exploded.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/artifacts/untitled7_war_exploded.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..6b90c7c1367993e563d04ef923a608760918827b
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/artifacts/untitled7_war_exploded.xml"
@@ -0,0 +1,13 @@
+
+
+ $PROJECT_DIR$/out/artifacts/untitled7_war_exploded
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/dataSources.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/dataSources.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..3c9fde8bcdee8ad09ec7988d2f23f9ab611b4334
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.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/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/libraries/lib.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/libraries/lib.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..23106033b23a0c8e5ae95ddf611aebd76dc3d72f
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/libraries/lib.xml"
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/misc.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/misc.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..05483570e041eb648703359441d61bf9a5feeb13
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/misc.xml"
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/modules.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/modules.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..2659b24ee291e98687c15d576cc7771385509ca8
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/modules.xml"
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/uiDesigner.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/uiDesigner.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..2b63946d5b31084bbb7dda418ceb3d75eb686373
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/.idea/uiDesigner.xml"
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/add.jsp" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/add.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..924571cfb7748dcc180c7c38e34fa5b90ed2df2b
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/add.jsp"
@@ -0,0 +1,41 @@
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%--
+ Created by IntelliJ IDEA.
+ User: 春风
+ Date: 2023/6/10
+ Time: 10:05
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ 添加房源
+
+
+
+
+
+
+
+ | 编号 |
+ 租赁方式 |
+ 租金 |
+ 联系人 |
+ 押金方式 |
+ 房屋类型 |
+ 详细地址 |
+
+
+
+ | ${h.id} |
+ ${h.lease_mode} |
+ ${h.rent} |
+ ${h.contacts} |
+ ${h.deposit_method} |
+ ${h.house_type_id} |
+ ${h.address} |
+
+
+
+
+
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/classes/bean/House_info.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/classes/bean/House_info.class"
new file mode 100644
index 0000000000000000000000000000000000000000..f105a0f3c697933204f01e2e0f466c488eebd42a
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/classes/bean/House_info.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/classes/bean/House_type.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/classes/bean/House_type.class"
new file mode 100644
index 0000000000000000000000000000000000000000..5e0894b13ebd37e01b1e1f5fe82aec728f7e3ec3
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/classes/bean/House_type.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/classes/servlet/List.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/classes/servlet/List.class"
new file mode 100644
index 0000000000000000000000000000000000000000..323fef15708ef373c2f6c90a0c4f30dfc178667e
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/classes/servlet/List.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/classes/util/DBUtil.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/classes/util/DBUtil.class"
new file mode 100644
index 0000000000000000000000000000000000000000..2c63cb97582263760c6a84fb90915a907f272e3a
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/classes/util/DBUtil.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/lib/jstl.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/lib/jstl.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..a02abecc8b888f09e4d1f9e4c9790dc482426d4f
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/lib/jstl.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.8.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_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/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.8.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/lib/servlet-api.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/lib/servlet-api.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..daf690af39e115e15974b23843a3987eb3089e18
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/lib/servlet-api.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/lib/standard.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/lib/standard.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..bc528acb949096eeb2e3048de1ff5b9ab12a66c5
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/lib/standard.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/list.jsp" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/list.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..23631a5bcca61613f857db0abba5a34419019091
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/list.jsp"
@@ -0,0 +1,16 @@
+<%--
+ Created by IntelliJ IDEA.
+ User: 春风
+ Date: 2023/6/10
+ Time: 8:50
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ Title
+
+
+
+
+
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/web.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/web.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..d80081d1318531b6c30eaf0d748bf80a0b2e042a
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/WEB-INF/web.xml"
@@ -0,0 +1,6 @@
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/index.jsp" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/index.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..b29bcf4abc21d1ddfdf4036e2e54fb2c7042428a
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/artifacts/untitled7_war_exploded/index.jsp"
@@ -0,0 +1,16 @@
+<%--
+ Created by IntelliJ IDEA.
+ User: 春风
+ Date: 2023/6/10
+ Time: 8:49
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ $Title$
+
+
+ $END$
+
+
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/production/untitled7/bean/House_info.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/production/untitled7/bean/House_info.class"
new file mode 100644
index 0000000000000000000000000000000000000000..f105a0f3c697933204f01e2e0f466c488eebd42a
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/production/untitled7/bean/House_info.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/production/untitled7/bean/House_type.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/production/untitled7/bean/House_type.class"
new file mode 100644
index 0000000000000000000000000000000000000000..5e0894b13ebd37e01b1e1f5fe82aec728f7e3ec3
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/production/untitled7/bean/House_type.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/production/untitled7/servlet/List.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/production/untitled7/servlet/List.class"
new file mode 100644
index 0000000000000000000000000000000000000000..323fef15708ef373c2f6c90a0c4f30dfc178667e
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/production/untitled7/servlet/List.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/production/untitled7/util/DBUtil.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/production/untitled7/util/DBUtil.class"
new file mode 100644
index 0000000000000000000000000000000000000000..2c63cb97582263760c6a84fb90915a907f272e3a
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/out/production/untitled7/util/DBUtil.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/src/bean/House_info.java" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/src/bean/House_info.java"
new file mode 100644
index 0000000000000000000000000000000000000000..33db5455d58a8f828307d51f491602910e17c63a
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/src/bean/House_info.java"
@@ -0,0 +1,104 @@
+package bean;
+
+public class House_info {
+ private int id;
+ private String lease_mode;
+ private double rent;
+ private String contacts;
+ private String deposit_method;
+ private int house_type_id;
+ private String address;
+ private String type;
+
+ public House_info() {
+ }
+
+ public House_info(int id, String lease_mode, double rent, String contacts, String deposit_method, int house_type_id, String address, String type) {
+ this.id = id;
+ this.lease_mode = lease_mode;
+ this.rent = rent;
+ this.contacts = contacts;
+ this.deposit_method = deposit_method;
+ this.house_type_id = house_type_id;
+ this.address = address;
+ this.type = type;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getLease_mode() {
+ return lease_mode;
+ }
+
+ public void setLease_mode(String lease_mode) {
+ this.lease_mode = lease_mode;
+ }
+
+ 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 getDeposit_method() {
+ return deposit_method;
+ }
+
+ public void setDeposit_method(String deposit_method) {
+ this.deposit_method = deposit_method;
+ }
+
+ public int getHouse_type_id() {
+ return house_type_id;
+ }
+
+ public void setHouse_type_id(int house_type_id) {
+ this.house_type_id = house_type_id;
+ }
+
+ 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;
+ }
+
+ @Override
+ public String toString() {
+ return "House_info{" +
+ "id=" + id +
+ ", lease_mode='" + lease_mode + '\'' +
+ ", rent=" + rent +
+ ", contacts='" + contacts + '\'' +
+ ", deposit_method='" + deposit_method + '\'' +
+ ", house_type_id=" + house_type_id +
+ ", address='" + address + '\'' +
+ ", type='" + type + '\'' +
+ '}';
+ }
+}
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/src/bean/House_type.java" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/src/bean/House_type.java"
new file mode 100644
index 0000000000000000000000000000000000000000..3788b9b1e7313b102e11f72e8697965aeb2c4bce
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/src/bean/House_type.java"
@@ -0,0 +1,38 @@
+package bean;
+
+public class House_type {
+ private int id;
+ private String type;
+
+ public House_type() {
+ }
+
+ public House_type(int id, String type) {
+ this.id = id;
+ this.type = type;
+ }
+
+ 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 "House_type{" +
+ "id=" + id +
+ ", type='" + type + '\'' +
+ '}';
+ }
+}
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/src/servlet/List.java" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/src/servlet/List.java"
new file mode 100644
index 0000000000000000000000000000000000000000..6d0c185eeae0c72dba562d99807d0a15bffa6a7e
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/src/servlet/List.java"
@@ -0,0 +1,46 @@
+package servlet;
+
+import bean.House_info;
+import util.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 List extends HttpServlet {
+ @Override
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ String sql ="select * from house_info i, house_type t where i.house_type_id=t.id";
+ ResultSet rs = DBUtil.query(sql);
+ ArrayList list=new ArrayList<>();
+ try {
+ while(rs.next()){
+ int id = rs.getInt("i.id");
+ int typeId = rs.getInt(6);
+ String mode = rs.getString(2);
+ double rent = rs.getDouble(3);
+ String contact = rs.getString(4);
+ String method = rs.getString(5);
+ String address = rs.getString(7);
+ String type = rs.getString(9);
+ House_info info = new House_info(id, mode, rent, contact, method, typeId, address, type);
+ list.add(info);
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ request.setAttribute("list",list);
+ request.getRequestDispatcher("/WEB-INF/list.jsp").forward(request,response);
+
+ }
+
+ @Override
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+
+ }
+}
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/src/util/DBUtil.java" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/src/util/DBUtil.java"
new file mode 100644
index 0000000000000000000000000000000000000000..303575583ea665aff55c2f42b920a683fe6fe5aa
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/src/util/DBUtil.java"
@@ -0,0 +1,69 @@
+package util;
+
+import java.sql.*;
+
+public class DBUtil {
+ static String url = "jdbc:mysql:///characterEncoding=utf8";
+ static String user = "root";
+ static String pwd = "root";
+
+ static {
+ try {
+ Class.forName("com.mysql.jdbc.Driver");
+ } catch (ClassNotFoundException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ public static Connection getCon() throws SQLException {
+ Connection con = DriverManager.getConnection(url, user, pwd);
+ return con;
+ }
+
+ public static ResultSet query(String sql, Object... keys) {
+ ResultSet rs = null;
+ try {
+ Connection con = getCon();
+ PreparedStatement pst = con.prepareStatement(sql);
+ for (int i = 0; i < keys.length; i++) {
+ pst.setObject((i + 1), keys[i]);
+ }
+ rs = pst.executeQuery();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return rs;
+ }
+
+ public static int update(String sql, Object... keys) {
+ int rs = 0;
+ try {
+ Connection con = getCon();
+ PreparedStatement pst = con.prepareStatement(sql);
+ for (int i = 0; i < keys.length; i++) {
+ pst.setObject((i + 1), keys[i]);
+ }
+ rs = pst.executeUpdate();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return rs;
+ }
+
+ public static void close(Connection con, PreparedStatement pst, ResultSet rs) {
+ try {
+ if (rs != null) {
+ rs.close();
+ }
+ if (pst != null) {
+ pst.close();
+ }
+ if (con != null) {
+ con.close();
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+
+ }
+}
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/untitled7.iml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/untitled7.iml"
new file mode 100644
index 0000000000000000000000000000000000000000..bc73df7611ec684b1bbe278ef7410a3c374a9849
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/untitled7.iml"
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/add.jsp" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/add.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..924571cfb7748dcc180c7c38e34fa5b90ed2df2b
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/add.jsp"
@@ -0,0 +1,41 @@
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%--
+ Created by IntelliJ IDEA.
+ User: 春风
+ Date: 2023/6/10
+ Time: 10:05
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ 添加房源
+
+
+
+
+
+
+
+ | 编号 |
+ 租赁方式 |
+ 租金 |
+ 联系人 |
+ 押金方式 |
+ 房屋类型 |
+ 详细地址 |
+
+
+
+ | ${h.id} |
+ ${h.lease_mode} |
+ ${h.rent} |
+ ${h.contacts} |
+ ${h.deposit_method} |
+ ${h.house_type_id} |
+ ${h.address} |
+
+
+
+
+
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/lib/jstl.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/lib/jstl.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..a02abecc8b888f09e4d1f9e4c9790dc482426d4f
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/lib/jstl.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/lib/mysql-connector-java-5.1.8.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/lib/mysql-connector-java-5.1.8.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..5a7c6fb070683d0afff5aaa43ad0f8a0340ea8c3
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/lib/mysql-connector-java-5.1.8.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/lib/servlet-api.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/lib/servlet-api.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..daf690af39e115e15974b23843a3987eb3089e18
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/lib/servlet-api.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/lib/standard.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/lib/standard.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..bc528acb949096eeb2e3048de1ff5b9ab12a66c5
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/lib/standard.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/list.jsp" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/list.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..23631a5bcca61613f857db0abba5a34419019091
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/list.jsp"
@@ -0,0 +1,16 @@
+<%--
+ Created by IntelliJ IDEA.
+ User: 春风
+ Date: 2023/6/10
+ Time: 8:50
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ Title
+
+
+
+
+
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/web.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/web.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..d80081d1318531b6c30eaf0d748bf80a0b2e042a
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/WEB-INF/web.xml"
@@ -0,0 +1,6 @@
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/index.jsp" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/index.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..b29bcf4abc21d1ddfdf4036e2e54fb2c7042428a
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\344\270\203\346\254\241\344\275\234\344\270\232/untitled7/web/index.jsp"
@@ -0,0 +1,16 @@
+<%--
+ Created by IntelliJ IDEA.
+ User: 春风
+ Date: 2023/6/10
+ Time: 8:49
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ $Title$
+
+
+ $END$
+
+
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/.gitignore" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/.gitignore"
new file mode 100644
index 0000000000000000000000000000000000000000..35410cacdc5e87f985c93a96520f5e11a5c822e4
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/.gitignore"
@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/artifacts/untitled8_war_exploded.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/artifacts/untitled8_war_exploded.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..15467bf758c1c173888b964ff585487f439164ea
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/artifacts/untitled8_war_exploded.xml"
@@ -0,0 +1,13 @@
+
+
+ $PROJECT_DIR$/out/artifacts/untitled8_war_exploded
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/dataSources.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/dataSources.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..98fd1b9947c8a5debdc19bcfd024f7f20dd6b91f
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.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/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/libraries/lib.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/libraries/lib.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..23106033b23a0c8e5ae95ddf611aebd76dc3d72f
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/libraries/lib.xml"
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/misc.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/misc.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..05483570e041eb648703359441d61bf9a5feeb13
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/misc.xml"
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/modules.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/modules.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..3eecf00a47d53d1c45fca2cdeb09f75f62c2af4f
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/.idea/modules.xml"
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/classes/bean/Dept.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/classes/bean/Dept.class"
new file mode 100644
index 0000000000000000000000000000000000000000..316f50d9d4d3440d224891ab6b4d51cb1b00181c
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/classes/bean/Dept.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/classes/bean/Emp.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/classes/bean/Emp.class"
new file mode 100644
index 0000000000000000000000000000000000000000..1677e1217541fa846119afbc8533672186cf0553
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/classes/bean/Emp.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/classes/servlet/list.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/classes/servlet/list.class"
new file mode 100644
index 0000000000000000000000000000000000000000..5310f6a87f4a7bc071c587081042dc685857cecc
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/classes/servlet/list.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/classes/util/DBUtil.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/classes/util/DBUtil.class"
new file mode 100644
index 0000000000000000000000000000000000000000..f623f47465323a858936152e2c2a24d18c6b59b1
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/classes/util/DBUtil.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/lib/jstl.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/lib/jstl.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..a02abecc8b888f09e4d1f9e4c9790dc482426d4f
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/lib/jstl.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.8.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_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/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.8.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/lib/servlet-api.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/lib/servlet-api.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..a8208fbb4a7d2db192f70f641b42c4d549b32084
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/lib/servlet-api.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/lib/standard.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/lib/standard.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..bc528acb949096eeb2e3048de1ff5b9ab12a66c5
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/lib/standard.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/list.jsp" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/list.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..8251de53b0a790302ad7e5e0fbaf4f8ed48ee8fb
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/list.jsp"
@@ -0,0 +1,39 @@
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%--
+ Created by IntelliJ IDEA.
+ User: Administrator
+ Date: 2023-06-10
+ Time: 15:52
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ Title
+
+
+
+
+
+ | 编号 |
+ 姓名 |
+ 性别 |
+ 年龄 |
+ 电话 |
+ 所属部门 |
+
+
+
+ | ${em.empid} |
+ ${em.empname} |
+ ${em.sex} |
+ ${em.age} |
+ ${em.tel} |
+ ${em.deptname} |
+
+
+
+
+
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/web.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/web.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..d80081d1318531b6c30eaf0d748bf80a0b2e042a
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/WEB-INF/web.xml"
@@ -0,0 +1,6 @@
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/index.jsp" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/index.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..c49b6f6d9f37d37007be7ef94e00704c94b57b82
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/artifacts/untitled8_war_exploded/index.jsp"
@@ -0,0 +1,16 @@
+<%--
+ Created by IntelliJ IDEA.
+ User: 春风
+ Date: 2023/6/11
+ Time: 18:53
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ $Title$
+
+
+ $END$
+
+
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/production/untitled8/bean/Dept.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/production/untitled8/bean/Dept.class"
new file mode 100644
index 0000000000000000000000000000000000000000..316f50d9d4d3440d224891ab6b4d51cb1b00181c
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/production/untitled8/bean/Dept.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/production/untitled8/bean/Emp.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/production/untitled8/bean/Emp.class"
new file mode 100644
index 0000000000000000000000000000000000000000..1677e1217541fa846119afbc8533672186cf0553
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/production/untitled8/bean/Emp.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/production/untitled8/servlet/list.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/production/untitled8/servlet/list.class"
new file mode 100644
index 0000000000000000000000000000000000000000..5310f6a87f4a7bc071c587081042dc685857cecc
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/production/untitled8/servlet/list.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/production/untitled8/util/DBUtil.class" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/production/untitled8/util/DBUtil.class"
new file mode 100644
index 0000000000000000000000000000000000000000..f623f47465323a858936152e2c2a24d18c6b59b1
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/out/production/untitled8/util/DBUtil.class" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/src/bean/Dept.java" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/src/bean/Dept.java"
new file mode 100644
index 0000000000000000000000000000000000000000..296311247c47f3cf59126923971023dca3409a79
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/src/bean/Dept.java"
@@ -0,0 +1,38 @@
+package bean;
+
+public class Dept {
+ private int DeptID;
+ private String DeptName;
+
+ public Dept() {
+ }
+
+ public Dept(int deptID, String deptName) {
+ DeptID = deptID;
+ DeptName = deptName;
+ }
+
+ public int getDeptID() {
+ return DeptID;
+ }
+
+ public void setDeptID(int deptID) {
+ DeptID = deptID;
+ }
+
+ public String getDeptName() {
+ return DeptName;
+ }
+
+ public void setDeptName(String deptName) {
+ DeptName = deptName;
+ }
+
+ @Override
+ public String toString() {
+ return "Dept{" +
+ "DeptID=" + DeptID +
+ ", DeptName='" + DeptName + '\'' +
+ '}';
+ }
+}
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/src/bean/Emp.java" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/src/bean/Emp.java"
new file mode 100644
index 0000000000000000000000000000000000000000..9541747c651009d1de10acd4f55d032e360a0e52
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/src/bean/Emp.java"
@@ -0,0 +1,104 @@
+package bean;
+
+public class Emp {
+ private int empid;
+ private String empname;
+ private String sex;
+ private int age;
+ private String tel;
+ private String password;
+ private int deptid;
+ private String deptname;
+
+ public Emp() {
+ }
+
+ public Emp(int empid, String empname, String sex, int age, String tel, String password, int deptid, String deptname) {
+ this.empid = empid;
+ this.empname = empname;
+ this.sex = sex;
+ this.age = age;
+ this.tel = tel;
+ this.password = password;
+ this.deptid = deptid;
+ this.deptname = deptname;
+ }
+
+ public int getEmpid() {
+ return empid;
+ }
+
+ public void setEmpid(int empid) {
+ this.empid = empid;
+ }
+
+ public String getEmpname() {
+ return empname;
+ }
+
+ public void setEmpname(String empname) {
+ this.empname = empname;
+ }
+
+ public String getSex() {
+ return sex;
+ }
+
+ public void setSex(String sex) {
+ this.sex = sex;
+ }
+
+ public int getAge() {
+ return age;
+ }
+
+ public void setAge(int age) {
+ this.age = age;
+ }
+
+ public String getTel() {
+ return tel;
+ }
+
+ public void setTel(String tel) {
+ this.tel = tel;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public int getDeptid() {
+ return deptid;
+ }
+
+ public void setDeptid(int deptid) {
+ this.deptid = deptid;
+ }
+
+ public String getDeptname() {
+ return deptname;
+ }
+
+ public void setDeptname(String deptname) {
+ this.deptname = deptname;
+ }
+
+ @Override
+ public String toString() {
+ return "Emp{" +
+ "empid=" + empid +
+ ", empname='" + empname + '\'' +
+ ", sex='" + sex + '\'' +
+ ", age=" + age +
+ ", tel='" + tel + '\'' +
+ ", password='" + password + '\'' +
+ ", deptid=" + deptid +
+ ", deptname='" + deptname + '\'' +
+ '}';
+ }
+}
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/src/servlet/list.java" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/src/servlet/list.java"
new file mode 100644
index 0000000000000000000000000000000000000000..88b4daf1420551140fa3d0680a4b9b5ecf55a73e
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/src/servlet/list.java"
@@ -0,0 +1,45 @@
+package servlet;
+
+import bean.Emp;
+import util.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 list extends HttpServlet {
+ @Override
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ String sql = "select * from emp e,dept d where e.DeptID=d.DeptID ";
+ ResultSet rs = DBUtil.query(sql);
+ ArrayList list =new ArrayList<>();
+ try {
+ while (rs.next()) {
+ int empid = rs.getInt("empid");
+ String empname = rs.getString("empname");
+ String sex = rs.getString("sex");
+ int age = rs.getInt("age");
+ String tel = rs.getString("tel");
+ String password = rs.getString("password");
+ int deptid = rs.getInt("deptid");
+ String deptname = rs.getString("deptname");
+ Emp emp = new Emp(empid, empname, sex, age, tel, password, deptid, deptname);
+ list.add(emp);
+ request.setAttribute("list", list);
+ request.getRequestDispatcher("/WEB-INF/list.jsp").forward(request, response);
+ }
+ } catch (SQLException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ @Override
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+
+ }
+}
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/src/util/DBUtil.java" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/src/util/DBUtil.java"
new file mode 100644
index 0000000000000000000000000000000000000000..704bcc857dee5e0c63457c743ab3abfee47023a8
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/src/util/DBUtil.java"
@@ -0,0 +1,67 @@
+package util;
+
+import java.sql.*;
+
+public class DBUtil {
+ static String url="jdbc:mysql:///companymanager?characterEncoding=utf8";
+ static String user="root";
+ static String pwd="xem314159";
+ static {
+ try {
+ Class.forName("com.mysql.jdbc.Driver");
+ } catch (ClassNotFoundException e) {
+ throw new RuntimeException(e);
+ }
+ }
+ public static Connection getCon() throws SQLException {
+ Connection con = DriverManager.getConnection(url, user, pwd);
+ return con;
+ }
+ public static ResultSet query(String sql, Object... keys) {
+ ResultSet rs = null;
+ try {
+ Connection con = getCon();
+ PreparedStatement pst = con.prepareStatement(sql);
+ for (int i = 0; i < keys.length; i++) {
+ pst.setObject((i + 1), keys[i]);
+ }
+ rs = pst.executeQuery();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return rs;
+ }
+
+ public static int update(String sql, Object... keys) {
+ int rs = 0;
+ try {
+ Connection con = getCon();
+ PreparedStatement pst = con.prepareStatement(sql);
+ for (int i = 0; i < keys.length; i++) {
+ pst.setObject((i + 1), keys[i]);
+ }
+ rs = pst.executeUpdate();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ return rs;
+ }
+
+ public static void close(Connection conn, PreparedStatement pst, ResultSet rs) {
+ try {
+ if (rs != null) {
+ rs.close();
+ }
+ if (pst != null) {
+ pst.close();
+ }
+ if (conn != null) {
+ conn.close();
+ }
+ } catch (SQLException e) {
+ throw new RuntimeException(e);
+ }
+
+ }
+
+}
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/untitled8.iml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/untitled8.iml"
new file mode 100644
index 0000000000000000000000000000000000000000..bc73df7611ec684b1bbe278ef7410a3c374a9849
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/untitled8.iml"
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/lib/jstl.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/lib/jstl.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..a02abecc8b888f09e4d1f9e4c9790dc482426d4f
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/lib/jstl.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/lib/mysql-connector-java-5.1.8.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/lib/mysql-connector-java-5.1.8.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..5a7c6fb070683d0afff5aaa43ad0f8a0340ea8c3
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/lib/mysql-connector-java-5.1.8.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/lib/servlet-api.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/lib/servlet-api.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..a8208fbb4a7d2db192f70f641b42c4d549b32084
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/lib/servlet-api.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/lib/standard.jar" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/lib/standard.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..bc528acb949096eeb2e3048de1ff5b9ab12a66c5
Binary files /dev/null and "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/lib/standard.jar" differ
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/list.jsp" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/list.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..8251de53b0a790302ad7e5e0fbaf4f8ed48ee8fb
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/list.jsp"
@@ -0,0 +1,39 @@
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%--
+ Created by IntelliJ IDEA.
+ User: Administrator
+ Date: 2023-06-10
+ Time: 15:52
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ Title
+
+
+
+
+
+ | 编号 |
+ 姓名 |
+ 性别 |
+ 年龄 |
+ 电话 |
+ 所属部门 |
+
+
+
+ | ${em.empid} |
+ ${em.empname} |
+ ${em.sex} |
+ ${em.age} |
+ ${em.tel} |
+ ${em.deptname} |
+
+
+
+
+
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/web.xml" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/web.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..d80081d1318531b6c30eaf0d748bf80a0b2e042a
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/WEB-INF/web.xml"
@@ -0,0 +1,6 @@
+
+
+
\ No newline at end of file
diff --git "a/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/index.jsp" "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/index.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..c49b6f6d9f37d37007be7ef94e00704c94b57b82
--- /dev/null
+++ "b/30 \350\256\270\346\201\251\346\260\221/\347\254\254\345\205\253\346\254\241\344\275\234\344\270\232/untitled8/web/index.jsp"
@@ -0,0 +1,16 @@
+<%--
+ Created by IntelliJ IDEA.
+ User: 春风
+ Date: 2023/6/11
+ Time: 18:53
+ To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+
+ $Title$
+
+
+ $END$
+
+