2015-12-09 18:13:30 +05:30
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								=========
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								## Spring Thymeleaf Example Project
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								### Relevant Articles: 
							 | 
						
					
						
							
								
									
										
										
										
											2016-10-04 15:26:33 +06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- [Introduction to Using Thymeleaf in Spring](http://www.baeldung.com/thymeleaf-in-spring-mvc)
							 | 
						
					
						
							
								
									
										
										
										
											2016-10-04 15:33:02 +06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- [CSRF Protection with Spring MVC and Thymeleaf](http://www.baeldung.com/csrf-thymeleaf-with-spring-security)
							 | 
						
					
						
							
								
									
										
										
										
											2016-11-11 16:44:13 +06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- [Thymeleaf: Custom Layout Dialect](http://www.baeldung.com/thymeleaf-spring-layouts)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								- [Spring and Thymeleaf 3: Expressions](http://www.baeldung.com/spring-thymeleaf-3-expressions)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								- [Spring MVC + Thymeleaf 3.0: New Features](http://www.baeldung.com/spring-thymeleaf-3)
							 | 
						
					
						
							
								
									
										
										
										
											2017-01-10 12:34:18 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- [How to Work with Dates in Thymeleaef](http://www.baeldung.com/dates-in-thymeleaf)
							 | 
						
					
						
							
								
									
										
										
										
											2017-01-20 04:10:13 +06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- [How to Create an Executable JAR with Maven](http://www.baeldung.com/executable-jar-with-maven)
							 | 
						
					
						
							
								
									
										
										
										
											2018-05-06 19:15:23 +05:30
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- [Working with Boolean in Thymeleaf](http://www.baeldung.com/thymeleaf-boolean)
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-24 21:50:57 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- [Working with Fragments in Thymeleaf](http://www.baeldung.com/spring-thymeleaf-fragments)
							 | 
						
					
						
							
								
									
										
										
										
											2018-05-02 13:11:09 +05:30
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- [Conditionals in Thymeleaf](http://www.baeldung.com/spring-thymeleaf-conditionals)
							 | 
						
					
						
							
								
									
										
										
										
											2018-05-06 19:15:23 +05:30
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- [Iteration in Thymeleaf](http://www.baeldung.com/thymeleaf-iteration)
							 | 
						
					
						
							
								
									
										
										
										
											2018-06-01 18:04:12 +06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- [Working With Arrays in Thymeleaf](http://www.baeldung.com/thymeleaf-arrays)
							 | 
						
					
						
							
								
									
										
										
										
											2018-06-30 08:28:44 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- [Spring with Thymeleaf Pagination for a List](http://www.baeldung.com/spring-thymeleaf-pagination)
							 | 
						
					
						
							
								
									
										
										
										
											2018-07-13 12:57:45 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- [Working with Select and Option in Thymeleaf](http://www.baeldung.com/thymeleaf-select-option)
							 | 
						
					
						
							
								
									
										
										
										
											2018-09-07 16:56:13 +06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- [Working With Custom HTML Attributes in Thymeleaf](https://www.baeldung.com/thymeleaf-custom-html-attributes)
							 | 
						
					
						
							
								
									
										
										
										
											2016-11-03 12:47:43 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-09 18:13:30 +05:30
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								### Build the Project
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-20 21:43:31 +05:30
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-09 18:13:30 +05:30
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								mvn clean install
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2016-11-03 12:47:43 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-20 21:43:31 +05:30
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								### Run the Project
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								mvn cargo:run
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								- **note**: starts on port '8082'
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								Access the pages using the URLs:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-23 06:37:12 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								 - http://localhost:8082/spring-thymeleaf/
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								 - http://localhost:8082/spring-thymeleaf/addStudent/
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								 - http://localhost:8082/spring-thymeleaf/listStudents/
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								 - http://localhost:8082/spring-thymeleaf/booleans/
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-20 21:43:31 +05:30
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-23 06:37:12 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								The first URL is the home page of the application. The home page has links to the second and third pages.
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-06 04:46:47 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								### Security
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								The user/password required is: user1/user1Pass
							 |