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 …
-
OpenTelemetry Tracing on the JVM
Table of Contents CommonalitiesRunning the OpenTelemetry AgentMicrometer Tracing on Spring BootOpenTelemetry Spring Boot StarterQuarkusDiscussion You may know I’m a big fan of OpenTelemetry. I recently finished developing a master class for the YOW! conference at the end of the year. …
-
Preparing for Spring Framework 7 and Spring Boot 4
Table of Contents 1. Built-in Resilience Feature2. Fluent JMS Client API3. Robust Api Versioning4. Unified Message Conversion5. Faster and Smarter Testing6. Modern Ecosystem Integration7. Hibernate ORM and JPA Upgrades8. Overhauled HttpHeaders API9. Support for Jackson 3.x10. Null Safety using JSpecify1. …
-
Agent Long-term Memory with Spring AI & Redis
Table of Contents You’re building an AI agent with memory using Spring AI and Redis. Unlike traditional chatbots that forget previous interactions, memory-enabled agents can recall past conversations and facts. It works by storing two types of memory in Redis: …
-
Spring Cloud Stream: Event-Driven Architecture – Part 1
Table of Contents The Role of MessageBrokersFrameworks or Binder ImplementationsSpring Cloud Stream: The SolutionKey Features:LightWeight Architecture with Spring Cloud StreamTransition to Spring Cloud Stream:ConclusionReferences Envision operating a successful e-commerce platform where every moment is crucial. Customers make purchases, adjust inventory …
-
🚀 Document Your Spring Boot APIs with Redocusaurus in Minutes 🦕
Document Your Spring Boot APIs with Redocusaurus in Minutes
-
Spring Boot + Kafka Streams: Event Routing & Testing
Learn how to do Kafka Stream with Spring Boot! 🍃 With a city tour visits system…
-
How to send prompts in bulk with Spring AI and Java Virtual Threads
Table of Contents Here’s the flow:Virtual Threads for Massive ParallelismSpring AI Prompt CallProcessing in BatchesHandling Errors GracefullyProcess Results in BulkFull ImplementationStay curious! TL;DR: You’re building an AI-powered app that needs to send lots of prompts to OpenAI. Instead of sending …
-
How to Deploy a Vaadin Application as a WAR on Tomcat 11
Table of Contents Step 1: Download Tomcat 11Step 2: Create a New Vaadin ProjectStep 3: Adjust the pom.xmlStep 4: Update the Spring Boot Application ClassStep 5: Build the Application for ProductionStep 6: Deploy the WAR to TomcatConclusion If you want to …
-
GenAI blood, sweat, and tears: Loading data to Pinecone
Table of Contents Getting startedIssue #1: APIs, SDKs, and rapid changeIssue #2: ConfigIssue #3: JSON formatIssue #4: Loading data to Pinecone1. Metadata keysAlternative embeddings – Book descriptionsWrapping up!Resources As someone who is pretty familiar with relational and graph databases, I …