Spring Boot RabbitMQ – Complete Guide For Beginners

RabbitMQ is a message broker that receives and forwards messages. In this post, You will learn how to use RabbitMQ with spring boot. Also, you will learn how to publish to and subscribe from queues and exchanges. Setting up RabbitMQ in local machine You can download the RabbitMQ installer from the official download page. However,…

Spring Boot Actuator Info endpoint – Complete Guide

Introduction In this post, we will take a look at the spring boot actuator info endpoint. And also how to customize it to show build info, git commit info and extra info from the environment. Spring Boot Actuator Dependency First, you need to add the dependency for actuator. Once added, you can open the /actuator/info…

Web server failed to start. Port 8080 was already in use.

In this post, We will try to understand the Web server failed to start Port 8080 was already in use error and how to fix it. Why Port 8080 was already in use? In the network, an IP address identifies each machine. Similarly, The network port identifies the application or process running on a machine. When an…

Java HTML to PDF Conversion using Itext PDF

Let’s learn how to convert html to pdf using java and itext pdf library. Itext PDF library lets you convert HTML to PDF documents. In this post we will take a look at simple example for HTML to PDF conversion. itext pdf dependencies To add support for itext-pdf dependencies, you need to add the following…

Handling Date objects in Thymeleaf

In this post, We will see how to format and work with date objects in thymeleaf templates using the #dates utility with an example. Introduction Before getting in further, read a little about thymeleaf and how it can help build dynamic web applications. The #dates object in thymeleaf deals with date objects in thymeleaf model….

Using JdbcTemplate with Spring Boot

Introduction Spring Boot provides support to typical JDBC operations via jdbcTemplate. With JDBC templates, you can perform complex database operations which are not possible through JPA. Starter Dependencies JDBC templates feature is part of Spring JDBC module. This means that either JPA starter or JDBC starter will bring this support. As we don’t need JPA…

Derby Embedded Database for Spring Boot

In this post, We will see how we can use Apache Derby embedded database with Spring Boot applications with an example. Introduction Apache Derby is a pure java implementation of a relational database. Also, it complies to JDBC and RDBMS standards. For this reason, we can easily embed Derby into applications. Derby Dependencies To include…

H2 Database for Spring Boot

Introduction In this post, We will take a look at using and configuring h2 database with spring boot application. H2 is an in-memory database which we can embed within the application. For this reason, H2 is the right candidate for loading test data or to prototype an application. Spring Boot Dependencies First of all, both…

Drools Rule Engine for Spring Boot – Tutorial

Lets learn how to integrate Drools Rule Engine with Spring Boot application for business rules management with an Example. Drools is a Business Rule Engine that is based on Java Rules API. It lets you create complex applications where the business logic changes a lot post development. Introduction To Drools For example, you may run…

Spring Boot Interview Questions 2021

Let’s go through some of the important spring Boot interview questions for beginners. We gathered these questions from some of the top MNCs across the globe. What is Spring Boot? Spring Boot is an opinionated view of the Spring ecosystem and third-party libraries to kickstart an application development with ease. Spring Boot makes this possible…