How to configure log4j2 in Java, Spring and Spring Boot Applications

Introduction In this tutorial I will show you how to configure log4j2 in Java, Spring and Spring Boot applications. The same log4j2 configuration will work for Java, Spring and Spring Boot applications. I am not going to show you how to use logback API in Spring Boot application, instead I will exclude logback API from the Spring Boot application. I…

Real Time Data Over WebSocket Using Kafka Streams Spring Boot Angular

Web Socket and Apache Kafka In this tutorial I will show you how to work with Apache Kafka Streams for building Real Time Data Processing with STOMP over Websocket using Spring Boot and Angular. You will see how to build push notifications using Apache Kafka, Spring Boot and Angular. You need to provide some basic things that Kafka Streams requires,…

How to create executable jar using Gradle or Maven in Spring Boot Application

Introduction In this tutorial I will tell you how to create executable jar using gradle or maven build tool in Spring Boot application. Generally maven or gradle tool is used in Java applications to automate the build process. I will also see how to control the target jar name with version appended into it. Spring Boot provides lots of benefits…

Spring Boot jQuery AJAX CRUD Example

Introduction In this example I will show you an example on Spring Boot jQuery AJAX CRUD. CRUD is an acronym for four operations such as Create, Read, Update and Delete. I am going to perform CRUD operations on company details. I will use here MySQL database to store company details information. I will perform each operation asynchronously through AJAX technique…

Spring Boot Data JPA Left, Right, Inner and Cross Join Examples on Three Tables

Introduction In this guide we will walk through Spring Boot Data JPA left, right, inner and cross join examples on three tables. In pas we have seen similar example on two tables but I got some requests on how to perform similar joins on three tables. Therefore I am going to show you how to perform joins – left, right,…

Publish Subscribe Message onto MQTT using Spring Boot

Introduction We will see an example here how to publish and subscribe message onto MQTT (Mosquitto) using Spring Boot framework. We had seen in our previous example how to publish and subscribe message using Mosquitto client – MQTT.fx. So here we are going to ingrate Spring application with MQTT broker through Spring integration framework, though the style of programming is…

File Transfer from Source Directory to Destination Directory using File Adapter in Spring Integration

Introduction We will create Spring integration file adapter example. This example will show you how to transfer file from source directory to destination directory using file adapter in Spring integration or how to move a file from source to destination folder or how to poll a directory at an interval to move file to the destination folder. You may also…

Read File Content From Source Directory using File Adapter in Spring Integration

Introduction We will create an example to read file content from source directory using file adapter in Spring integration. This example will show you how to read file content from a particular location and log the file content into console. You may further process this file content for your business requirements. Prerequisites Eclipse 4.12, Java 8 or 12, Gradle 5.6,…

Spring Integration Hello Example

Introduction In this post we will create a simple example in Spring Integration with greeting message or hello message. Spring Integration aims to provide a clear line between code and configuration. The components provided by the framework, which often represent the enterprise integration patterns, are typically configured in a declarative way using either XML or Java annotations as metadata. We…

JAX-WS SOAP Webservice Authentication Example using Spring Boot

Introduction Here we will create an example on JAX-WS SOAP Webservice authentication using Spring Boot framework. User needs to pass username and password in the header to authenticate a user before he or she can access the JAX-WS SOAP Webservice. We will apply two approaches to publish our endpoint using Apache CXF Spring Boot starter or JAX-WS Spring API. We…