Category Archives: Java

Spring Boot Restful API Documentation With Swagger 2

Introduction APIs that you design are meant to be consumed by your probable clients or consumers. So, it becomes more important that they understand it quickly and put it into implementation. It is therefore essential to document your api. API documentation is a technical artifact

Code-Adda: Building Restful webservice With Jersey And Spring Boot

Building Restful Webservices With Jersey And Spring Boot

In this article we are going to see how to develop restful web service using JAX-RS specification along with Spring Boot.  This will be a step-by-step tutorial using Jersey implementation combined with the power of Spring Boot + DevTools + JPA + Lombok + H2

Scheduling Task In Spring Boot

In this article we will build a simple spring boot application where we will schedule a task that gets triggered automatically at a certain interval. Scheduling is an important concept when we want to accomplish a certain task at a certain time of day, or

Integrating Spring Boot with H2 In Memory Database

Hey Folks, I hope you are doing great. In this article, you will learn how to integrate H2 In-Memory database with your spring boot application. We will create rest service offering all CRUD operations in spring boot where some records will be initialized in H2

Method Reference in Java 8 - code-adda.com

Method References in Java 8 – Types

In Java 8 method references has introduced, which will refer to methods or constructors without invoking them. These syntactic shortcuts create lambdas from existing methods or constructors. Basically, lambda expressions in Java are methods implemented without an enclosing class body and constructors created by lambdas