Category Archives: Java

Insert File Into MySQL Database In Java

Introduction Sometimes we have a requirement to insert file into database rather then storing it in the file system. For a developer, it is always hard to decide this. You can find good discussion in different forums on web over storing the file either in

Custom Banners In Spring Boot

Introduction As soon as you run your spring boot application, it comes up with a default banner. Have you ever thought that you can easily change that banner with very little configuration ? Well, then this article is for you. Here we will see how

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 -

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

How To Enable SSL or HTTPS In Apache Tomcat 8

In this article we are going to see how to enable SSL in Apache Tomcat Server 8 and automatic redirect http to https. All we need is a Self-Signed-Certificate and do some configurations. There are many tools/utilities available to generate the certificate. We will be

No Thumbnail

Method Reference in Java 8

In the place of an Anonymous class we can use Lambda expression but Sometimes, the lambda expression does nothing but call an existing method. In those cases, it’s often clearer to refer to the existing method by its name. [code lang=”java”] List digits = Arrays.asList(1,2,3,4,5,6,7,8);

Enable HTTPS with Self-Signed-Certificate in Spring Boot

Hello Spring Boot enthusiasts, I am back again with another article. I hope you enjoyed my last article on different spring boot deployment strategies.  In today’s article, I will demonstrate how to enable SSL/HTTPS in embedded servlet container with a self-signed certificate and access spring