Quantcast
Channel: Experiences Unlimited
Browsing all 168 articles
Browse latest View live

Advanced profile management in Spring Boot

We all are aware of profile management in Spring Boot and the flexibility it provides in configuring our applications for different environments. The other powerful aspect of this is that at any given...

View Article


Image may be NSFW.
Clik here to view.

Using Websocket with Spring Framework and Vuejs

Websockets are full duplex (persistent) connections between client and server such that both can share information with each other without the need for repeatedly establishing a new connection. This...

View Article


How to parse number string with commas to Integer or Long?

Below is the code used for parsing number string with commas to Integer or Long String size = "277,517"; int sizeint = NumberFormat.getIntegerInstance().parse(size).intValue();

View Article

How to use regular expression in Java?

Regular expressions are very important tool for seraching in text. Below is the code snippet for executing regex search and capturing different parts of the string based on the regular expression...

View Article

Uploading files in Spring Boot application

Uploading files is one of the most common operations in a web application. In this article we will look at how to upload file from an HTML page and copy it to the file system on the server. Creating a...

View Article


Upload files in Spring Boot application using Commons FileUpload

In our previous post, we saw how to upload a file using the Spring framework’s default implementation for MultipartFile interface. In this post, we will see how we can use the Commons FileUpload...

View Article

Testing the File Upload API in Spring Boot

In one of my previous post, I had created an API to upload file. In this post I will write a JUnit test to test the API. We will test the complete flow right from uploading till it is copied to the...

View Article

Different ways of declaration and initialization of arrays in Java

The below code shows the different ways one can declare and initialize an Array in Java: import java.util.Arrays; public class ArraysDemo { public static void main(String[] args) { int[] a1 = new...

View Article


Image may be NSFW.
Clik here to view.

Java 15 – Text blocks

Text blocks are all about writing multi-line strings in a clean and readable way. This was added as part of JEP 378 in Java 15. One can read the detailed information of the feature from the JEP...

View Article


Image may be NSFW.
Clik here to view.

Java 16 – Records

We all, Java programmers, have complained whenever we were forced to create a class or use maps just to hold some data whilst other newer languages provided some out-of-the-box data structure for the...

View Article

Image may be NSFW.
Clik here to view.

Java 16 – Records and Constructor

In my previous post, I introduced you to the new construct called Records which was introduced in Java 16. In this post, I will go a bit deeper into how you can override the default constructor of a...

View Article

Image may be NSFW.
Clik here to view.

Using ROWNUM to paginate the data in Oracle

In one of my previous posts, I showed you how to use ROWNUM with ORDER BY clause. Building on that in this post I will show you how you can paginate your results using ROWNUM in Oracle DB and how you...

View Article

Java 16 – Pattern matching for instanceof

We all have used instanceof check with a subsequent cast to the desired type and in this process, we are doing two operations: validating whether the object we have is of the desired type using...

View Article


Image may be NSFW.
Clik here to view.

Book Review: Atomic Habits by James Clear

I recently finished reading the amazing book Atomic Habits by James Clear. This book is about tips and techniques which one can adopt to build habits that last. The book is centered on how one can...

View Article

Image may be NSFW.
Clik here to view.

Execute around Aspect with @annotation pointcut in Spring Boot

Aspect oriented programming (AOP) is a programming model where we write independently executable code which adds additional behavior to the existing code without modifying the existing code. Wikipedia...

View Article


Image may be NSFW.
Clik here to view.

Java 17 – Sealed classes

Prior to Sealed Classes feature there were two ways a developer could prevent a class to be extended: by declaring the class as final where no one can extend this class. public final class MyClass { }...

View Article

Image may be NSFW.
Clik here to view.

Book Review: The Psychology of Money

The Psychology of Money by Morgan Housel is a must-read book on personal finance. A lot of times decisions on personal finances, investments are done using the historical data of the market analyzed...

View Article


Image may be NSFW.
Clik here to view.

Book Review: The Subtle Art of Not Giving A F*ck

The book The Subtle Art of Not Giving A F*ck by Mark Manson is a book about managing your problems and failures. I can aptly call this book a Problem Management manual. The author talks about looking...

View Article

Image may be NSFW.
Clik here to view.

Book Review: Ikigai: The Japanese secret to a long and happy life

This book is all about secrets to longevity i.e living longer. The authors do a case study of people living in a place called Okinawa in Japan which has a higher average life expectancy than Japan and...

View Article

Image may be NSFW.
Clik here to view.

Execute around Aspect with @annotation pointcut in Spring Boot

Aspect oriented programming (AOP) is a programming model where we write independently executable code which adds additional behavior to the existing code without modifying the existing code. Wikipedia...

View Article
Browsing all 168 articles
Browse latest View live