Output the Version Number to a Text File Using Maven
1. Overview In Maven-based Java projects, outputting the project version number to a text file is often necessary. This is useful for version tracking, logging, and ensuring consistency across...
View ArticleIntegrating WireMock with Spring Boot
1. Introduction Testing external dependencies such as REST APIs can be challenging when developing web applications. Making network calls is slow and unreliable, as third-party services might be...
View ArticleEnableEurekaClient vs EnableDiscoveryClient: Which to Use?
1. Introduction In this tutorial, we’ll examine what distinguishes @EnableEurekaClient from @EnableDiscoveryClient. Both are annotations used when working with the service registry in Spring Boot while...
View ArticleJava API for GitHub using GitHub-API
1. Introduction In this article, we’re going to have a look at the GitHub API For Java library. This provides us with an object-oriented representation of the GitHib API, allowing us to easily interact...
View ArticleConnect Java Spring Boot to Db2 Database
1. Overview IBM Db2 is a cloud-native, relational database system that also supports semi-structured data such as JSON and XML. It’s designed to handle large volumes of data at low latency. In this...
View ArticleJava Weekly, Issue 588
1. Spring and Java >> Doing away with SELECT NEW [in.relation.to] Hibernate 6 simplifies the syntax for returning a subset of attributes into a Java class. This is also a proposal for the Jakarta...
View ArticleSynchronous Communication With Apache Kafka Using ReplyingKafkaTemplate
1. Overview Apache Kafka has established itself as one of the most popular and widely used messaging systems for building event-driven architectures, where one microservice publishes a message to a...
View ArticleCopy Specific Fields by Using BeanUtils.copyProperties in Spring
1. Overview When working with Java applications, we often need to copy data from one object to another. The Spring Framework’s BeanUtils.copyProperties is a popular choice for copying properties from...
View ArticleLoad Shedding in Quarkus
1. Overview The quarkus-load-shedding extension provides a mechanism for intentionally rejecting requests under high-traffic conditions to prevent system overload within an application or service. The...
View ArticleConverting a cURL Request to an HTTP Request in Java
1. Introduction When we work with APIs, we often start by testing our requests with cURL. cURL is a command-line tool that helps us send HTTP requests easily. In this tutorial, we’ll walk through a few...
View ArticleWhat Is an API in Java?
1. Introduction API (Application Programming Interface) plays a crucial role in communication between different software systems. Whether we’re integrating third-party services or RESTful web services,...
View ArticleGatling Tests Monitoring
1. Overview Gatling is a mature and efficient performance testing tool that we can use to produce load against our REST application. But the only outcomes we can directly see from Gatling are whether...
View Article