Better Swing Layout With MigLayout

Overview If you are working on swing desktop app, MigLayout is a great library to help you layout your app quickly. MiGLayout revolves around flexibility and simplicity while offering powerful features for fine-grained layout control. Here are the main concepts to understand when working with MiGLayout. 1. Components and Cells 2. Layout Constraints Here are … Read more

Pattern Matching In Java

Overview Pattern matching is one of the most powerful features introduced in the recent versions of java. It helps us remove the redundant type casting. In this post, I will cover the key aspects of pattern matching with examples. Let’s get started. What is pattern matching? When talking about pattern matching in java, the first … Read more

How to Enable Spring Data MongoDB Auto Index Creation

Overview If you have tried setting auto-index-creation in spring data mongodb without success, like this: Then this post will show you how to work around this. Let’s get started. Enable auto index creation in MongoDB First, let’s consider this document Here, I defined an unique index for my document named rate_limit_config_service_name but when the application … Read more

Using MessageSource In Spring Boot Application

Overview Nowadays, creating applications that serve users from different countries with different languages and dialects is a common practice. How to make your application friendly to users across the globle? That’s what we are going to find out today. I18n and l10n Internationalization (i18n) is the process of designing your software ready to serve people … Read more