Spring Boot – Pagination, Sorting operations

spring

While developing any spring boot API, We create many rest endpoints for the CRUD operation on data, which deals with large volume of data. Because of the large volume, fetching of records from database takes more time. To overcome this types of cases we have some options in hand. Set limit for every request. Use pagination in fetching the records ... Read More »

SMPP Long Messages 2 bytes reference number in UDH

Java

In this article, we will learn to send long SMS using the cloudhopper SubmitSm. In this article, we use Charset GSM (7bit), which means we will split the message if the length of the message is greater than 160 characters. GSM-7 is a character encoding standard that packs the most commonly used letters and symbols in many languages into 7 bits ... Read More »

Execute multiple curl requests in parallel

This tutorial will demonstrate how to execute multiple curl requests in parallel, at the same time. We will use xargs command of linux or UNIX like operating system. What does xargs command do in Linux? xargs is a great command that reads streams of data from standard input, then generates and executes command lines; meaning it can take a command’s ... Read More »

Set globally multiple header parameters in Swagger

swagger

In this article, we will learn how to set multiple header parameters globally in a Spring Boot application. Why do we need it? There are cases where we want the client to send multiple header parameters along with the one auth token, these parameters may be useful to validate the token or may be required along with the token to ... Read More »

AES Encryption Class Compatible with Java and PHP

Java

Most of the time we come across a scenario where we want something that is encrypted in Java, that requires to be decrypted by PHP or vice versa. In this article, we will build a Java class that encrypt-decrypt the input string and the same class in PHP which also encrypt-decrypts the input string and produces the same result. AES ... Read More »

Useful Linux Commands

Check the battery’s status via the terminal Time the machine has been running Display disk usage information Display information about the CPU List network interfaces Display information about your kernel release Display System Hardware information Reboot the system Shutdown the system at a specific time Start/Stop/Restart a service Checking a service status Enabling/Disabling a service to run at boot time ... Read More »

CVE-2022-22965 SpringShell Vulnerability

spring

SpringShell is a new Spring Framework Remote Code Execution (RCE), aka CVE-2022-22965, security vulnerability. Essentially all versions of the Spring Framework, including 5.3.0 to 5.3.17, 5.2.0 to 5.2.19, and older, unsupported versions are vulnerable. Check if your Spring application is Vulnerable? If you are using JDK 9 or higher. If you are using Apache Tomcat as the Servlet container. If your ... Read More »

Reactive MongoDB Auto Increment ID Using Spring WebFlux

reactive spring

In this tutorial, we will learn how to generate an auto-incrementing sequence id in our Spring WebFlux and Reactive MongoDB project. First we will create our model class Models In the above Employee collection class, we have to give a sequence name for this collection, which is annotated with @Transient. We will have to give a separate sequence name in ... Read More »

Spring WebFlux & Reactive MongoDB

reactive spring

In this article, I will be providing a step-by-step guide to developing the Spring WebFlux RestFul API using a reactive programming approach along with Reactive MongoDB. Spring WebFlux is the spring framework step towards the reactive programming model. It uses Reactor to support the Reactive Streams API and runs on the netty server. Here we will be using Reactive MongoDB ... Read More »

How to kill Linux process by port

Below is the command which will kill all the processes which are using a particular port. For example, say we want to kill the process which is using port 9091 in our Linux server. Read More »