Fixed minor comments

This commit is contained in:
gmaipady 2015-12-20 21:43:31 +05:30
parent 06ded372a4
commit 2ea5de304b
3 changed files with 34 additions and 8 deletions

View File

@ -7,11 +7,17 @@
### Build the Project ### Build the Project
```
mvn clean install
```
Access sample pages using the URLs: mvn clean install
http://localhost:8080/spring-thymeleaf/
http://localhost:8080/spring-thymeleaf/addStudent/ ### Run the Project
http://localhost:8080/spring-thymeleaf/listStudents/ 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-compiler-plugin.version>3.3</maven-compiler-plugin.version>
<maven-war-plugin.version>2.6</maven-war-plugin.version> <maven-war-plugin.version>2.6</maven-war-plugin.version>
<maven-surefire-plugin.version>2.18.1</maven-surefire-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> </properties>
<dependencies> <dependencies>
<!-- Spring --> <!-- Spring -->
@ -123,6 +124,25 @@
</systemPropertyVariables> </systemPropertyVariables>
</configuration> </configuration>
</plugin> </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> </plugins>
</build> </build>
</project> </project>

View File

@ -15,7 +15,7 @@ public class Student implements Serializable {
private static final long serialVersionUID = -8582553475226281591L; private static final long serialVersionUID = -8582553475226281591L;
@NotNull(message = "Student ID is required.") @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; private Integer id;
@NotNull(message = "Student name is required.") @NotNull(message = "Student name is required.")