java
Spring Cloud Config Server Complete Guide (w/ Examples)
Overview of Spring Cloud Config Server Spring Cloud Config server is a REST application that is built on top of Spring Boot. The main purpose of a config server is to store the configurations for all services in an application (think microservices). Thus, each service doesn’t need to store its configurations. They just need to … Read more
Guide to Variable Initialization in Java
What is variable initialization in java? What do Java developers need to know about this topic? Find out here!
How to Run Maven Test on Specific package/directory
Recently, I ran into a problem with the Jenkins pipeline. Specifically, the Maven tests take too much time to run. I have integration tests and unit tests. The total execution time took more than 30 minutes. In some environments, I only need to run the unit tests, not all the tests. So I wondered, is … Read more
[Java Concurrency] 04: ExecutorService
Single Thread Executor When you want to run a task, you can start a thread or you can use the Executors to create a single thread to run the task. Consider this block: when you run the code, the output is what the task does: However, you can see that the program didn’t stop (the … Read more
Introduction to the Map Interface in Java
Overview The Map interface is a part of the Collection framework. However, Map doesn’t implement Collection. Why is it a part of the Collection framework? It’s because Map by nature is a collection of elements. Implementations of the Map interface are used in other members of the Collection framework. One example is the HashSet class … Read more