Skip to content

Commit b9491af

Browse files
committed
gitignore added
1 parent ed8dac9 commit b9491af

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

springmvc-helloworld/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
/target/
22
/bin/
3+
/.settings/
4+
.classpath
5+
.project

springmvc-helloworld/pom.xml

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4+
35
<modelVersion>4.0.0</modelVersion>
46
<groupId>jbr</groupId>
5-
<artifactId>SpringMvcMaven</artifactId>
7+
<artifactId>springmvc-helloworld</artifactId>
68
<packaging>war</packaging>
79
<version>0.1</version>
8-
<name>SpringMvcMaven Maven Webapp</name>
10+
<name>springmvc-helloworld Maven Webapp</name>
911
<url>http://maven.apache.org</url>
12+
1013
<properties>
1114
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1215
<spring.version>4.3.2.RELEASE</spring.version>
1316
<junit.version>4.12</junit.version>
1417
<servlet.version>3.1.0</servlet.version>
18+
<java.version>1.8</java.version>
1519
</properties>
1620

1721
<dependencies>
@@ -69,6 +73,17 @@
6973
</dependency>
7074
</dependencies>
7175
<build>
72-
<finalName>SpringMvcMaven</finalName>
76+
<finalName>springmvc-helloworld</finalName>
77+
<sourceDirectory>src/main/java</sourceDirectory>
78+
<plugins>
79+
<plugin>
80+
<artifactId>maven-compiler-plugin</artifactId>
81+
<version>3.5.1</version>
82+
<configuration>
83+
<source>${java.version}</source>
84+
<target>${java.version}</target>
85+
</configuration>
86+
</plugin>
87+
</plugins>
7388
</build>
7489
</project>

springmvc-helloworld/src/main/webapp/index.jsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<html>
22
<body>
33
<h2>Hit Submit</h2>
4-
<form method="POST" action="/SpringMvcMaven/hello">
4+
<form method="POST" action="/springmvc-helloworld/hello">
55
<table>
66
<tr>
77
<td colspan="2"><input type="submit" value="Submit" /></td>

0 commit comments

Comments
 (0)