In this post, we will dive into the JPA Repository implementation of the Spring Framework. Spring provides a strong infrastructure for database operations. It generates necessary queries in the background so that the database operations are abstracted. In addition to the crud operations, other database features such as pagination can be implemented event without writing single line of query code.
In this post, we will create a coin model to show some of the JpaRepository features like querying, pagination, filtering, and deletion. The implementation of this project can be found at https://github.com/turkdogan/spring-boot-guide.
In this post, we will create a very simple hello world example by using the Spring Boot with Kotlin language. The key idea is to implement a rest controller to return the famous message: Hello World!
The first step to manage the project is to use a build management system such as Gradle or Maven. In this tutorial, we will use Gradle to compile and run the project.
Writing all the required configurations is a time-consuming and error-prone task. Luckily, Spring Initializr is an online service to provide starter templates for Spring Boot projects. Let us open https://start.spring.io and select…