December 7, 2023

Spring Boot Microservices – Spring Boot JPA Auditing with AuditorAware Interface

In Spring Boot JPA Auditing Example, we will look at how Spring Data JPA helps managing audit information. Using the AuditorAware Interface, Spring Data JPA provides mechanism for capturing audit information. Such a functionality is quite important while building Spring Boot Microservices for production usage. Basically, Spring Data JPA Auditing automatically captures last updated and created timestamps. It can also tie up with Spring Security to track the user details.

Spring Boot Microservices – Spring Boot JPA Auditing with AuditorAware Interface Read More

Spring Boot Microservices – Setting up Spring Boot H2 Database

Spring Boot H2 Database is an extremely useful tool in the arsenal of any developer working on a Spring Boot application. The Spring Boot H2 database can be embedded within a Java application or could also be run in client-server mode. It is also very useful during development phase for iterating through schema changes without worrying about making changes to the actual database such as MySQL or PostgreSQL. In this post, we will first learn the process of setting up Spring Boot H2 database.

Spring Boot Microservices – Setting up Spring Boot H2 Database Read More

Spring Boot + Spring data JPA

In this tutorial, we will show you how to use Spring Boot + Spring data JPA to save data into an H2 in-memory database and how to also query the data. Technologies used :Spring Boot 2.1.2.RELEASE, Spring 5.1.4.RELEASE, Hibernate 5.3.7, HikariCP 3.2.0, H2 in-memory database 1.4.197, Maven 3, Java 8. Note: By default, Spring Boot 2 uses HikariCP as the database connection pool.

Spring Boot + Spring data JPA Read More