Posts

Showing posts with the label Groovy templates

Kotlin + Spring + Groovy Templates CRUD Example

Image
Hello everyone, Today we will learn how to develop a Spring Boot CRUD web application, using Kotlin, Spring Boot, Groovy template, H2DB, and JPA. Following technologies stack being used: Spring Boot 2.5.5 Spring MVC 5.3.10 Gradle Kotlin Groovy templates 2.5.5 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&quo

Spring Boot + Groovy Templates CRUD Example

Image
Hello everyone, Today we will learn how to develop a Spring Boot CRUD web application, using Spring Boot, Groovy template, H2DB, and JPA. Following technologies stack being used: Spring Boot 2.5.5 Spring MVC 5.3.10 Maven 3 JDK 11 Groovy templates 2.5.5 H2DB  Bootstrap Project Structure: Dependency Management-Maven-Pom.xml <? xml version ="1.0" encoding ="UTF-8" ?> < 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 https://maven.apache.org/xsd/maven-4.0.0.xsd" > < modelVersion >4.0.0</ modelVersion > < parent > < groupId >org.springframework.boot</ groupId > < artifactId >spring-boot-starter-parent</ artifactId > < version >2.5.5</ version > < relativePath /> <!-- lookup parent from repository --> </