Java Weekly, Issue 583
1. Spring and Java >> Introduction to MockMvcTester [petrikainulainen.net] Learn about the new MockMvcTester API introduced in Spring 6.2, its benefits over the existing MockMvc, and how to...
View ArticleAdd External JAR File to IntelliJ Project
1. Introduction IntelliJ IDEA is a widely used IDE for Java development, available in free and paid versions. In Java projects, JAR files contain reusable code and resources, making it easier to use...
View ArticleWhat Is the Difference Between JDK_JAVA_OPTIONS and JAVA_TOOL_OPTIONS?
1. Overview We often need to pass JVM options without modifying our scripts when configuring Java applications. Instead of manually adding flags every time we run the java command, we can use the...
View ArticleIntegrating Passkeys into Spring Security
1. Introduction Login forms have long been, and still are, a common feature of any web service that requires authentication to provide its services. However, as security concerns started to become...
View ArticleJava Equivalent to Python’s Easy String Slicing
1. Overview String manipulation is a common task in programming. Python offers a straightforward approach to slicing strings using a simple syntax. However, string slicing isn’t as direct in Java and...
View ArticleCreating a Custom Linked List Data Structure in Java
1. Overview Unlike arrays, which allocate a contiguous block of memory for sequential storage, a linked list distributes its elements across non-contiguous memory locations, with each node referencing...
View ArticleExploring Model Context Protocol (MCP) With Spring AI
1. Overview Modern web applications are increasingly integrating with Large Language Models (LLMs) to build solutions, which are not just limited to general knowledge-based question-answering. To...
View ArticleGenerate Avro Schema From Certain Java Class
1. Introduction In this tutorial, we’ll discuss different options for generating Avro schemas from existing Java classes. Although not the standard workflow, this direction of transformation might...
View ArticleImplementing Semantic Search Using Spring AI and PGVector
1. Overview Searching is a fundamental concept in software, aimed at finding relevant information in a large dataset. It involves finding a specific item in a collection of items. In this tutorial,...
View ArticleHow Hibernate Dirty Checking Mechanism Works
1. Introduction In this tutorial, we’ll explore one of Hibernate‘s features: the Dirty Checking mechanism. This concept enables Hibernate to detect changes in the state of entities automatically,...
View ArticleHow to Ignore Scenarios in Cucumber
1. Introduction In this tutorial, we’ll learn how to run or skip Scenarios selectively in Cucumber. Cucumber is a tool that supports Behaviour-Driven Development (BDD). It reads executable...
View ArticleBuilding an AI Chatbot Using DeepSeek Models With Spring AI
1. Overview Modern web applications are increasingly integrating with Large Language Models (LLMs) to build solutions. DeepSeek is a Chinese AI research company that develops powerful LLMs and has...
View ArticleJava Weekly, Issue 584
1. Spring and Java >> Java 24 : What’s New? [foojay.io] With the release of Java 24 just around the corner (March 18), let’s take a closer look at all the changes it brings. This release adds...
View ArticleUsing Google Translate API in a Java Application
1. Introduction In this tutorial, we’ll walk through the steps to integrate Google Translate API into a Java application. Google’s translation service supports over 100 languages, and by utilizing the...
View ArticleGradle Equivalents for Maven Commands
1. Introduction Maven and Gradle are the two most popular build automation and dependency management tools that simplify the developer’s job. While Maven is a widely used build automation tool, Gradle...
View ArticleGuide to Disable Spring Security
1. Overview Spring Security is a powerful, highly customizable authentication and access-control framework for Java applications. We’ll outline the purpose of Spring Security and some common scenarios...
View ArticleIntroduction to JanusGraph
1. Introduction In this tutorial, we’re going to look at JanusGraph and Gremlin. JanusGraph is an open-source, massively scalable graph database. It has been designed to support huge graphs – large...
View ArticleComparing Long Values Using Collections.sort()
1. Introduction In this tutorial, we’ll explore how to sort Long values using the Collections.sort() method. Java provides a simple way to sort lists, but when dealing with Long values, we need to...
View ArticleHow to Convert Nested Loops to Stream in Java
1. Introduction The Streams API, introduced in Java 8, revolutionized the way developers process data in Java. It allows for declarative, concise, and efficient handling of data streams, making it...
View ArticleHow to Map a Source Object to the Target List Using MapStruct?
1. Overview In this tutorial, we’ll use the MapStruct library to populate a List in a target object from specific attributes of a source object. While MapStruct primarily relies on mapping annotations...
View Article