Showing posts with the label JPA

Spring Boot + FreeMarker + JPA - CRUD example

Hello everyone, Today we will learn how to develop a Spring Boot CRUD web application, using Spring Boot, FreeMarker template, H2DB, and JPA. The following technologies stack being 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  spring-boot-starter-freemarker ,  spring-boot-starter-jpa,  h2  dependencies <? xml version ="1.0" encoding ="UTF-8" ?> < project xmlns ="" xmlns: xsi ="" xsi :schemaLocation ="" > < modelVersion >4.0.0</ modelVersion > < parent > < groupId >org.springframework.boot</ groupId > < artifactId >spring-boot-starter-parent</ artifactId > < version >2.5.5</ version >

Spring Boot + Apache Commons Export Data to CSV Example

Hello everyone, today we will learn how to export and download the data as a CSV file in a Spring Boot project. CSV stands for Comma-Separated-Values and it's a common format for doing a bulk data transfer between systems. For creating and parsing CSV files, we will use Apache Commons' 3rd-party library.  Technologies used  Spring Boot Apache Commons Spring Data JPA H2DB Maven 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. It contains default values for most projects. Some of the configurations that can be designated in the POM is the project dependencies, the plugins or goals that can be executed, the build profiles, and so on. Other information such as the project version, description, developers, mailing lists, and such can withal be designated. <?xml version = "1.0" encoding