Build REST CRUD APIs with Spring Boot and Spring Data JDBC
Hello everyone, In this article, we will learn how to develop a REST-style web service with Spring Boot, Spring Data JDBC, and h2 Database. GitHub repository link is provided at the end of this tutorial. You can download the source code. What's new in this example? From Java 14 onwards, the record is a special type of class declaration aimed at reducing the boilerplate code. For more info click here From Java 10 onwards, the var keyword allows local variable type inference, which means the type for the local variable will be inferred by the compiler, so we don't need to declare that. For more info click here Technologies used : Spring Boot 2.6.3 Spring Data JDBC Java 17 H2 Database Maven 3+ These are APIs that Spring backend App will export: GET all User's : /api/v1/users : get GET User by ID : /api/v1/users/{id} : get CREATE User : /api/v1/users : post UPDATE User : /api/v1/users/{id}