Google Cloud and Spring AI
1. Overview Spring AI is an application framework with a common interface for various LLMs that helps us to integrate them into our Spring Boot applications. In this tutorial, we’ll explore how we...
View ArticleUsing HTTPS With Jersey Client in Java
1. Introduction In this quick tutorial, we’ll explore how to configure the Jersey Client to work with HTTPS endpoints in Java. We’ll start with basic SSL configuration using JVM parameters and progress...
View ArticleProgrammatic Bean Registration Mechanism With BeanRegistrar in Spring
1. Overview Spring beans are typically registered declaratively via annotations like @Component or @Bean. But in some cases, we need more flexibility that we only have with programmatic registration,...
View ArticleHow to Separate Paragraphs in Javadocs
1. Introduction In large codebases, well-written Javadocs are as important as the code itself. One of the simplest techniques for enhancing the readability of Javadocs is splitting long descriptions...
View ArticlePersist Quartz Scheduler in Database
1. Introduction When building a Spring web application, we often need to schedule recurring tasks or jobs, such as sending emails, generating reports, or processing data at specific intervals. The...
View ArticleJava Weekly, Issue 609
1. Spring and Java >> Orchestrating AI Services with the Spring AI Framework [infoq.com] Spring AI brings the power of large language models to your Java app with a simplified and consistent API,...
View ArticleHow to Find Null or Empty Strings in a Java List
1. Overview In this tutorial, we’ll explore how to detect null or empty Strings in a List<String> in Java. We’ll start with a classic for-loop that checks each element explicitly, so we...
View ArticleA Guide to OpenAI’s Moderation Model in Spring AI
1. Introduction We use Spring AI with OpenAI’s Moderation model to detect harmful or sensitive content in text. The moderation model analyzes input and flags categories like self-harm, violence, hate,...
View ArticleMCP Authorization With Spring AI and OAuth2
1. Overview Model Context Protocol (MCP) allows AI models to access business data through secure APIs. When we build MCP servers that handle sensitive information, we need proper authorization to...
View ArticleJava Reflection Beans Property API
1. Overview Java Reflection provides powerful capabilities to inspect and manipulate objects at runtime. Two commonly used tools for working with object properties dynamically are the Beans Property...
View ArticleUnit Tests for Concurrent Java with VMLens
1. Introduction While it is common to write unit tests for single-threaded Java, unit tests for concurrent Java are still rarely used. By using VMLens, an open source tool to deterministically unit...
View ArticleDataLoader for Batch Processing
1. Overview It’s common to encounter performance issues when writing applications that make repeated database or API calls inside a loop. It’s a familiar pattern, but it’s pretty inefficient; each call...
View Article