Show SQL from Spring Data JPA/hibernate in Spring Boot

Let’s learn how to configure spring boot to show SQL statements and parameters generated by Spring data JPA and hibernate via various approaches. Overview If you are using Spring JPA or hibernate for JDBC abstraction, then you may already find it difficult to debug your SQL statements. For this reason, you can configure your application…

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…

iText HTML to PDF in Java with Examples

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 a simple example for HTML to PDF conversion. itext pdf dependencies To add support for itext-pdf dependencies, you need to add the…

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….

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 with JDBC and RDBMS standards. For this reason, we can easily embed Derby into applications. Derby Dependencies for Spring…

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…

Comparators and equality in Thymeleaf

Even though we do not pay attention to these operations much, Comparators and equality operators are the key aspects in thymeleaf expressions. In this post, we will see how these operators can be used. Comparison Operators (Comparators) You can compare values and expressions using the >, <, >= and <= Comparators. These operators behave the same way as they would behave in most…

Thymeleaf Expressions in Spring Boot

Thymeleaf let us create dynamic views via extensive use of expressions in the template files. The simple form of expressions fall into four main categories. Variable expressions Variable expressions are the most commonly used ones in thymeleaf templates. These expressions help bind the data from the template context(model) into the resulting html(view). For example, The…