Skip to content

A creative student management system was built using Java-17 and Spring Boot.

Notifications You must be signed in to change notification settings

srinathsai/Student-Management-System-using-Spring-Thymeleaf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Student-Management-System-using-Spring-Thymeleaf

Motivation:-

In my previous Springboot applications which are Todo Management and User management I have implemented only Database operations using Spring Boot, so in order to check their working we required external Postman API, client-server, and needs a lot of manual processes in changing the requested link, JSON body ..etc. In an ideal atmosphere, this task is very very tedious. So one improvement can be implementing a form-like structure in the front end where users can play with the Database by just entering information or clicking buttons. Therefore this project aims to achieve the above-mentioned task using Spring Thymeleaf while maintaining the crud operations on the database using Spring Data JPA and DTO layer.

Introduction:-

Thymeleaf is a Java template engine on the client side for processing and creating HTML, XML, JavaScript, CSS, and text. The Thymeleaf engine will search for templates in the resources folder, based on the written Thymeleaf keywords in the HTML it relates the objects and their working and gives results in HTML. In other words, it's working can be described by the following steps:-

  • Thymeleaf follows a De-Coupled Architecture .
  • In the same way, it is unaware of Spring’s abstraction of the model and thus cannot handle the data that the controller places in the Model.
  • When Spring-Boot’s autoconfiguration detects Thymeleaf in the classpath, it creates beans supporting Thymeleaf view for Spring MVC.
  • It can work with request attributes of Servlet.
  • Therefore, Spring copies the model data into request attributes that the Thymeleaf template can work with.

Architecture:-

this is an image

Steps of Execution:-

  • First, download the code and open it in IntelliJIdea or any Java IDE.(Note you no need to add any configurations for Spring or you no need to adjust any dependency version because here by using Spring initializer necessary dependencies with recent versions have been added and it is reflected in Pom.xml file.)< br />
  • In application.properties file change Spring.datasource url to your MySQL url which at the time of installing MySQL you would get this url.
  • Change username and password in application.properties file of yours that you have set while installing MySQL .
  • Change hibernate dialect to MySQL dialect.
    (Note just change urls that are present on right hand side of equal to sign in Applications.properties file).
  • Now for playing with this system you need to type url localhost:8080/students in web browser . Then you will be first seen with a form of list of students already in databse if not you can create a new one by clicking new student in navigation bar. Each and every detail of student is validated with Spring validation annotations and dependency. If there are students in your db then you will have 3 options beside him in 3 buttons which are delete, edit, view and by pressing them they will work accordingly.

About

A creative student management system was built using Java-17 and Spring Boot.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published