Combining Publishers in Project Reactor 1. Overview In this article, we’ll take a look at various ways of combining Publishers in Project Reactor. 2. Maven Dependencies Let’s set up our example with the Project Reactor dependencies: <dependency> <groupId>io.projectreactor</groupId> <artifactId>reactor-core</artifactId> <version>3.1.4.RELEASE</version> </dependency> <dependency> <groupId>io.projectreactor</groupId> <artifactId>reactor-test</artifactId> <version>3.1.4.RELEASE</version> <scope>test</scope> </dependency> 3. Combining Publishers… Continue Reading reactor-combine-streams

Check If a String Contains Multiple Keywords 1. Introduction In this quick tutorial, we’ll find out how to detect multiple words inside of a string. 2. Our Example Let’s suppose we have the string: String inputString = “hello there, Baeldung”; Our task is to find whether the inputString contains the “hello” and… Continue Reading string-contains-multiple-words

Spring Data Reactive Repositories with Couchbase 1. Overview In this tutorial, we’ll learn how to configure and implement database operations in a reactive way on Couchbase using Spring Data Repositories. We’ll cover the basic usages of ReactiveCrudRepository and ReactiveSortingRepository. Additionally, we’ll configure our test application with AbstractReactiveCouchbaseConfiguration. 2. Maven Dependencies Firstly, let’s add… Continue Reading spring-data-reactive-couchbase

Custom AccessDecisionVoters in Spring Security 1. Introduction Most of the time when securing a Spring Web application or a REST API, the tools provided by Spring Security are more than enough, but sometimes we are looking for a more specific behavior. In this tutorial, we’ll write a custom AccessDecisionVoter and… Continue Reading spring-security-custom-voter

Spring JDBC 1. Overview In this article, we’ll go through practical use cases of the Spring JDBC module. All the classes in Spring JDBC are divided into four separate packages: core – the core functionality of JDBC. Some of the important classes under this package include JdbcTemplate, SimpleJdbcInsert, SimpleJdbcCall and… Continue Reading spring-jdbc-jdbctemplate