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

Working With Currency Data In Java

Overview Working with currency data in Java involves several key aspects: conversion rates, formatting, rounding, and arithmetic operations. This article will guide you through handling these aspects effectively in Java, ensuring accurate and reliable financial applications. Conversion Rates To handle currency conversion, you can use external APIs like the ExchangeRate-API. This API allows you to … Read more

Using FFMPEG in Java Cheat Sheet

Overview This cheat sheet contains code example that I use most frequently in my recent project that uses ffmpeg extensively to edit and create video. Let’s get started. Run ffmpeg in Java To run a ffmpeg command from Java, use the following function. Create a video from a single image with a duration To create … Read more