Posts

Showing posts with the label Freemarker

Kotlin + Spring Boot + FreeMarker + JPA - CRUD example

Image
Hello everyone, Today we will learn how to develop a Spring Boot CRUD web application, using Kotlin, Spring Boot, FreeMarker template, H2DB, and JPA. Following technologies stack being used: Spring Boot 2.5.5 Spring MVC 5.3.10 Gradle Kotlin FreeMarker 2.3.31 H2DB  Bootstrap Project Structure: Project Dependency(build.gradle.kts) import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { id( "org.springframework.boot" ) version "2.5.5" id( "io.spring.dependency-management" ) version "1.0.11.RELEASE" kotlin( "jvm" ) version "1.5.31" kotlin( "plugin.spring" ) version "1.5.31" kotlin( "plugin.jpa" ) version "1.5.31" } group = "com.knf.dev.demo" version = "0.0.1-SNAPSHOT" java.sourceCompatibility = JavaVersion.VERSION_11 repositories { mavenCentral() } dependencies { implementation( "org.springframework.boot:spring-boot-starter-data-jpa...

Spring Boot + FreeMarker + Spring Data JPA - CRUD example

Image
Hello everyone, Today we will learn how to develop a Spring Boot CRUD web application, using Spring Boot, FreeMarker template, H2DB, and JPA. Apache FreeMarker is a template engine: a Java library to generate text output (HTML web pages, e-mails, configuration files, source code, etc.) based on templates and changing data. Templates are written in the FreeMarker Template Language (FTL), which is a simple, specialized language. Usually, a general-purpose programming language (like Java) is used to prepare the data (issue database queries, do business calculations). Then, Apache FreeMarker displays that prepared data using templates. In the template, you are focusing on how to present the data, and outside the template, you are focusing on what data to present.  More Info -  https://freemarker.apache.org/ The technology stack used: Spring Boot 2.5.5 Spring MVC 5.3.10 Maven 3 JDK 11 FreeMarker 2.3.31 H2DB  Bootstrap Project Structure Dependency Management-Maven-Pom.xml Puts ...