Testing email functionality is often painful. SMTP servers are external, tests become slow or flaky, and local setups differ from CI environments. As a result, many teams either mock the mail sender or skip proper email tests completely.
-
Introduction to Behavior Driving Development with Java and MongoDB
Table of Contents PrerequisitesStep 1: Create the project structureStep 2: Create the test infrastructureStep 3: Generate our first scenario testConclusion When we face software development, the biggest mistake is about delivering what the client wants. It sounds like a cliché, …
-
Spring Boot 4 OpenTelemetry Guide: Metrics, Traces, and Logs Explained
Table of Contents Key TerminologyWhy OpenTelemetry?Step-by-Step GuideTesting with Docker ComposeConclusionReferences In my previous article, I outlined a comprehensive list of features introduced in Spring Framework 7 and Spring Boot 4. In this series of articles, we will explore these features in …
-
From Spring Boot To Jakarta EE 11: How Payara Starter Eases The Transition
Table of Contents Starting with Jakarta EE Doesn’t Have to be Slow Meet Payara Starter: The Equivalent to Spring Initializr for Jakarta EEPayara Starter vs. Spring Initializr: Same Comfort, Different StackPayara Starter and Spring Initializr Side by SideStep-by-Step: Starting a Jakarta …
-
Spring Framework 7.0 and Spring Data 2025.1.0 Embrace Jakarta EE 11 Compatibility
Table of Contents Why This MattersA Look Back at the Spring and Java/Jakarta EE RelationshipWhat This Means for Payara UsersExpanding Your Options With Spring and Payara Qube The recent releases of Spring Framework 7.0 and Spring Data 2025.1.0 mark an …
-
Micrometer & Prometheus in Spring Boot: Kafka Burger Orders🍔📨
Learn Micrometer and Prometheus in Spring Boot by building a Kafka Burger Orders app that emits metrics. Step-by-step guide with code and takeaways.
-
Explore Spring Framework 7 Features—API Versioning
Table of Contents What is API versioning?API Versioning In ActionImport the Project into your IntelliJ IDEAAnnotation-Based Approach In my previous article, I outlined a comprehensive list of features introduced in Spring Framework 7 and Spring Boot 4. In this series …
-
Transactions and ThreadLocal in Spring
Table of Contents Finding usage of ThreadLocalThe TransactionSynchronizationManager classHow transactions use TransactionSynchronizationManagerWhat about Reactive transaction management?Discussion Two years ago, my friend José Paumard held the talk “Concurrent and Asynchronous Programming : Loom” at the Geneva Java User Group. In his …
-
Beyond Keywords: Implementing Semantic Search in Java With Spring Data (Part 1)
Table of Contents The magic behind vector searchPrerequisitesTag your Atlas ClusterEmbeddings with Voyage AIPreparing the datasetMongoDB Atlas Vector Search (index and retrieval)Building the movie search appConfiguring the applicationThe document modelWire the request DTOCommunicating with Voyage AIThe EmbeddingServiceQuerying with Spring Data …
-
Building REST APIs in Java with Spring Boot
Table of Contents How can Spring help?PrerequisitesCreating our appConnecting our databaseOur Book modelBook repositoryOur REST controllerCreateReadUpdateDeleteAdding DTOs and validationBookRequestBookResponseUpdating the controllerTesting the APIRun the APICreateReadUpdateDeleteConclusion REST has become the default choice for building web services, and for good reason. It’s …
-
Queryable Encryption With Spring Data MongoDB: How to Query Encrypted Fields
Table of Contents Why Queryable Encryption?A quick look at Spring Data MongoDBUse case: HR system with encrypted fieldsSetting up the projectConfiguring dependencies and propertiesAdding mongodb-cryptApplication.yml configurationAccessing properties in the codeBuilding the application layersThe domain modelThe repositoryThe serviceThe controllerSetting up encryptionConfiguring …