This post shows how to use client-side load balancing in Micronaut with Netflix Ribbon. There’ll be a client application accessing the same URI from multiple instances of another Micronaut application. Create Multiple Instances of a Micronaut Service Application To create
Java – 5 things You Cannot do with Generic Types – Limitations
Generics is one of the best things that happened to Java. Anyone who has worked with Java during its pre-JDK5 era can attest to that. For new developments, it has drastically reduced the amount of written codes and provided compile-time type checking using Generic Types. However, there are some things you cannot do with Generics Types.
Import Maven Remote Archetype Catalogs in IntelliJ IDEA
This post demonstrates how to import Maven Remote Archetype Catalogs in IntelliJ IDEA to use archetypes that are not readily available out-of-the-box.
Java 8 – Reuse Predicates by combining Lambdas
This post demonstrates how to reuse Predicate @FunctionalInterface implementations to reduce duplicate codes in your applications.
Create a Spring Boot Application using IntelliJ
Using Spring Boot is the fastest way to get up to speed in developing modern applications. But how do we create the initial codebase that works out of the box? There are three ways – by hand, the Spring Initialzr,
Convert Spring Boot to Deployable WAR for Tomcat
This post demonstrates how to convert your Spring Boot web application to a deployable WAR file for Tomcat.
Spring Boot – List all Beans loaded in the ApplicationContext
With Spring Boot, a lot of beans get loaded into the ApplicationContext depending on your dependencies selection. This post shows a code snippet used to list all the beans loaded in the ApplicationContext.
Spring Boot – Copy File to Another Directory using Apache Camel
This post demonstrates a basic use-case for using Apache Camel with Spring Boot – copy a file to another directory. This basic example will enable you to understand other concepts.
Spring Boot – Loading Data Using a SQL Script
This post demonstrates how loading data from an SQL script for a particular database platform. This is ideal for development stage when you need some seed data to fill in existing database tables.
Spring Boot – Access Spring ApplicationContext in JUnit Tests
This post shows how to access the Spring ApplicationContext object in JUnit tests. Now, why would we want to do that? Well, sometimes, we need to work directly with the ApplicationContext object. Spring, Java, and Other Requirements We used the