diff --git a/.idea/artifacts/equipment_SpringMVCProject_Web_exploded.xml b/.idea/artifacts/equipment_SpringMVCProject_Web_exploded.xml new file mode 100644 index 0000000..0add569 --- /dev/null +++ b/.idea/artifacts/equipment_SpringMVCProject_Web_exploded.xml @@ -0,0 +1,13 @@ + + + $PROJECT_DIR$/out/artifacts/equipment_SpringMVCProject_Web_exploded + + + + + + + + + + \ No newline at end of file diff --git a/.idea/artifacts/equipment_Web_exploded.xml b/.idea/artifacts/equipment_Web_exploded.xml new file mode 100644 index 0000000..297d50e --- /dev/null +++ b/.idea/artifacts/equipment_Web_exploded.xml @@ -0,0 +1,13 @@ + + + $PROJECT_DIR$/out/artifacts/equipment_Web_exploded + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/commons_logging_1_1_1__2_.xml b/.idea/libraries/commons_logging_1_1_1__2_.xml new file mode 100644 index 0000000..f6e7b69 --- /dev/null +++ b/.idea/libraries/commons_logging_1_1_1__2_.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/commons_logging_1_1_1__3_.xml b/.idea/libraries/commons_logging_1_1_1__3_.xml new file mode 100644 index 0000000..54a83be --- /dev/null +++ b/.idea/libraries/commons_logging_1_1_1__3_.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/webContexts.xml b/.idea/webContexts.xml new file mode 100644 index 0000000..0aec845 --- /dev/null +++ b/.idea/webContexts.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/equipment-SpringMVCProject/equipment-SpringMVCProject.iml b/equipment-SpringMVCProject/equipment-SpringMVCProject.iml index c90834f..28b5132 100644 --- a/equipment-SpringMVCProject/equipment-SpringMVCProject.iml +++ b/equipment-SpringMVCProject/equipment-SpringMVCProject.iml @@ -1,5 +1,17 @@ + + + + + + + + + + + + @@ -7,5 +19,7 @@ + + \ No newline at end of file diff --git a/equipment-SpringMVCProject/src/com/ssm/controller/FirstController.java b/equipment-SpringMVCProject/src/com/ssm/controller/FirstController.java index d87905e..829dca6 100644 --- a/equipment-SpringMVCProject/src/com/ssm/controller/FirstController.java +++ b/equipment-SpringMVCProject/src/com/ssm/controller/FirstController.java @@ -1,5 +1,13 @@ package com.ssm.controller; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; + +@Controller public class FirstController { + @RequestMapping("hello") + public String hello(){ + return "showFirst"; + } } diff --git a/equipment-SpringMVCProject/src/com/ssm/controller/Main.java b/equipment-SpringMVCProject/src/com/ssm/controller/Main.java new file mode 100644 index 0000000..021bb99 --- /dev/null +++ b/equipment-SpringMVCProject/src/com/ssm/controller/Main.java @@ -0,0 +1,4 @@ +package com.ssm.controller; + +public class Main { +} diff --git a/equipment-SpringMVCProject/src/springmvc.xml b/equipment-SpringMVCProject/src/springmvc.xml index 33d8c55..8425f55 100644 --- a/equipment-SpringMVCProject/src/springmvc.xml +++ b/equipment-SpringMVCProject/src/springmvc.xml @@ -3,7 +3,25 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/tool http://www.springframework.org/schema/tool/spring-tool.xsd http://www.springframework.org/schema/mvc https://www.springframework.org/schema/mvc/spring-mvc.xsd"> + xsi:schemaLocation=" + http://www.springframework.org/schema/beans + https://www.springframework.org/schema/beans/spring-beans.xsd + http://www.springframework.org/schema/context + https://www.springframework.org/schema/context/spring-context.xsd + http://www.springframework.org/schema/mvc + https://www.springframework.org/schema/mvc/spring-mvc.xsd"> - + + + + + + + + + + + + + + \ No newline at end of file diff --git a/equipment-SpringMVCProject/web/First.jsp b/equipment-SpringMVCProject/web/First.jsp new file mode 100644 index 0000000..b415e6b --- /dev/null +++ b/equipment-SpringMVCProject/web/First.jsp @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: AA7 + Date: 2026/4/23 + Time: 9:07 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 入门程序 + + +hello world + + diff --git a/equipment-SpringMVCProject/web/WEB-INF/lib/commons-logging-1.1.1.jar b/equipment-SpringMVCProject/web/WEB-INF/lib/commons-logging-1.1.1.jar new file mode 100644 index 0000000..8758a96 Binary files /dev/null and b/equipment-SpringMVCProject/web/WEB-INF/lib/commons-logging-1.1.1.jar differ diff --git a/equipment-SpringMVCProject/web/WEB-INF/lib/spring-aop-5.1.6.RELEASE.jar b/equipment-SpringMVCProject/web/WEB-INF/lib/spring-aop-5.1.6.RELEASE.jar new file mode 100644 index 0000000..35f580e Binary files /dev/null and b/equipment-SpringMVCProject/web/WEB-INF/lib/spring-aop-5.1.6.RELEASE.jar differ diff --git a/equipment-SpringMVCProject/web/WEB-INF/lib/spring-beans-5.1.6.RELEASE.jar b/equipment-SpringMVCProject/web/WEB-INF/lib/spring-beans-5.1.6.RELEASE.jar new file mode 100644 index 0000000..39813b2 Binary files /dev/null and b/equipment-SpringMVCProject/web/WEB-INF/lib/spring-beans-5.1.6.RELEASE.jar differ diff --git a/equipment-SpringMVCProject/web/WEB-INF/lib/spring-context-5.1.6.RELEASE.jar b/equipment-SpringMVCProject/web/WEB-INF/lib/spring-context-5.1.6.RELEASE.jar new file mode 100644 index 0000000..5165820 Binary files /dev/null and b/equipment-SpringMVCProject/web/WEB-INF/lib/spring-context-5.1.6.RELEASE.jar differ diff --git a/equipment-SpringMVCProject/web/WEB-INF/lib/spring-core-5.1.6.RELEASE.jar b/equipment-SpringMVCProject/web/WEB-INF/lib/spring-core-5.1.6.RELEASE.jar new file mode 100644 index 0000000..5522cf3 Binary files /dev/null and b/equipment-SpringMVCProject/web/WEB-INF/lib/spring-core-5.1.6.RELEASE.jar differ diff --git a/equipment-SpringMVCProject/web/WEB-INF/lib/spring-expression-5.1.6.RELEASE.jar b/equipment-SpringMVCProject/web/WEB-INF/lib/spring-expression-5.1.6.RELEASE.jar new file mode 100644 index 0000000..cdc7956 Binary files /dev/null and b/equipment-SpringMVCProject/web/WEB-INF/lib/spring-expression-5.1.6.RELEASE.jar differ diff --git a/equipment-SpringMVCProject/web/WEB-INF/lib/spring-web-5.1.6.RELEASE.jar b/equipment-SpringMVCProject/web/WEB-INF/lib/spring-web-5.1.6.RELEASE.jar new file mode 100644 index 0000000..1e346d9 Binary files /dev/null and b/equipment-SpringMVCProject/web/WEB-INF/lib/spring-web-5.1.6.RELEASE.jar differ diff --git a/equipment-SpringMVCProject/web/WEB-INF/lib/spring-webmvc-5.1.6.RELEASE.jar b/equipment-SpringMVCProject/web/WEB-INF/lib/spring-webmvc-5.1.6.RELEASE.jar new file mode 100644 index 0000000..c6bec3a Binary files /dev/null and b/equipment-SpringMVCProject/web/WEB-INF/lib/spring-webmvc-5.1.6.RELEASE.jar differ diff --git a/equipment-SpringMVCProject/web/WEB-INF/web.xml b/equipment-SpringMVCProject/web/WEB-INF/web.xml index c8ccaf3..0e6e292 100644 --- a/equipment-SpringMVCProject/web/WEB-INF/web.xml +++ b/equipment-SpringMVCProject/web/WEB-INF/web.xml @@ -1,12 +1,22 @@ - - equipment-SpringMVCProject - - index.html - index.htm - index.jsp - default.html - default.htm - default.jsp - + + + + DispatcherServlet + org.springframework.web.servlet.DispatcherServlet + + contextConfigLocation + classpath:springmvc.xml + + 1 + + + + DispatcherServlet + / + + \ No newline at end of file diff --git a/equipment-SpringMVCProject/web/showFirst.jsp b/equipment-SpringMVCProject/web/showFirst.jsp new file mode 100644 index 0000000..57950a4 --- /dev/null +++ b/equipment-SpringMVCProject/web/showFirst.jsp @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: AA7 + Date: 2026/4/25 + Time: 22:14 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 入门程序 + + +success! + + diff --git a/equipment/equipment.iml b/equipment/equipment.iml index fb8e866..4703a20 100644 --- a/equipment/equipment.iml +++ b/equipment/equipment.iml @@ -1,5 +1,18 @@ + + + + + + + + + + + + + diff --git a/equipment/web/web/WEB-INF/web.xml b/equipment/web/web/WEB-INF/web.xml new file mode 100644 index 0000000..d80081d --- /dev/null +++ b/equipment/web/web/WEB-INF/web.xml @@ -0,0 +1,6 @@ + + + \ No newline at end of file