Fixed minor comments

This commit is contained in:
gmaipady 2015-12-20 21:43:31 +05:30 committed by David Morley
parent 1bb2d7c883
commit 97ccb91558
3 changed files with 34 additions and 8 deletions

View File

@ -7,11 +7,17 @@
### Build the Project
```
mvn clean install
```
Access sample pages using the URLs:
http://localhost:8080/spring-thymeleaf/
http://localhost:8080/spring-thymeleaf/addStudent/
http://localhost:8080/spring-thymeleaf/listStudents/
mvn clean install
### Run the Project
mvn cargo:run
- **note**: starts on port '8082'
Access the pages using the URLs:
http://localhost:8082/spring-thymeleaf/
http://localhost:8082/spring-thymeleaf/addStudent/
http://localhost:8082/spring-thymeleaf/listStudents/
The first URL is the home page of the application. The home page has links to the other two pages.

View File

@ -22,6 +22,7 @@
<maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
<maven-war-plugin.version>2.6</maven-war-plugin.version>
<maven-surefire-plugin.version>2.18.1</maven-surefire-plugin.version>
<cargo-maven2-plugin.version>1.4.15</cargo-maven2-plugin.version>
</properties>
<dependencies>
<!-- Spring -->
@ -123,6 +124,25 @@
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>${cargo-maven2-plugin.version}</version>
<configuration>
<wait>true</wait>
<container>
<containerId>jetty8x</containerId>
<type>embedded</type>
<systemProperties>
</systemProperties>
</container>
<configuration>
<properties>
<cargo.servlet.port>8082</cargo.servlet.port>
</properties>
</configuration>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -15,7 +15,7 @@ public class Student implements Serializable {
private static final long serialVersionUID = -8582553475226281591L;
@NotNull(message = "Student ID is required.")
@Min(value = 1000, message = "Student ID must be atleast 4 digits.")
@Min(value = 1000, message = "Student ID must be at least 4 digits.")
private Integer id;
@NotNull(message = "Student name is required.")