Using @ClientBasicAuth in Quarkus REST Client
1. Overview Quarkus is a Java-based framework for building Jakarta EE and MicroProfile-based applications, mostly around REST services. To make accessing these easier, Quarkus provides a REST client...
View ArticleDifference Between CAST and TREAT in JPA
1. Introduction In JPA, CAST and TREAT are two distinct keywords used to manipulate data types and entity relationships. In this tutorial, we’ll explore the differences between CAST and TREAT and look...
View ArticleChecking if an Element Exists With Selenium Webdriver
1. Overview In this tutorial, we’ll learn how to check if an element exists using Selenium WebDriver. For most checks, it’s better to use explicit waits to ensure that elements are present or visible...
View ArticleUsing findValue() to Get the Value for a Nested Key in Jackson
1. Overview Working with JSON in Java often requires accessing nested keys. Jackson, a popular JSON processing library, provides a convenient way to achieve this using the findValue() method. In this...
View ArticleRapid Web Application Development With Spring Boot and Jmix
1. Introduction In this tutorial, we’ll learn how to use the Jmix Studio and Jmix Framework for IntelliJ IDEA. We’ll build a full-stack MVP for a Spring Boot application that tracks employee expenses....
View ArticleUnderstanding switchIfEmpty() in Spring Reactive
1. Overview In this article, we’ll focus on understanding the switchIfEmpty() operator in Spring Reactive and its behavior with and without the defer() operator. We’ll explore how these operators...
View ArticleJava Weekly, Issue 558
1. Spring and Java >> How to profile a performance issue using Spring Boot profiling tools [foojay.io] Key scenarios where Spring Boot profiling tools are essential, and also an overview of...
View ArticleMap Iterable to Object Containing Iterable With Mapstruct
1. Introduction In this tutorial, we’ll explore an interesting Java problem: mapping an Iterable to an object containing an Iterable using MapStruct. MapStruct is a Java library that simplifies the...
View ArticleAdd RGB Values Into setColor() in Java
1. Overview Manipulating colors is fundamental to graphical programming, especially when designing user interfaces or graphical applications. The setColor() method, provided by Java’s Graphics class,...
View ArticleGuide to Micronaut Environments
1. Overview In Micronaut, similar to other Java frameworks, the Environment interface is an abstraction related to profiles. Profiles are a concept that we can think of as containers, that hold...
View ArticleChecking if an Element is the Last Element While Iterating Over an Array
1. Overview When working with arrays in Java, there are situations where we need to identify whether the current element in an iteration is the last one. In this tutorial, let’s explore a few common...
View ArticleStored Procedures With Spring JdbcTemplate
1. Overview In this tutorial, we’ll discuss the Spring JDBC framework’s JdbcTemplate class’s ability to execute a database stored procedure. Database stored procedures are similar to functions. While...
View ArticleIntegrating Firebase Authentication With Spring Security
1. Overview In modern web applications, user authentication and authorization are critical components. Building our authentication layer from scratch is a challenging and complex task. However, with...
View ArticleHow to Print the Content of an Array in Java
1. Overview In Java, an array is a static data structure that stores elements of the same type in contiguous memory locations. This arrangement ensures that elements are stored sequentially in memory...
View ArticleJava Weekly, Issue 559
1. Spring and Java >> Java 23: What’s New? [foojay.io] A quick overview of the main features to expect in Java 23. Lots of good stuff coming. >> Reuse Testcontainers initialization and...
View ArticleProgrammatic Usage of NetBeans Profiler
1. Overview Profiling an application provides deep insight into its behavior during the runtime. There are various popular profilers in the Java ecosystems such as NetBeans Profiler, JProfiler, and...
View ArticleIntroduction to Traefik
1. Introduction Traefik is a modern reverse proxy and load balancer designed to streamline and optimize the deployment and management of microservices. In this tutorial, we’ll explore what Traefik is,...
View ArticleMigrate HttpStatus to HttpStatusCode in Spring Boot 3
1. Overview In this article, we’ll look at how to use HttpStatusCode in Spring Boot applications, focusing on the most recent enhancements introduced in version 3.3.3. With these enhancements,...
View ArticleRetries With Kafka Producer
1. Overview In this short article, we’ll explore KafkaProducer’s retry mechanism and how to tailor its settings to fit specific use cases. We’ll discuss the key properties and their default values, and...
View ArticleHow to Stop or Limit Indexing in Intellij IDEA
1. Overview IntelliJ IDEA relies heavily on indexing to deliver its intelligent features. Every time files are modified or opened, IntelliJ scans the project files to build an internal index. This...
View Article