From c4b76d12b5f9afa0dfc02513394f3561d77d34e5 Mon Sep 17 00:00:00 2001 From: Mth Zhang Date: Mon, 25 Dec 2023 18:34:44 +0800 Subject: [PATCH] 20231225 18:34 --- springmvc_all/.idea/artifacts/ssm01_war.xml | 14 + .../.idea/artifacts/ssm01_war_exploded.xml | 13 + .../.idea/artifacts/ssm01_war_exploded2.xml | 13 + ...erxml_jackson_core_jackson_core_2_15_2.xml | 13 + ...mons_fileupload_commons_fileupload_1_4.xml | 13 + ...=> Maven__commons_io_commons_io_2_8_0.xml} | 8 +- ...ervlet_jsp_javax_servlet_jsp_api_2_3_3.xml | 13 + ...aven__org_aspectj_aspectjweaver_1_9_7.xml} | 8 +- ...l => Maven__org_mybatis_mybatis_3_5_3.xml} | 8 +- ...ven__org_mybatis_mybatis_spring_2_0_3.xml} | 8 +- ...org_springframework_spring_aop_5_3_30.xml} | 8 +- ...springframework_spring_aspects_5_3_30.xml} | 8 +- ...rg_springframework_spring_beans_5_3_30.xml | 13 + ..._springframework_spring_context_5_3_30.xml | 13 + ...rg_springframework_spring_core_5_3_30.xml} | 8 +- ...ingframework_spring_expression_5_3_30.xml} | 8 +- ...org_springframework_spring_jcl_5_3_30.xml} | 8 +- ...org_springframework_spring_jdbc_5_3_30.xml | 13 + ...org_springframework_spring_orm_5_3_30.xml} | 8 +- ...org_springframework_spring_test_5_3_30.xml | 13 + ..._org_springframework_spring_tx_5_3_30.xml} | 8 +- ...org_springframework_spring_web_5_3_30.xml} | 8 +- ...g_springframework_spring_webmvc_5_3_24.xml | 13 - ..._springframework_spring_webmvc_5_3_30.xml} | 8 +- .../libraries/commons_fileupload_1_4.xml | 9 + springmvc_all/.idea/vcs.xml | 6 + springmvc_all/ssm01/pom.xml | 12 + .../controller/FileUploadController.java | 9 + .../controller/UserController.java | 27 + .../com/zhangzeyuan/mapper/UserMapper.java | 12 + .../main/java/com/zhangzeyuan/pojo/User.java | 24 + .../com/zhangzeyuan/service/UserService.java | 12 + .../service/impl/UserServiceImpl.java | 26 + .../src/main/resources/applicationContext.xml | 0 .../com/zhangzeyuan/mapper/UserMapper.xml | 14 + .../ssm01/src/main/resources/jdbc.properties | 0 .../ssm01/src/main/resources/log4j2.xml | 0 .../ssm01/src/main/resources/springmvc.xml | 38 + .../src/main/webapp/WEB-INF/view/error.jsp | 22 + .../main/webapp/WEB-INF/view/fileUpload.jsp | 22 + .../main/webapp/WEB-INF/view/showDataPage.jsp | 22 + .../src/main/webapp/WEB-INF/view/success.jsp | 22 + .../ssm01/src/main/webapp/js/WdatePicker.js | 58 + .../ssm01/src/main/webapp/js/bootstrap.js | 4435 +++++++ .../ssm01/src/main/webapp/js/calendar.js | 5 + .../ssm01/src/main/webapp/js/jquery-3.2.1.js | 10253 ++++++++++++++++ .../ssm01/src/main/webapp/js/jquery.cookie.js | 117 + .../ssm01/src/main/webapp/js/jquery.min.js | 4 + .../src/main/webapp/js/jquery.validate.js | 1398 +++ .../ssm01/src/main/webapp/js/popper.min.js | 5 + springmvc_all/ssm01/ssm01.iml | 15 + 51 files changed, 16750 insertions(+), 65 deletions(-) create mode 100644 springmvc_all/.idea/artifacts/ssm01_war.xml create mode 100644 springmvc_all/.idea/artifacts/ssm01_war_exploded.xml create mode 100644 springmvc_all/.idea/artifacts/ssm01_war_exploded2.xml create mode 100644 springmvc_all/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_15_2.xml create mode 100644 springmvc_all/.idea/libraries/Maven__commons_fileupload_commons_fileupload_1_4.xml rename springmvc_all/.idea/libraries/{Maven__org_springframework_spring_tx_5_3_5.xml => Maven__commons_io_commons_io_2_8_0.xml} (53%) create mode 100644 springmvc_all/.idea/libraries/Maven__javax_servlet_jsp_javax_servlet_jsp_api_2_3_3.xml rename springmvc_all/.idea/libraries/{Maven__org_aspectj_aspectjweaver_1_9_6.xml => Maven__org_aspectj_aspectjweaver_1_9_7.xml} (56%) rename springmvc_all/.idea/libraries/{Maven__org_springframework_spring_jcl_5_3_5.xml => Maven__org_mybatis_mybatis_3_5_3.xml} (52%) rename springmvc_all/.idea/libraries/{Maven__org_springframework_spring_aop_5_3_5.xml => Maven__org_mybatis_mybatis_spring_2_0_3.xml} (56%) rename springmvc_all/.idea/libraries/{Maven__org_springframework_spring_jdbc_5_3_5.xml => Maven__org_springframework_spring_aop_5_3_30.xml} (56%) rename springmvc_all/.idea/libraries/{Maven__org_springframework_spring_aspects_5_3_5.xml => Maven__org_springframework_spring_aspects_5_3_30.xml} (50%) create mode 100644 springmvc_all/.idea/libraries/Maven__org_springframework_spring_beans_5_3_30.xml create mode 100644 springmvc_all/.idea/libraries/Maven__org_springframework_spring_context_5_3_30.xml rename springmvc_all/.idea/libraries/{Maven__org_springframework_spring_beans_5_3_5.xml => Maven__org_springframework_spring_core_5_3_30.xml} (57%) rename springmvc_all/.idea/libraries/{Maven__org_springframework_spring_expression_5_3_5.xml => Maven__org_springframework_spring_expression_5_3_30.xml} (57%) rename springmvc_all/.idea/libraries/{Maven__org_springframework_spring_test_5_3_5.xml => Maven__org_springframework_spring_jcl_5_3_30.xml} (56%) create mode 100644 springmvc_all/.idea/libraries/Maven__org_springframework_spring_jdbc_5_3_30.xml rename springmvc_all/.idea/libraries/{Maven__org_springframework_spring_core_5_3_5.xml => Maven__org_springframework_spring_orm_5_3_30.xml} (56%) create mode 100644 springmvc_all/.idea/libraries/Maven__org_springframework_spring_test_5_3_30.xml rename springmvc_all/.idea/libraries/{Maven__org_springframework_spring_orm_5_3_5.xml => Maven__org_springframework_spring_tx_5_3_30.xml} (56%) rename springmvc_all/.idea/libraries/{Maven__org_springframework_spring_web_5_3_24.xml => Maven__org_springframework_spring_web_5_3_30.xml} (56%) delete mode 100644 springmvc_all/.idea/libraries/Maven__org_springframework_spring_webmvc_5_3_24.xml rename springmvc_all/.idea/libraries/{Maven__org_springframework_spring_context_5_3_5.xml => Maven__org_springframework_spring_webmvc_5_3_30.xml} (58%) create mode 100644 springmvc_all/.idea/libraries/commons_fileupload_1_4.xml create mode 100644 springmvc_all/.idea/vcs.xml create mode 100644 springmvc_all/ssm01/pom.xml create mode 100644 springmvc_all/ssm01/src/main/java/com/zhangzeyuan/controller/FileUploadController.java create mode 100644 springmvc_all/ssm01/src/main/java/com/zhangzeyuan/controller/UserController.java create mode 100644 springmvc_all/ssm01/src/main/java/com/zhangzeyuan/mapper/UserMapper.java create mode 100644 springmvc_all/ssm01/src/main/java/com/zhangzeyuan/pojo/User.java create mode 100644 springmvc_all/ssm01/src/main/java/com/zhangzeyuan/service/UserService.java create mode 100644 springmvc_all/ssm01/src/main/java/com/zhangzeyuan/service/impl/UserServiceImpl.java create mode 100644 springmvc_all/ssm01/src/main/resources/applicationContext.xml create mode 100644 springmvc_all/ssm01/src/main/resources/com/zhangzeyuan/mapper/UserMapper.xml create mode 100644 springmvc_all/ssm01/src/main/resources/jdbc.properties create mode 100644 springmvc_all/ssm01/src/main/resources/log4j2.xml create mode 100644 springmvc_all/ssm01/src/main/resources/springmvc.xml create mode 100644 springmvc_all/ssm01/src/main/webapp/WEB-INF/view/error.jsp create mode 100644 springmvc_all/ssm01/src/main/webapp/WEB-INF/view/fileUpload.jsp create mode 100644 springmvc_all/ssm01/src/main/webapp/WEB-INF/view/showDataPage.jsp create mode 100644 springmvc_all/ssm01/src/main/webapp/WEB-INF/view/success.jsp create mode 100644 springmvc_all/ssm01/src/main/webapp/js/WdatePicker.js create mode 100644 springmvc_all/ssm01/src/main/webapp/js/bootstrap.js create mode 100644 springmvc_all/ssm01/src/main/webapp/js/calendar.js create mode 100644 springmvc_all/ssm01/src/main/webapp/js/jquery-3.2.1.js create mode 100644 springmvc_all/ssm01/src/main/webapp/js/jquery.cookie.js create mode 100644 springmvc_all/ssm01/src/main/webapp/js/jquery.min.js create mode 100644 springmvc_all/ssm01/src/main/webapp/js/jquery.validate.js create mode 100644 springmvc_all/ssm01/src/main/webapp/js/popper.min.js create mode 100644 springmvc_all/ssm01/ssm01.iml diff --git a/springmvc_all/.idea/artifacts/ssm01_war.xml b/springmvc_all/.idea/artifacts/ssm01_war.xml new file mode 100644 index 0000000..8329d68 --- /dev/null +++ b/springmvc_all/.idea/artifacts/ssm01_war.xml @@ -0,0 +1,14 @@ + + + $PROJECT_DIR$/ssm01/target + + + ssm01 + war + + + + + + + \ No newline at end of file diff --git a/springmvc_all/.idea/artifacts/ssm01_war_exploded.xml b/springmvc_all/.idea/artifacts/ssm01_war_exploded.xml new file mode 100644 index 0000000..63cdfaa --- /dev/null +++ b/springmvc_all/.idea/artifacts/ssm01_war_exploded.xml @@ -0,0 +1,13 @@ + + + $PROJECT_DIR$/out/artifacts/ssm01_war_exploded + + + + + + + + + + \ No newline at end of file diff --git a/springmvc_all/.idea/artifacts/ssm01_war_exploded2.xml b/springmvc_all/.idea/artifacts/ssm01_war_exploded2.xml new file mode 100644 index 0000000..3da2ae4 --- /dev/null +++ b/springmvc_all/.idea/artifacts/ssm01_war_exploded2.xml @@ -0,0 +1,13 @@ + + + $PROJECT_DIR$/out/artifacts/ssm01_war_exploded2 + + + + + + + + + + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_15_2.xml b/springmvc_all/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_15_2.xml new file mode 100644 index 0000000..1645902 --- /dev/null +++ b/springmvc_all/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_15_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__commons_fileupload_commons_fileupload_1_4.xml b/springmvc_all/.idea/libraries/Maven__commons_fileupload_commons_fileupload_1_4.xml new file mode 100644 index 0000000..ad929dd --- /dev/null +++ b/springmvc_all/.idea/libraries/Maven__commons_fileupload_commons_fileupload_1_4.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_tx_5_3_5.xml b/springmvc_all/.idea/libraries/Maven__commons_io_commons_io_2_8_0.xml similarity index 53% rename from springmvc_all/.idea/libraries/Maven__org_springframework_spring_tx_5_3_5.xml rename to springmvc_all/.idea/libraries/Maven__commons_io_commons_io_2_8_0.xml index f08d01b..13facc8 100644 --- a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_tx_5_3_5.xml +++ b/springmvc_all/.idea/libraries/Maven__commons_io_commons_io_2_8_0.xml @@ -1,13 +1,13 @@ - + - + - + - + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__javax_servlet_jsp_javax_servlet_jsp_api_2_3_3.xml b/springmvc_all/.idea/libraries/Maven__javax_servlet_jsp_javax_servlet_jsp_api_2_3_3.xml new file mode 100644 index 0000000..73db95f --- /dev/null +++ b/springmvc_all/.idea/libraries/Maven__javax_servlet_jsp_javax_servlet_jsp_api_2_3_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_6.xml b/springmvc_all/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_7.xml similarity index 56% rename from springmvc_all/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_6.xml rename to springmvc_all/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_7.xml index fd6d05b..4ef4801 100644 --- a/springmvc_all/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_6.xml +++ b/springmvc_all/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_7.xml @@ -1,13 +1,13 @@ - + - + - + - + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_jcl_5_3_5.xml b/springmvc_all/.idea/libraries/Maven__org_mybatis_mybatis_3_5_3.xml similarity index 52% rename from springmvc_all/.idea/libraries/Maven__org_springframework_spring_jcl_5_3_5.xml rename to springmvc_all/.idea/libraries/Maven__org_mybatis_mybatis_3_5_3.xml index 0f96ac2..3a5aaaa 100644 --- a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_jcl_5_3_5.xml +++ b/springmvc_all/.idea/libraries/Maven__org_mybatis_mybatis_3_5_3.xml @@ -1,13 +1,13 @@ - + - + - + - + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_aop_5_3_5.xml b/springmvc_all/.idea/libraries/Maven__org_mybatis_mybatis_spring_2_0_3.xml similarity index 56% rename from springmvc_all/.idea/libraries/Maven__org_springframework_spring_aop_5_3_5.xml rename to springmvc_all/.idea/libraries/Maven__org_mybatis_mybatis_spring_2_0_3.xml index 9edd474..25993f7 100644 --- a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_aop_5_3_5.xml +++ b/springmvc_all/.idea/libraries/Maven__org_mybatis_mybatis_spring_2_0_3.xml @@ -1,13 +1,13 @@ - + - + - + - + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_jdbc_5_3_5.xml b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_aop_5_3_30.xml similarity index 56% rename from springmvc_all/.idea/libraries/Maven__org_springframework_spring_jdbc_5_3_5.xml rename to springmvc_all/.idea/libraries/Maven__org_springframework_spring_aop_5_3_30.xml index 1a2dc33..042e58e 100644 --- a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_jdbc_5_3_5.xml +++ b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_aop_5_3_30.xml @@ -1,13 +1,13 @@ - + - + - + - + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_aspects_5_3_5.xml b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_aspects_5_3_30.xml similarity index 50% rename from springmvc_all/.idea/libraries/Maven__org_springframework_spring_aspects_5_3_5.xml rename to springmvc_all/.idea/libraries/Maven__org_springframework_spring_aspects_5_3_30.xml index 34ec857..fe4b502 100644 --- a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_aspects_5_3_5.xml +++ b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_aspects_5_3_30.xml @@ -1,13 +1,13 @@ - + - + - + - + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_beans_5_3_30.xml b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_beans_5_3_30.xml new file mode 100644 index 0000000..930ffaf --- /dev/null +++ b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_beans_5_3_30.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_context_5_3_30.xml b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_context_5_3_30.xml new file mode 100644 index 0000000..b172889 --- /dev/null +++ b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_context_5_3_30.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_beans_5_3_5.xml b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_core_5_3_30.xml similarity index 57% rename from springmvc_all/.idea/libraries/Maven__org_springframework_spring_beans_5_3_5.xml rename to springmvc_all/.idea/libraries/Maven__org_springframework_spring_core_5_3_30.xml index d980bff..19096cf 100644 --- a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_beans_5_3_5.xml +++ b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_core_5_3_30.xml @@ -1,13 +1,13 @@ - + - + - + - + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_expression_5_3_5.xml b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_expression_5_3_30.xml similarity index 57% rename from springmvc_all/.idea/libraries/Maven__org_springframework_spring_expression_5_3_5.xml rename to springmvc_all/.idea/libraries/Maven__org_springframework_spring_expression_5_3_30.xml index b5a337f..1ba614d 100644 --- a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_expression_5_3_5.xml +++ b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_expression_5_3_30.xml @@ -1,13 +1,13 @@ - + - + - + - + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_test_5_3_5.xml b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_jcl_5_3_30.xml similarity index 56% rename from springmvc_all/.idea/libraries/Maven__org_springframework_spring_test_5_3_5.xml rename to springmvc_all/.idea/libraries/Maven__org_springframework_spring_jcl_5_3_30.xml index 7bd012b..880375f 100644 --- a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_test_5_3_5.xml +++ b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_jcl_5_3_30.xml @@ -1,13 +1,13 @@ - + - + - + - + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_jdbc_5_3_30.xml b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_jdbc_5_3_30.xml new file mode 100644 index 0000000..a8ce904 --- /dev/null +++ b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_jdbc_5_3_30.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_core_5_3_5.xml b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_orm_5_3_30.xml similarity index 56% rename from springmvc_all/.idea/libraries/Maven__org_springframework_spring_core_5_3_5.xml rename to springmvc_all/.idea/libraries/Maven__org_springframework_spring_orm_5_3_30.xml index 737592c..523ddaf 100644 --- a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_core_5_3_5.xml +++ b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_orm_5_3_30.xml @@ -1,13 +1,13 @@ - + - + - + - + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_test_5_3_30.xml b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_test_5_3_30.xml new file mode 100644 index 0000000..4e9936d --- /dev/null +++ b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_test_5_3_30.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_orm_5_3_5.xml b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_tx_5_3_30.xml similarity index 56% rename from springmvc_all/.idea/libraries/Maven__org_springframework_spring_orm_5_3_5.xml rename to springmvc_all/.idea/libraries/Maven__org_springframework_spring_tx_5_3_30.xml index 4a30e09..74d2948 100644 --- a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_orm_5_3_5.xml +++ b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_tx_5_3_30.xml @@ -1,13 +1,13 @@ - + - + - + - + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_web_5_3_24.xml b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_web_5_3_30.xml similarity index 56% rename from springmvc_all/.idea/libraries/Maven__org_springframework_spring_web_5_3_24.xml rename to springmvc_all/.idea/libraries/Maven__org_springframework_spring_web_5_3_30.xml index 0ea8c88..23ca71b 100644 --- a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_web_5_3_24.xml +++ b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_web_5_3_30.xml @@ -1,13 +1,13 @@ - + - + - + - + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_webmvc_5_3_24.xml b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_webmvc_5_3_24.xml deleted file mode 100644 index 5d6379f..0000000 --- a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_webmvc_5_3_24.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_context_5_3_5.xml b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_webmvc_5_3_30.xml similarity index 58% rename from springmvc_all/.idea/libraries/Maven__org_springframework_spring_context_5_3_5.xml rename to springmvc_all/.idea/libraries/Maven__org_springframework_spring_webmvc_5_3_30.xml index b797ce7..1306790 100644 --- a/springmvc_all/.idea/libraries/Maven__org_springframework_spring_context_5_3_5.xml +++ b/springmvc_all/.idea/libraries/Maven__org_springframework_spring_webmvc_5_3_30.xml @@ -1,13 +1,13 @@ - + - + - + - + \ No newline at end of file diff --git a/springmvc_all/.idea/libraries/commons_fileupload_1_4.xml b/springmvc_all/.idea/libraries/commons_fileupload_1_4.xml new file mode 100644 index 0000000..746b49e --- /dev/null +++ b/springmvc_all/.idea/libraries/commons_fileupload_1_4.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/springmvc_all/.idea/vcs.xml b/springmvc_all/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/springmvc_all/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/springmvc_all/ssm01/pom.xml b/springmvc_all/ssm01/pom.xml new file mode 100644 index 0000000..2d04b18 --- /dev/null +++ b/springmvc_all/ssm01/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + + org.zhangzeyuan + ssm01 + 1.0-SNAPSHOT + + + \ No newline at end of file diff --git a/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/controller/FileUploadController.java b/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/controller/FileUploadController.java new file mode 100644 index 0000000..d170e04 --- /dev/null +++ b/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/controller/FileUploadController.java @@ -0,0 +1,9 @@ +package com.zhangzeyuan.controller; + +/** + * @Author ZZY_1 + * @Date 2023/12/25 17:03 + * @Version 1.0 + */ +public class FileUploadController { +} diff --git a/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/controller/UserController.java b/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/controller/UserController.java new file mode 100644 index 0000000..117b407 --- /dev/null +++ b/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/controller/UserController.java @@ -0,0 +1,27 @@ +package com.zhangzeyuan.controller; + +import com.zhangzeyuan.pojo.User; +import com.zhangzeyuan.service.UserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; + +/** + * @Author ZZY_1 + * @Date 2023/12/24 11:27 + * @Version 1.0 + */ + +@Controller +public class UserController { + @Autowired + UserService userService; + @RequestMapping("/login.do") + public String login(String username, String password) { + User user = userService.findUser(username, password); + if (user != null) { + return "success"; + } + return "error"; + } +} diff --git a/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/mapper/UserMapper.java b/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/mapper/UserMapper.java new file mode 100644 index 0000000..80678cd --- /dev/null +++ b/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/mapper/UserMapper.java @@ -0,0 +1,12 @@ +package com.zhangzeyuan.dao; + +import com.zhangzeyuan.pojo.User; + +/** + * @Author ZZY_1 + * @Date 2023/12/24 11:26 + * @Version 1.0 + */ +public interface UserMapper { + User findUser(String username, String password); +} diff --git a/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/pojo/User.java b/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/pojo/User.java new file mode 100644 index 0000000..00582c6 --- /dev/null +++ b/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/pojo/User.java @@ -0,0 +1,24 @@ +package com.zhangzeyuan.pojo; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.springframework.stereotype.Repository; +import org.springframework.web.servlet.view.InternalResourceViewResolver; + +import java.io.Serializable; + +/** + * @Author ZZY_1 + * @Date 2023/12/24 11:25 + * @Version 1.0 + */ +@Repository +@Data +@NoArgsConstructor +@AllArgsConstructor +public class User implements Serializable { + private InternalResourceViewResolver uid; + private String username; + private String password; +} diff --git a/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/service/UserService.java b/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/service/UserService.java new file mode 100644 index 0000000..cb13d10 --- /dev/null +++ b/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/service/UserService.java @@ -0,0 +1,12 @@ +package com.zhangzeyuan.service; + +import com.zhangzeyuan.pojo.User; + +/** + * @Author ZZY_1 + * @Date 2023/12/24 11:26 + * @Version 1.0 + */ +public interface UserService { + User findUser(String username, String password); +} diff --git a/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/service/impl/UserServiceImpl.java b/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/service/impl/UserServiceImpl.java new file mode 100644 index 0000000..78b6530 --- /dev/null +++ b/springmvc_all/ssm01/src/main/java/com/zhangzeyuan/service/impl/UserServiceImpl.java @@ -0,0 +1,26 @@ +package com.zhangzeyuan.service.impl; + +import com.zhangzeyuan.dao.UserMapper; +import com.zhangzeyuan.pojo.User; +import com.zhangzeyuan.service.UserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** + * @Author ZZY_1 + * @Date 2023/12/24 12:52 + * @Version 1.0 + */ +@Service +@Transactional +public class UserServiceImpl implements UserService { + + @Autowired + UserMapper userMapper; + @Override + public User findUser(String username, String password) { + User user=userMapper.findUser(username, password); + return user; + } +} diff --git a/springmvc_all/ssm01/src/main/resources/applicationContext.xml b/springmvc_all/ssm01/src/main/resources/applicationContext.xml new file mode 100644 index 0000000..e69de29 diff --git a/springmvc_all/ssm01/src/main/resources/com/zhangzeyuan/mapper/UserMapper.xml b/springmvc_all/ssm01/src/main/resources/com/zhangzeyuan/mapper/UserMapper.xml new file mode 100644 index 0000000..4869b22 --- /dev/null +++ b/springmvc_all/ssm01/src/main/resources/com/zhangzeyuan/mapper/UserMapper.xml @@ -0,0 +1,14 @@ + + + + + + + + \ No newline at end of file diff --git a/springmvc_all/ssm01/src/main/resources/jdbc.properties b/springmvc_all/ssm01/src/main/resources/jdbc.properties new file mode 100644 index 0000000..e69de29 diff --git a/springmvc_all/ssm01/src/main/resources/log4j2.xml b/springmvc_all/ssm01/src/main/resources/log4j2.xml new file mode 100644 index 0000000..e69de29 diff --git a/springmvc_all/ssm01/src/main/resources/springmvc.xml b/springmvc_all/ssm01/src/main/resources/springmvc.xml new file mode 100644 index 0000000..59a8ff3 --- /dev/null +++ b/springmvc_all/ssm01/src/main/resources/springmvc.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + diff --git a/springmvc_all/ssm01/src/main/webapp/WEB-INF/view/error.jsp b/springmvc_all/ssm01/src/main/webapp/WEB-INF/view/error.jsp new file mode 100644 index 0000000..ee11685 --- /dev/null +++ b/springmvc_all/ssm01/src/main/webapp/WEB-INF/view/error.jsp @@ -0,0 +1,22 @@ +<%-- + Created by IntelliJ IDEA. + User: ZZY_1 + Date: 2023/12/24 + Time: 12:50 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + + + + + + + +登录失败 + + diff --git a/springmvc_all/ssm01/src/main/webapp/WEB-INF/view/fileUpload.jsp b/springmvc_all/ssm01/src/main/webapp/WEB-INF/view/fileUpload.jsp new file mode 100644 index 0000000..5f34f0d --- /dev/null +++ b/springmvc_all/ssm01/src/main/webapp/WEB-INF/view/fileUpload.jsp @@ -0,0 +1,22 @@ +<%-- + Created by IntelliJ IDEA. + User: ZZY_1 + Date: 2023/12/25 + Time: 16:47 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + + + + + + +$END$ + + diff --git a/springmvc_all/ssm01/src/main/webapp/WEB-INF/view/showDataPage.jsp b/springmvc_all/ssm01/src/main/webapp/WEB-INF/view/showDataPage.jsp new file mode 100644 index 0000000..46264aa --- /dev/null +++ b/springmvc_all/ssm01/src/main/webapp/WEB-INF/view/showDataPage.jsp @@ -0,0 +1,22 @@ +<%-- + Created by IntelliJ IDEA. + User: ZZY_1 + Date: 2023/12/24 + Time: 23:49 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + + + + + + +$END$ + + diff --git a/springmvc_all/ssm01/src/main/webapp/WEB-INF/view/success.jsp b/springmvc_all/ssm01/src/main/webapp/WEB-INF/view/success.jsp new file mode 100644 index 0000000..0b91e09 --- /dev/null +++ b/springmvc_all/ssm01/src/main/webapp/WEB-INF/view/success.jsp @@ -0,0 +1,22 @@ +<%-- + Created by IntelliJ IDEA. + User: ZZY_1 + Date: 2023/12/24 + Time: 12:50 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + + + + + + + +登录成功 + + diff --git a/springmvc_all/ssm01/src/main/webapp/js/WdatePicker.js b/springmvc_all/ssm01/src/main/webapp/js/WdatePicker.js new file mode 100644 index 0000000..d402f65 --- /dev/null +++ b/springmvc_all/ssm01/src/main/webapp/js/WdatePicker.js @@ -0,0 +1,58 @@ +/* + * My97 DatePicker 4.8 + * License: http://www.my97.net/license.asp + */ +var $dp,WdatePicker;(function(){var l={ +$langList:[ +{name:"en",charset:"UTF-8"}, +{name:"zh-cn",charset:"gb2312"}, +{name:"zh-tw",charset:"GBK"} +], +$skinList:[ +{name:"default",charset:"gb2312"}, +{name:"whyGreen",charset:"gb2312"}, +{name:"blue",charset:"gb2312"}, +{name:"green",charset:"gb2312"}, +{name:"simple",charset:"gb2312"}, +{name:"ext",charset:"gb2312"}, +{name:"blueFresh",charset:"gb2312"}, +{name:"twoer",charset:"gb2312"}, +{name:"YcloudRed",charset:"gb2312"}], +$wdate:true, +$crossFrame:false, +$preLoad:false, +$dpPath:"", +doubleCalendar:false, +enableKeyboard:true, +enableInputMask:true, +autoUpdateOnChanged:null, +weekMethod:"MSExcel", +position:{}, +lang:"auto", +skin:"default", +dateFmt:"yyyy-MM-dd", +realDateFmt:"yyyy-MM-dd", +realTimeFmt:"HH:mm:ss", +realFullFmt:"%Date %Time", +minDate:"0001-01-01 00:00:00", +maxDate:"9999-12-31 23:59:59", +minTime:"00:00:00", +maxTime:"23:59:59", +startDate:"", +alwaysUseStartDate:false, +yearOffset:1911, +firstDayOfWeek:0, +isShowWeek:false, +highLineWeekDay:true, +isShowClear:true, +isShowToday:true, +isShowOK:true, +isShowOthers:true, +readOnly:false, +errDealMode:0, +autoPickDate:null, +qsEnabled:true, +autoShowQS:false, +hmsMenuCfg:{H:[1,6],m:[5,6],s:[15,4]}, + +opposite:false,specialDates:null,specialDays:null,disabledDates:null,disabledDays:null,onpicking:null,onpicked:null,onclearing:null,oncleared:null,ychanging:null,ychanged:null,Mchanging:null,Mchanged:null,dchanging:null,dchanged:null,Hchanging:null,Hchanged:null,mchanging:null,mchanged:null,schanging:null,schanged:null,eCont:null,vel:null,elProp:"",errMsg:"",quickSel:[],has:{},getRealLang:function(){var d=l.$langList;for(var e=0;e0?1:0;var K=new Date(this.dt.y,this.dt.M,0).getDate();this.dt.d=Math.min(K+M,this.dt.d)}}}}if(this.dt.refresh()){return this.dt}}return""},show:function(){var K=E[z].getElementsByTagName("div"),J=100000;for(var e=0;eJ){J=L}}this.dd.style.zIndex=J+2;r(this.dd,"block");r(this.dd.firstChild,"")},unbind:function(e){e=this.$(e);if(e.initcfg){t(e,"onclick",function(){g(e.initcfg)});t(e,"onfocus",function(){g(e.initcfg)})}},hide:function(){r(this.dd,"none")},attachEvent:k};for(var d in w){E.$dp[d]=w[d]}$dp=E.$dp}function k(I,J,w,d){if(I.addEventListener){var e=J.replace(/on/,"");w._ieEmuEventHandler=function(K){return w(K)};I.addEventListener(e,w._ieEmuEventHandler,d)}else{I.attachEvent(J,w)}}function t(w,I,e){if(w.removeEventListener){var d=I.replace(/on/,"");e._ieEmuEventHandler=function(J){return e(J)};w.removeEventListener(d,e._ieEmuEventHandler,false)}else{w.detachEvent(I,e)}}function C(w,e,d){if(typeof w!=typeof e){return false}if(typeof w=="object"){if(!d){for(var I in w){if(typeof e[I]=="undefined"){return false}if(!C(w[I],e[I],true)){return false}}}return true}else{if(typeof w=="function"&&typeof e=="function"){return w.toString()==e.toString()}else{return w==e}}}function q(){var I,w,d=n[z][H]("script");for(var e=0;e0){I=I.substring(0,w+1)}if(I){break}}return I}function m(w,I,J){var d=n[z][H]("HEAD").item(0),e=n[z].createElement("link");if(d){e.href=w;e.rel="stylesheet";e.type="text/css";if(I){e.title=I}if(J){e.charset=J}d.appendChild(e)}}function p(I){I=I||E;var L=0,d=0;while(I!=E){var N=I.parent[z][H]("iframe");for(var J=0;JI.scrollTop||d.scrollLeft>I.scrollLeft))?d:I;return{top:J.scrollTop,left:J.scrollLeft}}function s(d){try{var w=d?(d.srcElement||d.target):null;if($dp.cal&&!$dp.eCont&&$dp.dd&&w!=$dp.el&&$dp.dd.style.display=="block"){$dp.cal.close()}}catch(d){}}function A(){$dp.status=2}var G,j;function g(M,d){if(!$dp){return}b();var J={};for(var L in M){J[L]=M[L]}for(var L in l){if(L.substring(0,1)!="$"&&J[L]===undefined){J[L]=l[L]}}if(d){if(!w()){j=j||setInterval(function(){if(E[z].readyState=="complete"){clearInterval(j)}g(null,true)},50);return}if($dp.status==0){$dp.status=1;J.el=i;a(J,true)}else{return}}else{if(J.eCont){J.eCont=$dp.$(J.eCont);J.el=i;J.autoPickDate=true;J.qsEnabled=false;a(J)}else{if(l.$preLoad&&$dp.status!=2){return}var I=N();if(n.event===I||I){J.srcEl=I.srcElement||I.target;I.cancelBubble=true}J.el=J.el=$dp.$(J.el||J.srcEl);if(J.el==null){alert("WdatePicker:el is null!\nexample:onclick=\"WdatePicker({el:this})\"");return;}try{if(!J.el||J.el.My97Mark===true||J.el.disabled||($dp.dd&&r($dp.dd)!="none"&&$dp.dd.style.left!="-970px")){if(J.el.My97Mark){J.el.My97Mark=false}return}}catch(K){}if(I&&J.el.nodeType==1&&!C(J.el.initcfg,M)){$dp.unbind(J.el);k(J.el,I.type=="focus"?"onclick":"onfocus",function(){g(M)});J.el.initcfg=M}a(J)}}function w(){if(h&&E!=n&&E[z].readyState!="complete"){return false}return true}function N(){if(f){try{func=N.caller;while(func!=null){var O=func.arguments[0];if(O&&(O+"").indexOf("Event")>=0){return O}func=func.caller}}catch(P){}return null}return event}}function c(e,d){return e.currentStyle?e.currentStyle[d]:document.defaultView.getComputedStyle(e,false)[d]}function r(e,d){if(e){if(d!=null){e.style.display=d}else{return c(e,"display")}}}function a(e,d){var K=e.el?e.el.nodeName:"INPUT";if(d||e.eCont||new RegExp(/input|textarea|div|span|p|a/ig).test(K)){e.elProp=K=="INPUT"?"value":"innerHTML"}else{return}if(e.lang=="auto"){e.lang=h?navigator.browserLanguage.toLowerCase():navigator.language.toLowerCase()}if(!e.eCont){for(var J in e){$dp[J]=e[J]}}if(!$dp.dd||e.eCont||($dp.dd&&(e.getRealLang().name!=$dp.dd.lang||e.skin!=$dp.dd.skin))){if(e.eCont){w(e.eCont,e)}else{$dp.dd=E[z].createElement("DIV");$dp.dd.style.cssText="position:absolute";E[z].body.appendChild($dp.dd);w($dp.dd,e);if(d){$dp.dd.style.left=$dp.dd.style.top="-970px"}else{$dp.show();I($dp)}}}else{if($dp.cal){$dp.show();$dp.cal.init();if(!$dp.eCont){I($dp)}}}function w(V,P){var O=E[z].domain,S=false,M='';V.innerHTML=M;var L=l.$langList,U=l.$skinList,T;try{T=V.lastChild.contentWindow[z]}catch(Q){S=true;V.removeChild(V.lastChild);var N=E[z].createElement("iframe");N.hideFocus=true;N.frameBorder=0;N.scrolling="no";N.src="javascript:(function(){var d=document;d.open();d.domain='"+O+"';})()";V.appendChild(N);setTimeout(function(){T=V.lastChild.contentWindow[z];R()},97);return}R();function R(){var Y=P.getRealLang();V.lang=Y.name;V.skin=P.skin;var X=["