diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/.gitignore" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/.gitignore" new file mode 100644 index 0000000000000000000000000000000000000000..35410cacdc5e87f985c93a96520f5e11a5c822e4 --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/.gitignore" @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/artifacts/Day20230609_war_exploded.xml" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/artifacts/Day20230609_war_exploded.xml" new file mode 100644 index 0000000000000000000000000000000000000000..bd7ba2bc6c8ccbae623e40842f5035605c80cd0f --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/artifacts/Day20230609_war_exploded.xml" @@ -0,0 +1,13 @@ + + + $PROJECT_DIR$/out/artifacts/Day20230609_war_exploded + + + + + + + + + + \ No newline at end of file diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/dataSources.xml" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/dataSources.xml" new file mode 100644 index 0000000000000000000000000000000000000000..ec84e4c81c72e477d7874110412fdd03c2a110f9 --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.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/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/libraries/lib.xml" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/libraries/lib.xml" new file mode 100644 index 0000000000000000000000000000000000000000..23106033b23a0c8e5ae95ddf611aebd76dc3d72f --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/libraries/lib.xml" @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/misc.xml" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/misc.xml" new file mode 100644 index 0000000000000000000000000000000000000000..05483570e041eb648703359441d61bf9a5feeb13 --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/misc.xml" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/modules.xml" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/modules.xml" new file mode 100644 index 0000000000000000000000000000000000000000..8e8309d1f0d74b3ec95b54ab67b9fc11f6f12169 --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/.idea/modules.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/Day20230609.iml" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/Day20230609.iml" new file mode 100644 index 0000000000000000000000000000000000000000..bc73df7611ec684b1bbe278ef7410a3c374a9849 --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/Day20230609.iml" @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/add.jsp" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/add.jsp" new file mode 100644 index 0000000000000000000000000000000000000000..d6d89d280206abc1a8ad7830fa16ee8519e1003f --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/add.jsp" @@ -0,0 +1,52 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2023-06-09 + Time: 16:55 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
租赁方式
租金
联系人
押金方式
房屋类型
详细地址
+
+ + diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/bean/HouseInfo.class" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/bean/HouseInfo.class" new file mode 100644 index 0000000000000000000000000000000000000000..4b9143d4fa664c3a061be85911d25c707561290c Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/bean/HouseInfo.class" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/bean/HouseType.class" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/bean/HouseType.class" new file mode 100644 index 0000000000000000000000000000000000000000..1c323480370131a2ebc12b1f5e781138fce00e40 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/bean/HouseType.class" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/servlet/AddServlet.class" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/servlet/AddServlet.class" new file mode 100644 index 0000000000000000000000000000000000000000..0265b9836c716ee490405fcff359b6b241b5d8f6 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/servlet/AddServlet.class" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/servlet/DeleteServlet.class" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/servlet/DeleteServlet.class" new file mode 100644 index 0000000000000000000000000000000000000000..9076928e9e96131e2836f4bf2b5ad824414d9328 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/servlet/DeleteServlet.class" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/servlet/ListServlet.class" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/servlet/ListServlet.class" new file mode 100644 index 0000000000000000000000000000000000000000..59ccc5b7bb62ef78a9b161629be4a8710467b6cc Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/servlet/ListServlet.class" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/servlet/SearchServlet.class" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/servlet/SearchServlet.class" new file mode 100644 index 0000000000000000000000000000000000000000..df14b8747913905c767ec1a0a3220fc435524994 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/servlet/SearchServlet.class" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/utils/DBUtil.class" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/utils/DBUtil.class" new file mode 100644 index 0000000000000000000000000000000000000000..26c8060e2d52d29cd4bc41ab2f58cc78daa82b71 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/classes/utils/DBUtil.class" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/lib/jstl.jar" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/lib/jstl.jar" new file mode 100644 index 0000000000000000000000000000000000000000..a02abecc8b888f09e4d1f9e4c9790dc482426d4f Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/lib/jstl.jar" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.8.jar" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_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/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.8.jar" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/lib/servlet-api.jar" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/lib/servlet-api.jar" new file mode 100644 index 0000000000000000000000000000000000000000..a8208fbb4a7d2db192f70f641b42c4d549b32084 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/lib/servlet-api.jar" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/lib/standard.jar" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/lib/standard.jar" new file mode 100644 index 0000000000000000000000000000000000000000..bc528acb949096eeb2e3048de1ff5b9ab12a66c5 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/lib/standard.jar" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/list.jsp" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/list.jsp" new file mode 100644 index 0000000000000000000000000000000000000000..602d443f1115ad51b11a8e07c370aabec41d56ae --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/list.jsp" @@ -0,0 +1,44 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2023-06-09 + Time: 16:41 + To change this template use File | Settings | File Templates. +--%> +<%@ 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/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/msg.jsp" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/msg.jsp" new file mode 100644 index 0000000000000000000000000000000000000000..97a832639d2b19309062951ce2888618f472fe18 --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/msg.jsp" @@ -0,0 +1,16 @@ +<%-- + 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" %> + + + 提示信息 + + +

${msg}

+ + diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/web.xml" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/web.xml" new file mode 100644 index 0000000000000000000000000000000000000000..d80081d1318531b6c30eaf0d748bf80a0b2e042a --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/WEB-INF/web.xml" @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/index.jsp" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/index.jsp" new file mode 100644 index 0000000000000000000000000000000000000000..4149b3b1f39f5ea00fcf1cef11098d179aa6ac82 --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/artifacts/Day20230609_war_exploded/index.jsp" @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2023-06-09 + Time: 13:58 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/bean/HouseInfo.class" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/bean/HouseInfo.class" new file mode 100644 index 0000000000000000000000000000000000000000..4b9143d4fa664c3a061be85911d25c707561290c Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/bean/HouseInfo.class" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/bean/HouseType.class" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/bean/HouseType.class" new file mode 100644 index 0000000000000000000000000000000000000000..1c323480370131a2ebc12b1f5e781138fce00e40 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/bean/HouseType.class" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/servlet/AddServlet.class" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/servlet/AddServlet.class" new file mode 100644 index 0000000000000000000000000000000000000000..0265b9836c716ee490405fcff359b6b241b5d8f6 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/servlet/AddServlet.class" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/servlet/DeleteServlet.class" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/servlet/DeleteServlet.class" new file mode 100644 index 0000000000000000000000000000000000000000..9076928e9e96131e2836f4bf2b5ad824414d9328 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/servlet/DeleteServlet.class" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/servlet/ListServlet.class" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/servlet/ListServlet.class" new file mode 100644 index 0000000000000000000000000000000000000000..59ccc5b7bb62ef78a9b161629be4a8710467b6cc Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/servlet/ListServlet.class" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/servlet/SearchServlet.class" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/servlet/SearchServlet.class" new file mode 100644 index 0000000000000000000000000000000000000000..df14b8747913905c767ec1a0a3220fc435524994 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/servlet/SearchServlet.class" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/utils/DBUtil.class" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/utils/DBUtil.class" new file mode 100644 index 0000000000000000000000000000000000000000..26c8060e2d52d29cd4bc41ab2f58cc78daa82b71 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/out/production/Day20230609/utils/DBUtil.class" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/bean/HouseInfo.java" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/bean/HouseInfo.java" new file mode 100644 index 0000000000000000000000000000000000000000..4972550e32e7d2b4354b990d4023da3a4b0e07a9 --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/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 houseTypeId; //房屋类型编号 + private String address; //详细地址 + private String type; //房屋类型 + + @Override + public String toString() { + return "HouseInfo{" + + "id=" + id + + ", leaseMode='" + leaseMode + '\'' + + ", rent=" + rent + + ", contacts='" + contacts + '\'' + + ", depositMethod='" + depositMethod + '\'' + + ", houseTypeId=" + houseTypeId + + ", 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 getHouseTypeId() { + return houseTypeId; + } + + public void setHouseTypeId(int houseTypeId) { + this.houseTypeId = houseTypeId; + } + + 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 houseTypeId, String address, String type) { + this.id = id; + this.leaseMode = leaseMode; + this.rent = rent; + this.contacts = contacts; + this.depositMethod = depositMethod; + this.houseTypeId = houseTypeId; + this.address = address; + this.type = type; + } + + public HouseInfo() { + } +} diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/bean/HouseType.java" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/bean/HouseType.java" new file mode 100644 index 0000000000000000000000000000000000000000..34b87bffbb567326461cb6f3079914d78cd40551 --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/bean/HouseType.java" @@ -0,0 +1,38 @@ +package bean; + +public class HouseType { + private int id; + private String type; + + @Override + public String toString() { + return "HouseType{" + + "id=" + id + + ", 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; + } + + public HouseType(int id, String type) { + this.id = id; + this.type = type; + } + + public HouseType() { + } +} diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/servlet/AddServlet.java" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/servlet/AddServlet.java" new file mode 100644 index 0000000000000000000000000000000000000000..24d67c6ced5ca8e1f0dd5daba49ffbb2f5e78a0c --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/servlet/AddServlet.java" @@ -0,0 +1,71 @@ +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 { + ArrayList list = new ArrayList<>(); + //1.编写sql语句 + String sql = "select * from house_type"; + //2.调用工具类得到结果集 + ResultSet rs = DBUtil.query(sql); + //3.通过结果集循环得到数据 + try { + while (rs.next()) { + int id = rs.getInt(1); + String type = rs.getString(2); + //4.将数据封装成对象存入集合 + HouseType house = new HouseType(id,type); + list.add(house); + } + } catch (SQLException e) { + e.printStackTrace(); + } + //5.将集合添加到request域中 + request.setAttribute("list",list); + //6.将集合转发给jsp显示 + request.getRequestDispatcher("/WEB-INF/add.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //0.处理乱码问题 + request.setCharacterEncoding("utf-8"); + ArrayList list = new ArrayList<>(); + //1.编写sql语句 + String sql = "insert into house_info values (?,?,?,?,?,?,?)"; + //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.调用工具类得到受影响的行数 + int i = DBUtil.update(sql,null,leaseMode,rent,contacts,depositMethod,type,address); + //4.使用影响行数判断添加是否成功 + if(i>0){ + //重定向,跳转刷新页面 + response.sendRedirect("/list"); + }else{ + //5.将提示信息添加到request域中 + request.setAttribute("msg","添加失败"); + //6.将集合转发给jsp显示 + request.getRequestDispatcher("/WEB-INF/msg.jsp").forward(request,response); + } + + + } +} diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/servlet/DeleteServlet.java" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/servlet/DeleteServlet.java" new file mode 100644 index 0000000000000000000000000000000000000000..28100f88280539ada0d3a20b071110ac44744d3b --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/servlet/DeleteServlet.java" @@ -0,0 +1,36 @@ +package servlet; + +import utils.DBUtil; + +import javax.servlet.*; +import javax.servlet.http.*; +import javax.servlet.annotation.*; +import java.io.IOException; + +@WebServlet("/delete") +public class DeleteServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1.接收执行编号 + String id = request.getParameter("id"); + //2.编写sql语句 + String sql = "delete from house_info where id=?"; + //3.调用工具类执行sql语句获得影响行数 + int i = DBUtil.update(sql, id); + //4.使用影响行数判断添加删除是否成功 + if(i>0){ + //重定向,跳转刷新页面 + response.sendRedirect("/list"); + }else{ + //5.将提示信息添加到request域中 + request.setAttribute("msg","删除失败"); + //6.将集合转发给jsp显示 + request.getRequestDispatcher("/WEB-INF/msg.jsp").forward(request,response); + } + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + + } +} diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/servlet/ListServlet.java" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/servlet/ListServlet.java" new file mode 100644 index 0000000000000000000000000000000000000000..7ec53ad5844ae4eed526fb16102fd1cb7f4e84e9 --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/servlet/ListServlet.java" @@ -0,0 +1,51 @@ +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 { + ArrayList list = new ArrayList<>(); + //1.编写sql语句 + String sql = "select * from house_info i,house_type t where i.house_type_id=t.id"; + //2.调用工具类得到结果集 + ResultSet rs = DBUtil.query(sql); + //3.通过结果集循环得到数据 + try { + while (rs.next()) { + int id = rs.getInt(1); + String leaseMode = rs.getString(2); + double rent = rs.getDouble(3); + String contacts = rs.getString(4); + String depositMethod = rs.getString(5); + int houseTypeId = rs.getInt(6); + String address = rs.getString(7); + String type = rs.getString(9); + //4.将数据封装成对象存入集合 + HouseInfo house = new HouseInfo(id, leaseMode, rent, contacts, depositMethod, houseTypeId, address, type); + list.add(house); + } + } catch (SQLException e) { + e.printStackTrace(); + } + //5.将集合添加到request域中 + request.setAttribute("list",list); + //6.将集合转发给jsp显示 + request.getRequestDispatcher("/WEB-INF/list.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + + } +} diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/servlet/SearchServlet.java" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/servlet/SearchServlet.java" new file mode 100644 index 0000000000000000000000000000000000000000..eadfe1f72b4a45b29cbbbf076ffdafed2804a5af --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/servlet/SearchServlet.java" @@ -0,0 +1,55 @@ +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("/search") +public class SearchServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //0.处理乱码问题 + request.setCharacterEncoding("utf-8"); + ArrayList list = new ArrayList<>(); + //接收表单数据 + String name = request.getParameter("name"); + //1.编写sql语句 + String sql = "select * from house_info i,house_type t where i.house_type_id=t.id and contacts like ?"; + //2.调用工具类得到结果集 + ResultSet rs = DBUtil.query(sql,"%"+name+"%"); + //3.通过结果集循环得到数据 + try { + while (rs.next()) { + int id = rs.getInt(1); + String leaseMode = rs.getString(2); + double rent = rs.getDouble(3); + String contacts = rs.getString(4); + String depositMethod = rs.getString(5); + int houseTypeId = rs.getInt(6); + String address = rs.getString(7); + String type = rs.getString(9); + //4.将数据封装成对象存入集合 + HouseInfo house = new HouseInfo(id, leaseMode, rent, contacts, depositMethod, houseTypeId, address, type); + list.add(house); + } + } catch (SQLException e) { + e.printStackTrace(); + } + //5.将集合添加到request域中 + request.setAttribute("list",list); + //6.将集合转发给jsp显示 + request.getRequestDispatcher("/WEB-INF/list.jsp").forward(request,response); + } +} diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/utils/DBUtil.java" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/utils/DBUtil.java" new file mode 100644 index 0000000000000000000000000000000000000000..6739844849fccf413367a29b8992cf863ca4f244 --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/src/utils/DBUtil.java" @@ -0,0 +1,61 @@ +package utils; + +import java.sql.*; + +public class DBUtil { + //1.定义mysql地址,账号,密码,编码 + static final String URL="jdbc:mysql:///test?characterEncoding=utf8"; + static final String USER="root"; + static final String PSW="root"; + //2.注册驱动 + static { + try { + Class.forName("com.mysql.jdbc.Driver"); + } catch (ClassNotFoundException e) { + throw new RuntimeException(e); + } + } + //3.获取连接对象方法 + public static Connection getConn() throws SQLException { + Connection conn = DriverManager.getConnection(URL, USER, PSW); + return conn; + } + //4.通用的查询方法,接收sql,返回结果集 + public static ResultSet query(String sql,Object... keys){ + ResultSet rs = null; + try { + //1.获取连接对象 + Connection conn = getConn(); + //2.获取执行sql的对象 + PreparedStatement pst = conn.prepareStatement(sql); + //3.遍历keys,将数据赋值给? + for (int i = 0; i < keys.length; i++) { + pst.setObject((i+1),keys[i]); + } + //4.pst调用查询方法执行mysql + rs = pst.executeQuery(); + } catch (SQLException e) { + throw new RuntimeException(e); + } + return rs; + } + //5.通用的update方法 + public static int update(String sql,Object... keys){ + int num = 0; + try { + //1.获取连接对象 + Connection conn = getConn(); + //2.获取执行sql的对象 + PreparedStatement pst = conn.prepareStatement(sql); + //3.遍历keys,将数据赋值给? + for (int i = 0; i < keys.length; i++) { + pst.setObject((i+1),keys[i]); + } + //4.pst调用查询方法执行mysql + num = pst.executeUpdate(); + } catch (SQLException e) { + throw new RuntimeException(e); + } + return num; + } +} diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/add.jsp" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/add.jsp" new file mode 100644 index 0000000000000000000000000000000000000000..d6d89d280206abc1a8ad7830fa16ee8519e1003f --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/add.jsp" @@ -0,0 +1,52 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2023-06-09 + Time: 16:55 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
租赁方式
租金
联系人
押金方式
房屋类型
详细地址
+
+ + diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/lib/jstl.jar" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/lib/jstl.jar" new file mode 100644 index 0000000000000000000000000000000000000000..a02abecc8b888f09e4d1f9e4c9790dc482426d4f Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/lib/jstl.jar" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/lib/mysql-connector-java-5.1.8.jar" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/lib/mysql-connector-java-5.1.8.jar" new file mode 100644 index 0000000000000000000000000000000000000000..5a7c6fb070683d0afff5aaa43ad0f8a0340ea8c3 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/lib/mysql-connector-java-5.1.8.jar" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/lib/servlet-api.jar" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/lib/servlet-api.jar" new file mode 100644 index 0000000000000000000000000000000000000000..a8208fbb4a7d2db192f70f641b42c4d549b32084 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/lib/servlet-api.jar" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/lib/standard.jar" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/lib/standard.jar" new file mode 100644 index 0000000000000000000000000000000000000000..bc528acb949096eeb2e3048de1ff5b9ab12a66c5 Binary files /dev/null and "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/lib/standard.jar" differ diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/list.jsp" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/list.jsp" new file mode 100644 index 0000000000000000000000000000000000000000..602d443f1115ad51b11a8e07c370aabec41d56ae --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/list.jsp" @@ -0,0 +1,44 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2023-06-09 + Time: 16:41 + To change this template use File | Settings | File Templates. +--%> +<%@ 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/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/msg.jsp" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/msg.jsp" new file mode 100644 index 0000000000000000000000000000000000000000..97a832639d2b19309062951ce2888618f472fe18 --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/msg.jsp" @@ -0,0 +1,16 @@ +<%-- + 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" %> + + + 提示信息 + + +

${msg}

+ + diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/web.xml" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/web.xml" new file mode 100644 index 0000000000000000000000000000000000000000..d80081d1318531b6c30eaf0d748bf80a0b2e042a --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/WEB-INF/web.xml" @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/index.jsp" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/index.jsp" new file mode 100644 index 0000000000000000000000000000000000000000..4149b3b1f39f5ea00fcf1cef11098d179aa6ac82 --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/Day20230609/web/index.jsp" @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2023-06-09 + Time: 13:58 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + diff --git "a/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/\346\225\260\346\215\256\345\272\223\344\273\243\347\240\201.sql" "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/\346\225\260\346\215\256\345\272\223\344\273\243\347\240\201.sql" new file mode 100644 index 0000000000000000000000000000000000000000..c7efaaa657a326d082920c39b46099bd9347b7ac --- /dev/null +++ "b/04 \346\235\216\346\230\216\345\201\245/20230612 \346\210\277\345\261\213\347\256\241\347\220\206\347\263\273\347\273\237/\346\225\260\346\215\256\345\272\223\344\273\243\347\240\201.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) not null # 房屋类型 不允许为空 +); +#插入数据 +insert into house_type values + (null,'2室1厅1卫'), + (null,'3室1厅1卫'), + (null,'2室2厅1卫'); + +# 表: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), # 详细地址 不允许为空 + foreign key (house_type_id) references house_type (id) #外键 +); +#插入数据 +insert into house_info values + (null,'整租',2300,'王晓明','押一付一',1,'福建厦门'), + (null,'合租',850,null,'押一付一',2,'福建南平'), + (null,'整租',3200,'张小菲','押一付三',3,'福建泉州'); +