王健旭完善FirstController.java代码 喻廷屿完善showFirst.jsp代码 孙佳兴完善first.jsp代码 赵文博完善web.xml 调试并运行main
parent
34803158ac
commit
6b0288450e
@ -0,0 +1,13 @@
|
||||
<component name="ArtifactManager">
|
||||
<artifact type="exploded-war" name="equipment-SpringMVCProject:Web exploded">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/equipment_SpringMVCProject_Web_exploded</output-path>
|
||||
<root id="root">
|
||||
<element id="javaee-facet-resources" facet="equipment-SpringMVCProject/web/Web" />
|
||||
<element id="directory" name="WEB-INF">
|
||||
<element id="directory" name="classes">
|
||||
<element id="module-output" name="equipment-SpringMVCProject" />
|
||||
</element>
|
||||
</element>
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
||||
@ -0,0 +1,13 @@
|
||||
<component name="ArtifactManager">
|
||||
<artifact type="exploded-war" name="equipment:Web exploded">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/equipment_Web_exploded</output-path>
|
||||
<root id="root">
|
||||
<element id="javaee-facet-resources" facet="equipment/web/Web" />
|
||||
<element id="directory" name="WEB-INF">
|
||||
<element id="directory" name="classes">
|
||||
<element id="module-output" name="equipment" />
|
||||
</element>
|
||||
</element>
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
||||
@ -0,0 +1,16 @@
|
||||
<component name="libraryTable">
|
||||
<library name="commons-logging-1.1.1 (2)">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/commons-logging-1.1.1.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/spring-aop-5.1.6.RELEASE.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/spring-aspects-5.1.6.RELEASE.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/spring-beans-5.1.6.RELEASE.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/spring-context-5.1.6.RELEASE.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/spring-core-5.1.6.RELEASE.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/spring-web-5.1.6.RELEASE.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/spring-webmvc-5.1.6.RELEASE.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@ -0,0 +1,16 @@
|
||||
<component name="libraryTable">
|
||||
<library name="commons-logging-1.1.1 (3)">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/commons-logging-1.1.1.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/spring-aop-5.1.6.RELEASE.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/spring-beans-5.1.6.RELEASE.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/spring-context-5.1.6.RELEASE.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/spring-core-5.1.6.RELEASE.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/spring-expression-5.1.6.RELEASE.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/spring-web-5.1.6.RELEASE.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/equipment-SpringMVCProject/web/WEB-INF/lib/spring-webmvc-5.1.6.RELEASE.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
||||
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="WebContextManager">
|
||||
<option name="state">
|
||||
<map>
|
||||
<entry key="file://$PROJECT_DIR$/equipment-SpringMVCProject/web/First.jsp" value="file://$PROJECT_DIR$/equipment-SpringMVCProject/web" />
|
||||
</map>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
@ -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";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
package com.ssm.controller;
|
||||
|
||||
public class Main {
|
||||
}
|
||||
@ -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" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>入门程序</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="hello">hello world</a>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,12 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
|
||||
<display-name>equipment-SpringMVCProject</display-name>
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
<welcome-file>index.htm</welcome-file>
|
||||
<welcome-file>index.jsp</welcome-file>
|
||||
<welcome-file>default.html</welcome-file>
|
||||
<welcome-file>default.htm</welcome-file>
|
||||
<welcome-file>default.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
|
||||
version="4.0">
|
||||
|
||||
<servlet>
|
||||
<servlet-name>DispatcherServlet</servlet-name>
|
||||
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>classpath:springmvc.xml</param-value>
|
||||
</init-param>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>DispatcherServlet</servlet-name>
|
||||
<url-pattern>/</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
</web-app>
|
||||
@ -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" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>入门程序</title>
|
||||
</head>
|
||||
<body>
|
||||
success!
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
|
||||
version="4.0">
|
||||
</web-app>
|
||||
Loading…
Reference in new issue