Posts

Showing posts with the label Thymeleaf

Spring Boot + Spring Data JPA + Thymeleaf ,Pagination & CRUD Application Example

Image
Hello everyone, hope you are doing well. Today we will learn how to develop a simple  Pagination & CRUD Application using  Spring Boot, Spring Data JPA, and Thymeleaf . Technologies Used: Java 17 Spring Boot 2.5.5 Spring Data JPA Thymeleaf H2 Database HTML CSS Bootstrap jQuery A little bit of Background Thymeleaf Thymeleaf is a modern server-side Java template engine for both web and standalone environments.  Thymeleaf's main goal is to bring elegant natural templates to your development workflow — HTML that can be correctly displayed in browsers and also work as static prototypes, allowing for stronger collaboration in development teams.  With modules for Spring Framework, a host of integrations with your favourite tools, and the ability to plug in your own functionality, Thymeleaf is ideal for modern-day HTML5 JVM web development — although there is much more it can do. More Info -  https://www.thymeleaf.org/ Spring Data JPA Spring Data JPA provides repository support for the

Spring Boot, Thymeleaf - File Upload, Download & Delete - Example

Image
Hello everyone, Hope you are doing well. In this post,  will learn how to upload, download, and delete the file with Spring Boot and Thymeleaf. You could download the source code from our GitHub repository. Backend Project Directory Maven [Pom.xml] A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details utilized by Maven to build the project.  < project xmlns ="http://maven.apache.org/POM/4.0.0" xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance" xsi :schemaLocation ="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" > < modelVersion >4.0.0</ modelVersion > < groupId >com.knf.dev.demo</ groupId > < artifactId >spring-thymeleaf-file-upload-download</ artifactId > < version >1.0</ version > < parent > < groupId >or