Skip to content

Commit 089dd22

Browse files
committed
init spring mvc module
1 parent 8fd99b4 commit 089dd22

6 files changed

Lines changed: 78 additions & 0 deletions

File tree

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<module>questionInwork</module>
1717
<module>apacheCommons</module>
1818
<module>stormexample</module>
19+
<module>springmvcexample</module>
1920
</modules>
2021

2122
<properties>

springmvcexample/pom.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<parent>
4+
<artifactId>javalearning</artifactId>
5+
<groupId>com.javalearning</groupId>
6+
<version>1.0-SNAPSHOT</version>
7+
</parent>
8+
<modelVersion>4.0.0</modelVersion>
9+
10+
<artifactId>springmvcexample</artifactId>
11+
<packaging>jar</packaging>
12+
13+
<name>springmvcexample</name>
14+
<url>http://maven.apache.org</url>
15+
16+
<properties>
17+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18+
</properties>
19+
20+
<dependencies>
21+
22+
<dependency>
23+
<groupId>junit</groupId>
24+
<artifactId>junit</artifactId>
25+
</dependency>
26+
</dependencies>
27+
</project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<beans xmlns="http://www.springframework.org/schema/beans"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
5+
6+
</beans>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<beans xmlns="http://www.springframework.org/schema/beans"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
5+
6+
</beans>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
5+
version="3.1">
6+
<context-param>
7+
<param-name>contextConfigLocation</param-name>
8+
<param-value>/WEB-INF/applicationContext.xml</param-value>
9+
</context-param>
10+
<listener>
11+
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
12+
</listener>
13+
<servlet>
14+
<servlet-name>dispatcher</servlet-name>
15+
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
16+
<load-on-startup>1</load-on-startup>
17+
</servlet>
18+
<servlet-mapping>
19+
<servlet-name>dispatcher</servlet-name>
20+
<url-pattern>*.form</url-pattern>
21+
</servlet-mapping>
22+
</web-app>

springmvcexample/web/index.jsp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<%--
2+
Created by IntelliJ IDEA.
3+
User: renqun.yuan
4+
Date: 2015/11/10
5+
Time: 20:10
6+
To change this template use File | Settings | File Templates.
7+
--%>
8+
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
9+
<html>
10+
<head>
11+
<title></title>
12+
</head>
13+
<body>
14+
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)