Giter VIP home page Giter VIP logo

student-management-system-using-spring-thymeleaf's Introduction

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.

student-management-system-using-spring-thymeleaf's People

Contributors

srinathsai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.