Learn how to integrate Dapr with Spring Boot to create a publish/subscribe system without coupling to specific brokers.
Also find me here:
Baeldung Editor
Josh Cummings
Josh has been a software engineer for over 15 years building enterprise applications across multiple industries. He has long been passionate about application security and loves opportunities to mentor and to learn from others. When Josh isn't hacking away at code, he is either running, playing basketball, camping, or reading a Brandon Sanderson novel.
Here's what I've reviewed (so far):
Baeldung on Java
- All
- Java (12)
- Spring (9)
- Testing (8)
- Spring Boot (8)
- Core Java (8)
- Persistence (7)
- Algorithms (7)
- Java String (6)
- DevOps (6)
- Data (6)
- Security (5)
- JSON (5)
- Spring Persistence (4)
- Reactive (4)
- Maven (4)
- Java IO (4)
- JPA (4)
- IDE (4)
- Spring Security (3)
- Spring MVC (3)
- Spring Cloud (3)
- Logging (3)
- Java Array (3)
- Jakarta EE (3)
- Architecture (3)
- Web Services (2)
- Spring Data (2)
- REST (2)
- Java Map (2)
- Java Dates (2)
- Jackson (2)
- Groovy (2)
- Docker (2)
- Artificial Intelligence (2)
- XML (1)
- NoSQL (1)
- Java Streams (1)
- Java List (1)
- Java Concurrency (1)
- Java Collections (1)
- JVM (1)
- Gradle (1)
- Cloud (1)
Micrometer Observation and Spring Kafka
Filed under Data
Explore the monitoring capabilities provided by Spring Kafka using Micrometer and Spring Boot Actuator. Take a look at the native metrics exposed by Apache Kafka for both producers and consumers, which offer valuable insights into performance, throughput, errors, and latency and those augmented by Spring.
How to Install NVM in a Docker Container
Filed under Docker
Node Version Manager (NVM) is a tool for managing multiple Node.js versions on a machine. Of course, we can also Dockerize this process to isolate NVM’s installation.
How to Keep a Container Running in Docker Compose
Filed under Docker
Each Docker container stops and exits once it doesn’t have any process or script running within the container, but what if we need it to stay running?
Mocking JDBC for Unit Testing
Filed under Persistence, Testing
Testing code that uses JDBC objects to interact with the database raises important questions about mocking. It’s tempting to use Mockito to stub all the java.sql objects involved in acquiring a JDBC Connection, creating a Statement, executing a query and retrieving the data from the ResultSet. This comes with its own set of problems, though.
Session/Cookie Management in Apache JMeter
Filed under Testing
Learn how JMeter manages sessions and cookies and set up a test plan that logs in to an application, accesses protected resources, and logs out. Along the way, use HTTP Cookie Manager, CSV Data Set Config, and response assertions to ensure tests simulate real-world user behavior.
The OpenAI API Java Client
Filed under Artificial Intelligence
A walk-through of integrating OpenAI’s Java Client Assistants and Completion APIs.
Implementing Semantic Search Using Spring AI and PGVector
Filed under Artificial Intelligence, Spring Boot
Searching is a fundamental concept in software, aimed at finding relevant information in a large dataset. Let’s see how Spring AI, PGVector, and Ollama can work together to implement semantic search in our applications.
Generate Avro Schema From Certain Java Class
Although not the standard workflow, it can be handy to understand how one would create an Avro schema from a set of Java classes. It turns out we can use the Avro Reflection API or Jackson to do the trick.