diff --git a/spring-5-reactive/README.md b/spring-5-reactive/README.md
index b6b2769f1e..8a67b4d86d 100644
--- a/spring-5-reactive/README.md
+++ b/spring-5-reactive/README.md
@@ -5,17 +5,11 @@ The "REST With Spring" Classes: http://bit.ly/restwithspring
### Relevant Articles
-- [Concurrent Test Execution in Spring 5](http://www.baeldung.com/spring-5-concurrent-tests)
- [Introduction to the Functional Web Framework in Spring 5](http://www.baeldung.com/spring-5-functional-web)
-- [Exploring the Spring 5 MVC URL Matching Improvements](http://www.baeldung.com/spring-5-mvc-url-matching)
- [Spring 5 WebClient](http://www.baeldung.com/spring-5-webclient)
-- [Spring 5 Functional Bean Registration](http://www.baeldung.com/spring-5-functional-beans)
-- [The SpringJUnitConfig and SpringJUnitWebConfig Annotations in Spring 5](http://www.baeldung.com/spring-5-junit-config)
-- [Spring Security 5 for Reactive Applications](http://www.baeldung.com/spring-security-5-reactive)
-- [Spring 5 Testing with @EnabledIf Annotation](https://github.com/eugenp/tutorials/tree/master/spring-5)
-- [Reactive WebSockets with Spring 5](http://www.baeldung.com/spring-5-reactive-websockets)
- [Spring Boot Actuator](http://www.baeldung.com/spring-boot-actuators)
+- [Exploring the Spring 5 MVC URL Matching Improvements](http://www.baeldung.com/spring-5-mvc-url-matching)
+- [Spring Security 5 for Reactive Applications](http://www.baeldung.com/spring-security-5-reactive)
+- [Reactive WebSockets with Spring 5](http://www.baeldung.com/spring-5-reactive-websockets)
- [Spring Webflux Filters](http://www.baeldung.com/spring-webflux-filters)
-- [Reactive Flow with MongoDB, Kotlin, and Spring WebFlux](http://www.baeldung.com/kotlin-mongodb-spring-webflux)
-- [Spring Data Reactive Repositories with MongoDB](http://www.baeldung.com/spring-data-mongodb-reactive)
- [How to Set a Header on a Response with Spring 5](http://www.baeldung.com/spring-response-header)
diff --git a/spring-5-reactive/pom.xml b/spring-5-reactive/pom.xml
index 33fcad4e1d..acc82be0d1 100644
--- a/spring-5-reactive/pom.xml
+++ b/spring-5-reactive/pom.xml
@@ -127,15 +127,6 @@
commons-lang3
-
- org.springframework.boot
- spring-boot-starter-data-mongodb-reactive
-
-
- de.flapdoodle.embed
- de.flapdoodle.embed.mongo
- test
-
io.reactivex.rxjava2
rxjava
diff --git a/spring-5-reactive/src/main/java/com/baeldung/functional/Actor.java b/spring-5-reactive/src/main/java/com/baeldung/functional/Actor.java
new file mode 100644
index 0000000000..23c88b89e1
--- /dev/null
+++ b/spring-5-reactive/src/main/java/com/baeldung/functional/Actor.java
@@ -0,0 +1,23 @@
+package com.baeldung.functional;
+
+class Actor {
+ private String firstname;
+ private String lastname;
+
+ public Actor() {
+ }
+
+ public Actor(String firstname, String lastname) {
+ this.firstname = firstname;
+ this.lastname = lastname;
+ }
+
+ public String getFirstname() {
+ return firstname;
+ }
+
+ public String getLastname() {
+ return lastname;
+ }
+
+}
diff --git a/spring-5/src/main/java/com/baeldung/functional/FormHandler.java b/spring-5-reactive/src/main/java/com/baeldung/functional/FormHandler.java
similarity index 100%
rename from spring-5/src/main/java/com/baeldung/functional/FormHandler.java
rename to spring-5-reactive/src/main/java/com/baeldung/functional/FormHandler.java
diff --git a/spring-5/src/main/java/com/baeldung/functional/FunctionalSpringBootApplication.java b/spring-5-reactive/src/main/java/com/baeldung/functional/FunctionalSpringBootApplication.java
similarity index 100%
rename from spring-5/src/main/java/com/baeldung/functional/FunctionalSpringBootApplication.java
rename to spring-5-reactive/src/main/java/com/baeldung/functional/FunctionalSpringBootApplication.java
diff --git a/spring-5/src/main/java/com/baeldung/functional/FunctionalWebApplication.java b/spring-5-reactive/src/main/java/com/baeldung/functional/FunctionalWebApplication.java
similarity index 100%
rename from spring-5/src/main/java/com/baeldung/functional/FunctionalWebApplication.java
rename to spring-5-reactive/src/main/java/com/baeldung/functional/FunctionalWebApplication.java
diff --git a/spring-5/src/main/java/com/baeldung/functional/IndexRewriteFilter.java b/spring-5-reactive/src/main/java/com/baeldung/functional/IndexRewriteFilter.java
similarity index 100%
rename from spring-5/src/main/java/com/baeldung/functional/IndexRewriteFilter.java
rename to spring-5-reactive/src/main/java/com/baeldung/functional/IndexRewriteFilter.java
diff --git a/spring-5/src/main/java/com/baeldung/functional/RootServlet.java b/spring-5-reactive/src/main/java/com/baeldung/functional/RootServlet.java
similarity index 100%
rename from spring-5/src/main/java/com/baeldung/functional/RootServlet.java
rename to spring-5-reactive/src/main/java/com/baeldung/functional/RootServlet.java
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/Spring5ReactiveApplication.java b/spring-5-reactive/src/main/java/com/baeldung/reactive/Spring5ReactiveApplication.java
index e96767145e..1656f70221 100644
--- a/spring-5-reactive/src/main/java/com/baeldung/reactive/Spring5ReactiveApplication.java
+++ b/spring-5-reactive/src/main/java/com/baeldung/reactive/Spring5ReactiveApplication.java
@@ -1,11 +1,9 @@
package com.baeldung.reactive;
-import com.mongodb.reactivestreams.client.MongoClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
-import org.springframework.data.mongodb.core.ReactiveMongoTemplate;
@SpringBootApplication
public class Spring5ReactiveApplication{
@@ -14,12 +12,4 @@ public class Spring5ReactiveApplication{
SpringApplication.run(Spring5ReactiveApplication.class, args);
}
- @Autowired
- MongoClient mongoClient;
-
- @Bean
- public ReactiveMongoTemplate reactiveMongoTemplate() {
- return new ReactiveMongoTemplate(mongoClient, "test");
- }
-
}
diff --git a/spring-5/src/main/java/com/baeldung/SpringSecurity5Application.java b/spring-5-reactive/src/main/java/com/baeldung/reactive/SpringSecurity5Application.java
similarity index 97%
rename from spring-5/src/main/java/com/baeldung/SpringSecurity5Application.java
rename to spring-5-reactive/src/main/java/com/baeldung/reactive/SpringSecurity5Application.java
index 02c91a1879..0e695ff596 100644
--- a/spring-5/src/main/java/com/baeldung/SpringSecurity5Application.java
+++ b/spring-5-reactive/src/main/java/com/baeldung/reactive/SpringSecurity5Application.java
@@ -1,4 +1,4 @@
-package com.baeldung;
+package com.baeldung.reactive;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/actuator/WebSecurityConfig.java b/spring-5-reactive/src/main/java/com/baeldung/reactive/actuator/WebSecurityConfig.java
new file mode 100644
index 0000000000..427fd70a6c
--- /dev/null
+++ b/spring-5-reactive/src/main/java/com/baeldung/reactive/actuator/WebSecurityConfig.java
@@ -0,0 +1,28 @@
+package com.baeldung.reactive.actuator;
+
+import org.springframework.boot.actuate.autoconfigure.security.reactive.EndpointRequest;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.security.config.annotation.web.builders.HttpSecurity;
+import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
+import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity;
+import org.springframework.security.config.web.server.ServerHttpSecurity;
+import org.springframework.security.web.server.SecurityWebFilterChain;
+
+@Configuration
+@EnableWebFluxSecurity
+public class WebSecurityConfig {
+
+
+ @Bean
+ public SecurityWebFilterChain securitygWebFilterChain(
+ ServerHttpSecurity http) {
+ return http
+
+ .authorizeExchange()
+ .matchers(EndpointRequest.to(
+ FeaturesEndpoint.class
+ )).permitAll().and().csrf().disable().build();
+ }
+
+}
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/cors/annotated/CorsOnAnnotatedElementsApplication.java b/spring-5-reactive/src/main/java/com/baeldung/reactive/cors/annotated/CorsOnAnnotatedElementsApplication.java
index 87efe72a1b..d990928abe 100644
--- a/spring-5-reactive/src/main/java/com/baeldung/reactive/cors/annotated/CorsOnAnnotatedElementsApplication.java
+++ b/spring-5-reactive/src/main/java/com/baeldung/reactive/cors/annotated/CorsOnAnnotatedElementsApplication.java
@@ -4,16 +4,8 @@ import java.util.Collections;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
-import org.springframework.boot.autoconfigure.data.mongo.MongoReactiveDataAutoConfiguration;
-import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
-import org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration;
-@SpringBootApplication(exclude = { MongoAutoConfiguration.class,
- MongoDataAutoConfiguration.class,
- MongoReactiveDataAutoConfiguration.class,
- MongoReactiveAutoConfiguration.class }
-)
+@SpringBootApplication
public class CorsOnAnnotatedElementsApplication {
public static void main(String[] args) {
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/cors/webfilter/controllers/FurtherCorsConfigsController.java b/spring-5-reactive/src/main/java/com/baeldung/reactive/cors/webfilter/controllers/FurtherCorsConfigsController.java
index 4f9b9bd037..bc5b483935 100644
--- a/spring-5-reactive/src/main/java/com/baeldung/reactive/cors/webfilter/controllers/FurtherCorsConfigsController.java
+++ b/spring-5-reactive/src/main/java/com/baeldung/reactive/cors/webfilter/controllers/FurtherCorsConfigsController.java
@@ -8,8 +8,8 @@ import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;
-@RestController
-@RequestMapping("/web-filter-and-more-on-annotated")
+//@RestController
+//@RequestMapping("/web-filter-and-more-on-annotated")
public class FurtherCorsConfigsController {
@DeleteMapping("/further-mixed-config-endpoint")
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/cors/webfilter/controllers/RegularRestController.java b/spring-5-reactive/src/main/java/com/baeldung/reactive/cors/webfilter/controllers/RegularRestController.java
index 6985810aa5..1d382b222a 100644
--- a/spring-5-reactive/src/main/java/com/baeldung/reactive/cors/webfilter/controllers/RegularRestController.java
+++ b/spring-5-reactive/src/main/java/com/baeldung/reactive/cors/webfilter/controllers/RegularRestController.java
@@ -7,8 +7,8 @@ import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;
-@RestController
-@RequestMapping("/web-filter-on-annotated")
+//@RestController
+//@RequestMapping("/web-filter-on-annotated")
public class RegularRestController {
@PutMapping("/regular-put-endpoint")
diff --git a/spring-5/src/main/java/com/baeldung/security/GreetController.java b/spring-5-reactive/src/main/java/com/baeldung/reactive/security/GreetController.java
similarity index 95%
rename from spring-5/src/main/java/com/baeldung/security/GreetController.java
rename to spring-5-reactive/src/main/java/com/baeldung/reactive/security/GreetController.java
index 6b69e3bc9b..99b79d88ea 100644
--- a/spring-5/src/main/java/com/baeldung/security/GreetController.java
+++ b/spring-5-reactive/src/main/java/com/baeldung/reactive/security/GreetController.java
@@ -1,4 +1,4 @@
-package com.baeldung.security;
+package com.baeldung.reactive.security;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
diff --git a/spring-5/src/main/java/com/baeldung/security/GreetService.java b/spring-5-reactive/src/main/java/com/baeldung/reactive/security/GreetService.java
similarity index 88%
rename from spring-5/src/main/java/com/baeldung/security/GreetService.java
rename to spring-5-reactive/src/main/java/com/baeldung/reactive/security/GreetService.java
index 7622b360be..93df64bced 100644
--- a/spring-5/src/main/java/com/baeldung/security/GreetService.java
+++ b/spring-5-reactive/src/main/java/com/baeldung/reactive/security/GreetService.java
@@ -1,4 +1,4 @@
-package com.baeldung.security;
+package com.baeldung.reactive.security;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Service;
diff --git a/spring-5/src/main/java/com/baeldung/security/SecurityConfig.java b/spring-5-reactive/src/main/java/com/baeldung/reactive/security/SecurityConfig.java
similarity index 94%
rename from spring-5/src/main/java/com/baeldung/security/SecurityConfig.java
rename to spring-5-reactive/src/main/java/com/baeldung/reactive/security/SecurityConfig.java
index a9e44a2eee..cb1e7d1312 100644
--- a/spring-5/src/main/java/com/baeldung/security/SecurityConfig.java
+++ b/spring-5-reactive/src/main/java/com/baeldung/reactive/security/SecurityConfig.java
@@ -1,4 +1,4 @@
-package com.baeldung.security;
+package com.baeldung.reactive.security;
import org.springframework.context.annotation.Bean;
import org.springframework.security.config.annotation.method.configuration.EnableReactiveMethodSecurity;
@@ -17,7 +17,7 @@ public class SecurityConfig {
public SecurityWebFilterChain securitygWebFilterChain(ServerHttpSecurity http) {
return http.authorizeExchange()
.pathMatchers("/admin").hasAuthority("ROLE_ADMIN")
- .anyExchange().authenticated()
+ .anyExchange().permitAll()
.and().formLogin()
.and().build();
}
diff --git a/spring-5/src/main/java/com/baeldung/web/reactive/Task.java b/spring-5-reactive/src/main/java/com/baeldung/web/reactive/Task.java
similarity index 100%
rename from spring-5/src/main/java/com/baeldung/web/reactive/Task.java
rename to spring-5-reactive/src/main/java/com/baeldung/web/reactive/Task.java
diff --git a/spring-5/src/main/java/com/baeldung/web/reactive/client/WebClientController.java b/spring-5-reactive/src/main/java/com/baeldung/web/reactive/client/WebClientController.java
similarity index 100%
rename from spring-5/src/main/java/com/baeldung/web/reactive/client/WebClientController.java
rename to spring-5-reactive/src/main/java/com/baeldung/web/reactive/client/WebClientController.java
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/Event.java b/spring-5-reactive/src/main/java/com/baeldung/websocket/Event.java
similarity index 79%
rename from spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/Event.java
rename to spring-5-reactive/src/main/java/com/baeldung/websocket/Event.java
index 90f83a566f..5d0260928c 100644
--- a/spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/Event.java
+++ b/spring-5-reactive/src/main/java/com/baeldung/websocket/Event.java
@@ -1,4 +1,4 @@
-package com.baeldung.reactive.websocket;
+package com.baeldung.websocket;
import lombok.AllArgsConstructor;
import lombok.Data;
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/ReactiveJavaClientWebSocket.java b/spring-5-reactive/src/main/java/com/baeldung/websocket/ReactiveJavaClientWebSocket.java
similarity index 95%
rename from spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/ReactiveJavaClientWebSocket.java
rename to spring-5-reactive/src/main/java/com/baeldung/websocket/ReactiveJavaClientWebSocket.java
index c9a333c044..efb4dc238a 100644
--- a/spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/ReactiveJavaClientWebSocket.java
+++ b/spring-5-reactive/src/main/java/com/baeldung/websocket/ReactiveJavaClientWebSocket.java
@@ -1,4 +1,4 @@
-package com.baeldung.reactive.websocket;
+package com.baeldung.websocket;
import java.net.URI;
import java.time.Duration;
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/ReactiveWebSocketApplication.java b/spring-5-reactive/src/main/java/com/baeldung/websocket/ReactiveWebSocketApplication.java
similarity index 88%
rename from spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/ReactiveWebSocketApplication.java
rename to spring-5-reactive/src/main/java/com/baeldung/websocket/ReactiveWebSocketApplication.java
index 43b5e50387..0e71673df6 100644
--- a/spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/ReactiveWebSocketApplication.java
+++ b/spring-5-reactive/src/main/java/com/baeldung/websocket/ReactiveWebSocketApplication.java
@@ -1,4 +1,4 @@
-package com.baeldung.reactive.websocket;
+package com.baeldung.websocket;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/ReactiveWebSocketConfiguration.java b/spring-5-reactive/src/main/java/com/baeldung/websocket/ReactiveWebSocketConfiguration.java
similarity index 96%
rename from spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/ReactiveWebSocketConfiguration.java
rename to spring-5-reactive/src/main/java/com/baeldung/websocket/ReactiveWebSocketConfiguration.java
index 974def5a91..ef8d81d3c2 100644
--- a/spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/ReactiveWebSocketConfiguration.java
+++ b/spring-5-reactive/src/main/java/com/baeldung/websocket/ReactiveWebSocketConfiguration.java
@@ -1,4 +1,4 @@
-package com.baeldung.reactive.websocket;
+package com.baeldung.websocket;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/ReactiveWebSocketHandler.java b/spring-5-reactive/src/main/java/com/baeldung/websocket/ReactiveWebSocketHandler.java
similarity index 97%
rename from spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/ReactiveWebSocketHandler.java
rename to spring-5-reactive/src/main/java/com/baeldung/websocket/ReactiveWebSocketHandler.java
index 2e93c0c0dc..5adad6bf15 100644
--- a/spring-5-reactive/src/main/java/com/baeldung/reactive/websocket/ReactiveWebSocketHandler.java
+++ b/spring-5-reactive/src/main/java/com/baeldung/websocket/ReactiveWebSocketHandler.java
@@ -1,4 +1,4 @@
-package com.baeldung.reactive.websocket;
+package com.baeldung.websocket;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
diff --git a/spring-5/src/test/java/com/baeldung/functional/FunctionalWebApplicationIntegrationTest.java b/spring-5-reactive/src/test/java/com/baeldung/functional/FunctionalWebApplicationIntegrationTest.java
similarity index 100%
rename from spring-5/src/test/java/com/baeldung/functional/FunctionalWebApplicationIntegrationTest.java
rename to spring-5-reactive/src/test/java/com/baeldung/functional/FunctionalWebApplicationIntegrationTest.java
diff --git a/spring-5/src/test/java/com/baeldung/jupiter/Spring5ReactiveServerClientIntegrationTest.java b/spring-5-reactive/src/test/java/com/baeldung/reactive/Spring5ReactiveServerClientIntegrationTest.java
similarity index 99%
rename from spring-5/src/test/java/com/baeldung/jupiter/Spring5ReactiveServerClientIntegrationTest.java
rename to spring-5-reactive/src/test/java/com/baeldung/reactive/Spring5ReactiveServerClientIntegrationTest.java
index bbd852d625..8707c27fb3 100644
--- a/spring-5/src/test/java/com/baeldung/jupiter/Spring5ReactiveServerClientIntegrationTest.java
+++ b/spring-5-reactive/src/test/java/com/baeldung/reactive/Spring5ReactiveServerClientIntegrationTest.java
@@ -1,6 +1,5 @@
-package com.baeldung.jupiter;
+package com.baeldung.reactive;
-import com.baeldung.web.reactive.Task;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.springframework.http.server.reactive.HttpHandler;
@@ -8,6 +7,9 @@ import org.springframework.http.server.reactive.ReactorHttpHandlerAdapter;
import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.RouterFunctions;
import org.springframework.web.reactive.function.server.ServerResponse;
+
+import com.baeldung.web.reactive.Task;
+
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import reactor.ipc.netty.NettyContext;
diff --git a/spring-5-reactive/src/test/java/com/baeldung/reactive/webflux/EmployeeControllerUnitTest.java b/spring-5-reactive/src/test/java/com/baeldung/reactive/webflux/EmployeeControllerIntegrationTest.java
similarity index 90%
rename from spring-5-reactive/src/test/java/com/baeldung/reactive/webflux/EmployeeControllerUnitTest.java
rename to spring-5-reactive/src/test/java/com/baeldung/reactive/webflux/EmployeeControllerIntegrationTest.java
index 640f28c331..e8c8c25723 100644
--- a/spring-5-reactive/src/test/java/com/baeldung/reactive/webflux/EmployeeControllerUnitTest.java
+++ b/spring-5-reactive/src/test/java/com/baeldung/reactive/webflux/EmployeeControllerIntegrationTest.java
@@ -15,13 +15,15 @@ import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.reactive.server.WebTestClient;
+import com.baeldung.reactive.Spring5ReactiveApplication;
+
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@RunWith(SpringRunner.class)
-@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
+@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes=Spring5ReactiveApplication.class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
-public class EmployeeControllerUnitTest {
+public class EmployeeControllerIntegrationTest {
@Autowired
private WebTestClient testClient;
diff --git a/spring-5/src/test/java/com/baeldung/security/SecurityIntegrationTest.java b/spring-5-reactive/src/test/java/com/baeldung/security/SecurityIntegrationTest.java
similarity index 95%
rename from spring-5/src/test/java/com/baeldung/security/SecurityIntegrationTest.java
rename to spring-5-reactive/src/test/java/com/baeldung/security/SecurityIntegrationTest.java
index 1f8bb549c7..a59ef57db8 100644
--- a/spring-5/src/test/java/com/baeldung/security/SecurityIntegrationTest.java
+++ b/spring-5-reactive/src/test/java/com/baeldung/security/SecurityIntegrationTest.java
@@ -1,6 +1,6 @@
package com.baeldung.security;
-import com.baeldung.SpringSecurity5Application;
+import com.baeldung.reactive.SpringSecurity5Application;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
diff --git a/spring-5/src/test/java/com/baeldung/web/client/WebTestClientIntegrationTest.java b/spring-5-reactive/src/test/java/com/baeldung/web/client/WebTestClientIntegrationTest.java
similarity index 87%
rename from spring-5/src/test/java/com/baeldung/web/client/WebTestClientIntegrationTest.java
rename to spring-5-reactive/src/test/java/com/baeldung/web/client/WebTestClientIntegrationTest.java
index f9472452ba..a1c0eecb8f 100644
--- a/spring-5/src/test/java/com/baeldung/web/client/WebTestClientIntegrationTest.java
+++ b/spring-5-reactive/src/test/java/com/baeldung/web/client/WebTestClientIntegrationTest.java
@@ -1,11 +1,10 @@
package com.baeldung.web.client;
-import com.baeldung.Spring5Application;
+import com.baeldung.reactive.Spring5ReactiveApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.web.server.LocalServerPort;
-import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.reactive.server.WebTestClient;
import org.springframework.web.reactive.function.server.RequestPredicates;
@@ -16,8 +15,7 @@ import org.springframework.web.server.WebHandler;
import reactor.core.publisher.Mono;
@RunWith(SpringRunner.class)
-@SpringBootTest(classes = Spring5Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
-@EnableJpaRepositories("com.baeldung.persistence")
+@SpringBootTest(classes = Spring5ReactiveApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class WebTestClientIntegrationTest {
@LocalServerPort
diff --git a/spring-5/README.md b/spring-5/README.md
index de42d965f5..baf03fb3b3 100644
--- a/spring-5/README.md
+++ b/spring-5/README.md
@@ -6,14 +6,9 @@ The "REST With Spring" Classes: http://bit.ly/restwithspring
### Relevant Articles
- [Concurrent Test Execution in Spring 5](http://www.baeldung.com/spring-5-concurrent-tests)
-- [Introduction to the Functional Web Framework in Spring 5](http://www.baeldung.com/spring-5-functional-web)
-- [Exploring the Spring 5 MVC URL Matching Improvements](http://www.baeldung.com/spring-5-mvc-url-matching)
-- [Spring 5 WebClient](http://www.baeldung.com/spring-5-webclient)
- [Spring 5 Functional Bean Registration](http://www.baeldung.com/spring-5-functional-beans)
- [The SpringJUnitConfig and SpringJUnitWebConfig Annotations in Spring 5](http://www.baeldung.com/spring-5-junit-config)
-- [Spring Security 5 for Reactive Applications](http://www.baeldung.com/spring-security-5-reactive)
- [Spring 5 Testing with @EnabledIf Annotation](http://www.baeldung.com/spring-5-enabledIf)
- [Introduction to Spring REST Docs](http://www.baeldung.com/spring-rest-docs)
-- [Spring Security 5 – OAuth2 Login](http://www.baeldung.com/spring-security-5-oauth2-login)
- [Spring ResponseStatusException](http://www.baeldung.com/spring-response-status-exception)
- [Spring Assert Statements](http://www.baeldung.com/spring-assert)
diff --git a/spring-5/pom.xml b/spring-5/pom.xml
index 542cd5023f..e37833ff94 100644
--- a/spring-5/pom.xml
+++ b/spring-5/pom.xml
@@ -33,19 +33,10 @@
org.springframework.boot
spring-boot-starter-web
-
- org.springframework.boot
- spring-boot-starter-webflux
-
org.springframework.boot
spring-boot-starter-hateoas
-
- org.projectreactor
- reactor-spring
- ${reactor-spring.version}
-
javax.json.bind
javax.json.bind-api
@@ -139,11 +130,6 @@
spring-restdocs-mockmvc
test
-
- org.springframework.restdocs
- spring-restdocs-webtestclient
- test
-
org.springframework.restdocs
spring-restdocs-restassured
diff --git a/spring-5/src/main/java/com/baeldung/Spring5Application.java b/spring-5/src/main/java/com/baeldung/Spring5Application.java
index f321871646..41b5c1eed1 100644
--- a/spring-5/src/main/java/com/baeldung/Spring5Application.java
+++ b/spring-5/src/main/java/com/baeldung/Spring5Application.java
@@ -2,10 +2,8 @@ package com.baeldung;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
-@ComponentScan(basePackages = { "com.baeldung.web" })
public class Spring5Application {
public static void main(String[] args) {
diff --git a/spring-5/src/main/java/com/baeldung/config/PersistenceConfig.java b/spring-5/src/main/java/com/baeldung/config/PersistenceConfig.java
new file mode 100644
index 0000000000..547685970a
--- /dev/null
+++ b/spring-5/src/main/java/com/baeldung/config/PersistenceConfig.java
@@ -0,0 +1,12 @@
+package com.baeldung.config;
+
+import org.springframework.boot.autoconfigure.domain.EntityScan;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
+
+@Configuration
+@EnableJpaRepositories("com.baeldung.persistence")
+@EntityScan("com.baeldung.web")
+public class PersistenceConfig {
+
+}
diff --git a/spring-5/src/main/java/com/baeldung/execption/ActorController.java b/spring-5/src/main/java/com/baeldung/exception/ActorController.java
similarity index 97%
rename from spring-5/src/main/java/com/baeldung/execption/ActorController.java
rename to spring-5/src/main/java/com/baeldung/exception/ActorController.java
index 6c9c46253a..17a5b80b64 100644
--- a/spring-5/src/main/java/com/baeldung/execption/ActorController.java
+++ b/spring-5/src/main/java/com/baeldung/exception/ActorController.java
@@ -1,4 +1,4 @@
-package com.baeldung.execption;
+package com.baeldung.exception;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
diff --git a/spring-5/src/main/java/com/baeldung/execption/ActorNotFoundException.java b/spring-5/src/main/java/com/baeldung/exception/ActorNotFoundException.java
similarity index 92%
rename from spring-5/src/main/java/com/baeldung/execption/ActorNotFoundException.java
rename to spring-5/src/main/java/com/baeldung/exception/ActorNotFoundException.java
index 642c075b5d..7439be414d 100644
--- a/spring-5/src/main/java/com/baeldung/execption/ActorNotFoundException.java
+++ b/spring-5/src/main/java/com/baeldung/exception/ActorNotFoundException.java
@@ -1,4 +1,4 @@
-package com.baeldung.execption;
+package com.baeldung.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
diff --git a/spring-5/src/main/java/com/baeldung/execption/ActorService.java b/spring-5/src/main/java/com/baeldung/exception/ActorService.java
similarity index 97%
rename from spring-5/src/main/java/com/baeldung/execption/ActorService.java
rename to spring-5/src/main/java/com/baeldung/exception/ActorService.java
index 956fa92015..0f173d78d6 100644
--- a/spring-5/src/main/java/com/baeldung/execption/ActorService.java
+++ b/spring-5/src/main/java/com/baeldung/exception/ActorService.java
@@ -1,4 +1,4 @@
-package com.baeldung.execption;
+package com.baeldung.exception;
import java.util.Arrays;
import java.util.List;
diff --git a/spring-5/src/main/java/com/baeldung/execption/SpringExceptionApplication.java b/spring-5/src/main/java/com/baeldung/exception/SpringExceptionApplication.java
similarity index 92%
rename from spring-5/src/main/java/com/baeldung/execption/SpringExceptionApplication.java
rename to spring-5/src/main/java/com/baeldung/exception/SpringExceptionApplication.java
index 1670da54c3..ed163f7fa7 100644
--- a/spring-5/src/main/java/com/baeldung/execption/SpringExceptionApplication.java
+++ b/spring-5/src/main/java/com/baeldung/exception/SpringExceptionApplication.java
@@ -1,14 +1,14 @@
-package com.baeldung.execption;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
-import org.springframework.context.annotation.ComponentScan;
-
-@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
-@ComponentScan(basePackages = { "com.baeldung.execption" })
-public class SpringExceptionApplication {
- public static void main(String[] args) {
- SpringApplication.run(SpringExceptionApplication.class, args);
- }
+package com.baeldung.exception;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
+import org.springframework.context.annotation.ComponentScan;
+
+@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
+@ComponentScan(basePackages = { "com.baeldung.execption" })
+public class SpringExceptionApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(SpringExceptionApplication.class, args);
+ }
}
\ No newline at end of file
diff --git a/spring-5/src/main/java/com/baeldung/jupiter/Task.java b/spring-5/src/main/java/com/baeldung/jupiter/Task.java
new file mode 100644
index 0000000000..2ea977712c
--- /dev/null
+++ b/spring-5/src/main/java/com/baeldung/jupiter/Task.java
@@ -0,0 +1,28 @@
+package com.baeldung.jupiter;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class Task {
+
+ private final String name;
+
+ private final int id;
+
+ public Task(@JsonProperty("name") String name, @JsonProperty("id") int id) {
+ this.name = name;
+ this.id = id;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+
+ public int getId() {
+ return this.id;
+ }
+
+ @Override
+ public String toString() {
+ return "Task{" + "name='" + name + '\'' + ", id=" + id + '}';
+ }
+}
diff --git a/spring-5/src/main/java/com/baeldung/jupiter/TestConfig.java b/spring-5/src/main/java/com/baeldung/jupiter/TestConfig.java
index a29f77c5df..ee866007ea 100644
--- a/spring-5/src/main/java/com/baeldung/jupiter/TestConfig.java
+++ b/spring-5/src/main/java/com/baeldung/jupiter/TestConfig.java
@@ -1,6 +1,5 @@
package com.baeldung.jupiter;
-import com.baeldung.web.reactive.Task;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
diff --git a/spring-5/src/test/java/com/baeldung/jdbc/autogenkey/GetAutoGenKeyByJDBC.java b/spring-5/src/test/java/com/baeldung/jdbc/autogenkey/GetAutoGenKeyByJDBCIntTest.java
similarity index 95%
rename from spring-5/src/test/java/com/baeldung/jdbc/autogenkey/GetAutoGenKeyByJDBC.java
rename to spring-5/src/test/java/com/baeldung/jdbc/autogenkey/GetAutoGenKeyByJDBCIntTest.java
index 45012a95aa..14d2fb736b 100644
--- a/spring-5/src/test/java/com/baeldung/jdbc/autogenkey/GetAutoGenKeyByJDBC.java
+++ b/spring-5/src/test/java/com/baeldung/jdbc/autogenkey/GetAutoGenKeyByJDBCIntTest.java
@@ -1,55 +1,55 @@
-package com.baeldung.jdbc.autogenkey;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
-import org.junit.Ignore;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.PropertySource;
-import org.springframework.test.context.junit4.SpringRunner;
-
-import com.baeldung.jdbc.autogenkey.repository.MessageRepositoryJDBCTemplate;
-import com.baeldung.jdbc.autogenkey.repository.MessageRepositorySimpleJDBCInsert;
-
-@RunWith(SpringRunner.class)
-@Ignore
-public class GetAutoGenKeyByJDBC {
-
- @Configuration
- @EnableAutoConfiguration
- @PropertySource("classpath:autogenkey-db.properties")
- @ComponentScan(basePackages = { "com.baeldung.jdbc.autogenkey.repository" })
- public static class SpringConfig {
-
- }
-
- @Autowired
- MessageRepositorySimpleJDBCInsert messageRepositorySimpleJDBCInsert;
-
- @Autowired
- MessageRepositoryJDBCTemplate messageRepositoryJDBCTemplate;
-
- final String MESSAGE_CONTENT = "Test";
-
- @Test
- public void insertJDBC_whenLoadMessageByKey_thenGetTheSameMessage() {
- long key = messageRepositoryJDBCTemplate.insert(MESSAGE_CONTENT);
- String loadedMessage = messageRepositoryJDBCTemplate.getMessageById(key);
-
- assertEquals(MESSAGE_CONTENT, loadedMessage);
-
- }
-
- @Test
- public void insertSimpleInsert_whenLoadMessageKey_thenGetTheSameMessage() {
- long key = messageRepositorySimpleJDBCInsert.insert(MESSAGE_CONTENT);
- String loadedMessage = messageRepositoryJDBCTemplate.getMessageById(key);
-
- assertEquals(MESSAGE_CONTENT, loadedMessage);
- }
-
-}
+package com.baeldung.jdbc.autogenkey;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.junit.Ignore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.PropertySource;
+import org.springframework.test.context.junit4.SpringRunner;
+
+import com.baeldung.jdbc.autogenkey.repository.MessageRepositoryJDBCTemplate;
+import com.baeldung.jdbc.autogenkey.repository.MessageRepositorySimpleJDBCInsert;
+
+@RunWith(SpringRunner.class)
+@Ignore
+public class GetAutoGenKeyByJDBCIntTest {
+
+ @Configuration
+ @EnableAutoConfiguration
+ @PropertySource("classpath:autogenkey-db.properties")
+ @ComponentScan(basePackages = { "com.baeldung.jdbc.autogenkey.repository" })
+ public static class SpringConfig {
+
+ }
+
+ @Autowired
+ MessageRepositorySimpleJDBCInsert messageRepositorySimpleJDBCInsert;
+
+ @Autowired
+ MessageRepositoryJDBCTemplate messageRepositoryJDBCTemplate;
+
+ final String MESSAGE_CONTENT = "Test";
+
+ @Test
+ public void insertJDBC_whenLoadMessageByKey_thenGetTheSameMessage() {
+ long key = messageRepositoryJDBCTemplate.insert(MESSAGE_CONTENT);
+ String loadedMessage = messageRepositoryJDBCTemplate.getMessageById(key);
+
+ assertEquals(MESSAGE_CONTENT, loadedMessage);
+
+ }
+
+ @Test
+ public void insertSimpleInsert_whenLoadMessageKey_thenGetTheSameMessage() {
+ long key = messageRepositorySimpleJDBCInsert.insert(MESSAGE_CONTENT);
+ String loadedMessage = messageRepositoryJDBCTemplate.getMessageById(key);
+
+ assertEquals(MESSAGE_CONTENT, loadedMessage);
+ }
+
+}
diff --git a/spring-5/src/test/java/com/baeldung/jupiter/Spring5JUnit5ComposedAnnotationIntegrationTest.java b/spring-5/src/test/java/com/baeldung/jupiter/Spring5JUnit5ComposedAnnotationIntegrationTest.java
index 42d27b90f4..b9bb470cbd 100644
--- a/spring-5/src/test/java/com/baeldung/jupiter/Spring5JUnit5ComposedAnnotationIntegrationTest.java
+++ b/spring-5/src/test/java/com/baeldung/jupiter/Spring5JUnit5ComposedAnnotationIntegrationTest.java
@@ -1,6 +1,5 @@
package com.baeldung.jupiter;
-import com.baeldung.web.reactive.Task;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
diff --git a/spring-5/src/test/java/com/baeldung/jupiter/Spring5JUnit5IntegrationTest.java b/spring-5/src/test/java/com/baeldung/jupiter/Spring5JUnit5IntegrationTest.java
index 0f00a85832..484b366132 100644
--- a/spring-5/src/test/java/com/baeldung/jupiter/Spring5JUnit5IntegrationTest.java
+++ b/spring-5/src/test/java/com/baeldung/jupiter/Spring5JUnit5IntegrationTest.java
@@ -1,6 +1,5 @@
package com.baeldung.jupiter;
-import com.baeldung.web.reactive.Task;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
diff --git a/spring-data-5-reactive/README.md b/spring-data-5-reactive/README.md
new file mode 100644
index 0000000000..f8886ac18b
--- /dev/null
+++ b/spring-data-5-reactive/README.md
@@ -0,0 +1,8 @@
+## Spring Data Reactive Project
+
+### The Course
+The "REST With Spring" Classes: http://bit.ly/restwithspring
+
+### Relevant Articles
+- [Reactive Flow with MongoDB, Kotlin, and Spring WebFlux](http://www.baeldung.com/kotlin-mongodb-spring-webflux)
+- [Spring Data Reactive Repositories with MongoDB](http://www.baeldung.com/spring-data-mongodb-reactive)
diff --git a/spring-data-5-reactive/pom.xml b/spring-data-5-reactive/pom.xml
index bcf37f1da4..806eafa2d6 100644
--- a/spring-data-5-reactive/pom.xml
+++ b/spring-data-5-reactive/pom.xml
@@ -23,11 +23,6 @@
org.springframework.boot
spring-boot-starter-web
-
- javax.ws.rs
- javax.ws.rs-api
- ${javax.ws.rs-api.version}
-
com.fasterxml.jackson.module
jackson-module-kotlin
@@ -54,34 +49,51 @@
kotlin-stdlib-jdk8
${kotlin.version}
-
- org.jetbrains.kotlin
- kotlin-stdlib-jdk8
- ${kotlin.version}
-
org.jetbrains.kotlin
kotlin-test
${kotlin.version}
test
+
+ io.reactivex.rxjava2
+ rxjava
+
+
- org.jetbrains.kotlin
- kotlin-stdlib-jdk8
- ${kotlin.version}
+ org.springframework
+ spring-test
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+
+
+ org.junit.jupiter
+ junit-jupiter-engine
+ test
+
+
+ org.junit.platform
+ junit-platform-surefire-provider
+ ${junit.platform.version}
+ test
+
+
+ org.junit.platform
+ junit-platform-runner
+ ${junit.platform.version}
+ test
-
-
- spring-libs-snapshot
- Spring Snapshot Repository
- http://repo.spring.io/libs-snapshot
-
-
-
- src/main/kotlin
org.springframework.boot
@@ -89,21 +101,30 @@
kotlin-maven-plugin
- ${kotlin.version}
-
+
compile
- compile
compile
+
+
+ ${project.basedir}/src/main/kotlin
+ ${project.basedir}/src/main/java
+
+
test-compile
- test-compile
test-compile
+
+
+ ${project.basedir}/src/test/kotlin
+ ${project.basedir}/src/test/java
+
+
org.jetbrains.kotlin
@@ -124,6 +145,57 @@
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+ ${java.version}
+
+
+
+
+ default-compile
+ none
+
+
+
+ default-testCompile
+ none
+
+
+ java-compile
+ compile
+
+ compile
+
+
+
+ java-test-compile
+ test-compile
+
+ testCompile
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+ 3
+ true
+ methods
+ true
+
+ **/*IntegrationTest.java
+ **/*IntTest.java
+ **/*LiveTest.java
+
+
+
@@ -132,6 +204,8 @@
UTF-8
1.8
1.2.40
+ 1.0.0
+ 5.0.2
diff --git a/spring-data-5-reactive/src/main/java/com/baeldung/reactive/Spring5ReactiveApplication.java b/spring-data-5-reactive/src/main/java/com/baeldung/reactive/Spring5ReactiveApplication.java
new file mode 100644
index 0000000000..e96767145e
--- /dev/null
+++ b/spring-data-5-reactive/src/main/java/com/baeldung/reactive/Spring5ReactiveApplication.java
@@ -0,0 +1,25 @@
+package com.baeldung.reactive;
+
+import com.mongodb.reactivestreams.client.MongoClient;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.context.annotation.Bean;
+import org.springframework.data.mongodb.core.ReactiveMongoTemplate;
+
+@SpringBootApplication
+public class Spring5ReactiveApplication{
+
+ public static void main(String[] args) {
+ SpringApplication.run(Spring5ReactiveApplication.class, args);
+ }
+
+ @Autowired
+ MongoClient mongoClient;
+
+ @Bean
+ public ReactiveMongoTemplate reactiveMongoTemplate() {
+ return new ReactiveMongoTemplate(mongoClient, "test");
+ }
+
+}
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/model/Account.java b/spring-data-5-reactive/src/main/java/com/baeldung/reactive/model/Account.java
similarity index 100%
rename from spring-5-reactive/src/main/java/com/baeldung/reactive/model/Account.java
rename to spring-data-5-reactive/src/main/java/com/baeldung/reactive/model/Account.java
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/repository/AccountCrudRepository.java b/spring-data-5-reactive/src/main/java/com/baeldung/reactive/repository/AccountCrudRepository.java
similarity index 100%
rename from spring-5-reactive/src/main/java/com/baeldung/reactive/repository/AccountCrudRepository.java
rename to spring-data-5-reactive/src/main/java/com/baeldung/reactive/repository/AccountCrudRepository.java
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/repository/AccountMongoRepository.java b/spring-data-5-reactive/src/main/java/com/baeldung/reactive/repository/AccountMongoRepository.java
similarity index 100%
rename from spring-5-reactive/src/main/java/com/baeldung/reactive/repository/AccountMongoRepository.java
rename to spring-data-5-reactive/src/main/java/com/baeldung/reactive/repository/AccountMongoRepository.java
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/repository/AccountRxJavaRepository.java b/spring-data-5-reactive/src/main/java/com/baeldung/reactive/repository/AccountRxJavaRepository.java
similarity index 100%
rename from spring-5-reactive/src/main/java/com/baeldung/reactive/repository/AccountRxJavaRepository.java
rename to spring-data-5-reactive/src/main/java/com/baeldung/reactive/repository/AccountRxJavaRepository.java
diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/template/AccountTemplateOperations.java b/spring-data-5-reactive/src/main/java/com/baeldung/reactive/template/AccountTemplateOperations.java
similarity index 100%
rename from spring-5-reactive/src/main/java/com/baeldung/reactive/template/AccountTemplateOperations.java
rename to spring-data-5-reactive/src/main/java/com/baeldung/reactive/template/AccountTemplateOperations.java
diff --git a/spring-data-5-reactive/src/main/kotlin/com/baeldung/EventRepository.kt b/spring-data-5-reactive/src/main/kotlin/com/baeldung/EventRepository.kt
index a73ef8c807..e66af71ea6 100644
--- a/spring-data-5-reactive/src/main/kotlin/com/baeldung/EventRepository.kt
+++ b/spring-data-5-reactive/src/main/kotlin/com/baeldung/EventRepository.kt
@@ -4,6 +4,3 @@ import org.springframework.data.mongodb.core.mapping.Document
import org.springframework.data.mongodb.repository.ReactiveMongoRepository
interface EventRepository : ReactiveMongoRepository
-
-@Document
-data class Event(val id: String, val name: String)
diff --git a/spring-5-reactive/src/test/java/com/baeldung/reactive/repository/AccountCrudRepositoryIntegrationTest.java b/spring-data-5-reactive/src/test/java/com/baeldung/reactive/repository/AccountCrudRepositoryIntegrationTest.java
similarity index 100%
rename from spring-5-reactive/src/test/java/com/baeldung/reactive/repository/AccountCrudRepositoryIntegrationTest.java
rename to spring-data-5-reactive/src/test/java/com/baeldung/reactive/repository/AccountCrudRepositoryIntegrationTest.java
diff --git a/spring-5-reactive/src/test/java/com/baeldung/reactive/repository/AccountMongoRepositoryIntegrationTest.java b/spring-data-5-reactive/src/test/java/com/baeldung/reactive/repository/AccountMongoRepositoryIntegrationTest.java
similarity index 100%
rename from spring-5-reactive/src/test/java/com/baeldung/reactive/repository/AccountMongoRepositoryIntegrationTest.java
rename to spring-data-5-reactive/src/test/java/com/baeldung/reactive/repository/AccountMongoRepositoryIntegrationTest.java
diff --git a/spring-5-reactive/src/test/java/com/baeldung/reactive/repository/AccountRxJavaRepositoryIntegrationTest.java b/spring-data-5-reactive/src/test/java/com/baeldung/reactive/repository/AccountRxJavaRepositoryIntegrationTest.java
similarity index 100%
rename from spring-5-reactive/src/test/java/com/baeldung/reactive/repository/AccountRxJavaRepositoryIntegrationTest.java
rename to spring-data-5-reactive/src/test/java/com/baeldung/reactive/repository/AccountRxJavaRepositoryIntegrationTest.java
diff --git a/spring-5-reactive/src/test/java/com/baeldung/reactive/template/AccountTemplateOperationsIntegrationTest.java b/spring-data-5-reactive/src/test/java/com/baeldung/reactive/template/AccountTemplateOperationsIntegrationTest.java
similarity index 100%
rename from spring-5-reactive/src/test/java/com/baeldung/reactive/template/AccountTemplateOperationsIntegrationTest.java
rename to spring-data-5-reactive/src/test/java/com/baeldung/reactive/template/AccountTemplateOperationsIntegrationTest.java