Author: jt

About jt

    In this post, I will explain the Merge Sort algorithm and how to use it in Java. Sorting is the process of arranging data in ascending or descending order. Sorting becomes necessary while searching a particular record in database, a particular telephone number in telephone directory, words in a dictionary, and so on. In computer […]Continue reading

    So your JUnit 5 tests are not running under Maven? You have JUnit 5 Tests which run fine from your IDE, but fail to run under Maven? Your test output looks like this: [INFO] ——————————————————- [INFO] T E S T S [INFO] ——————————————————- [INFO] [INFO] Results: [INFO] [INFO] Tests run: 0, Failures: 0, Errors: 0, […]Continue reading

    Spring Framework 5 introduces WebClient, a component in the new Web Reactive framework that helps build reactive and non-blocking web applications. In web applications, a common requirement is to make HTTP calls to other services. Prior to Spring 5, there was RestTemplate for client-side HTTP access. RestTemplate, which is part of the Spring MVC project, […]Continue reading

    Working for startups is always an interesting experience. Currently, I’m a software engineer at Velo Payments. If you’ve ever worked for a startup, you’ll quickly see that you get to wear many hats. One of the hats I get to wear is the creation of developer center (currently in the oven). In the very near […]Continue reading

    Consumer Driven Contracts are considered a design pattern for evolving services. Spring Cloud Contract can be used to implement consumer driven contracts for services developed using the Spring Framework. In this post, I’ll take an in-depth look at using Spring Cloud Contract to create Consumer Driven Contracts. An Overview of Spring Cloud Contract Let’s consider a […]Continue reading

    It’s a fairly common task as a Java developer to convert from a List to an Array or from an Array to a list. In one of my previous post, I discussed about converting Map to List. Like many things in Java, there is often more than one way to accomplish a task. In this […]Continue reading

    In applications, you often need to work with a set of constant values. For example, representing a contract status with the “permanent”, “temp”, and “intern” values, or directions with the “north”, “south”, “east”, and “west” values. In Java, you use the enum type (short for enumeration), a special datatype introduced in Java 5 to represent […]Continue reading

    Converting a Java Map to a List is a very common task. Map and List are common data structures used in Java. A Map is a collection of key value pairs. While a List is an ordered collection of objects in which duplicate values can be stored. In this post, I will discuss different ways to […]Continue reading

    MySQL is the most popular open-source database management system. MySQL uses a relational database and Structured Query Language (SQL) to manage its data. In this post, I’ll show you how to install MySQL on Ubuntu. Installing MySQL There are two ways to install MySQL on Ubuntu. First is to use one of the versions included […]Continue reading

    When you are developing Spring Boot applications with database interactions, you typically use Hibernate as the Object Relationship Mapping (ORM) tool. Instead of directly coupling your code with Hibernate, often you’d rather use Spring Data JPA, a Spring Framework project. Spring Data JPA makes implementation of the data access layer incredibly easy by abstracting most […]Continue reading