diff --git a/pom.xml b/pom.xml
index 7af92fbd11..615fc7b46e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -577,12 +577,12 @@
spring-4
spring-5
+ spring-5-webflux
spring-5-mvc
spring-5-reactive
spring-5-reactive-client
spring-5-reactive-oauth
spring-5-reactive-security
- spring-5-reactive-netty
spring-5-security
spring-5-security-oauth
diff --git a/spring-5-reactive-netty/.gitignore b/spring-5-reactive-netty/.gitignore
deleted file mode 100644
index 70ed41e73a..0000000000
--- a/spring-5-reactive-netty/.gitignore
+++ /dev/null
@@ -1,11 +0,0 @@
-# Folders #
-**/.idea
-**/target
-
-# Files #
-*.log
-
-# Packaged files #
-*.jar
-*.war
-*.ear
\ No newline at end of file
diff --git a/spring-5-reactive-netty/README.md b/spring-5-reactive-netty/README.md
deleted file mode 100644
index 09f7cc0e24..0000000000
--- a/spring-5-reactive-netty/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-## Spring 5 Reactive Project With Netty Server
-
-Includes configuration options for Netty server.
diff --git a/spring-5-reactive-netty/pom.xml b/spring-5-reactive-netty/pom.xml
deleted file mode 100644
index 48fc0b201f..0000000000
--- a/spring-5-reactive-netty/pom.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
- 4.0.0
- com.baeldung
- spring-5-reactive-netty
- 0.0.1-SNAPSHOT
- spring-5-reactive-netty
- jar
- Spring 5 sample project about reactive web with Netty server
-
-
- com.baeldung
- parent-boot-2
- 0.0.1-SNAPSHOT
- ../parent-boot-2
-
-
-
-
- org.springframework.boot
- spring-boot-starter-webflux
-
-
-
- org.projectlombok
- lombok
-
-
-
- org.springframework.boot
- spring-boot-devtools
- runtime
-
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
diff --git a/spring-5-webflux/.gitignore b/spring-5-webflux/.gitignore
new file mode 100644
index 0000000000..aa4871eeea
--- /dev/null
+++ b/spring-5-webflux/.gitignore
@@ -0,0 +1,2 @@
+# Files #
+*.log
\ No newline at end of file
diff --git a/spring-5-webflux/pom.xml b/spring-5-webflux/pom.xml
index d7fb7b7930..3306fd1729 100644
--- a/spring-5-webflux/pom.xml
+++ b/spring-5-webflux/pom.xml
@@ -1,23 +1,20 @@
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
-
com.baeldung
spring-5-webflux
1.0-SNAPSHOT
-
spring-5-webflux
-
http://www.baeldung.com
-
- UTF-8
- 1.8
- 1.8
- 2.0.2.RELEASE
-
+
+ com.baeldung
+ parent-boot-2
+ 0.0.1-SNAPSHOT
+ ../parent-boot-2
+
@@ -58,12 +55,8 @@
- maven-compiler-plugin
- 3.8.0
-
-
- maven-surefire-plugin
- 2.22.1
+ org.springframework.boot
+ spring-boot-maven-plugin
diff --git a/spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/CustomNettyWebServerFactory.java b/spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/CustomNettyWebServerFactory.java
similarity index 97%
rename from spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/CustomNettyWebServerFactory.java
rename to spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/CustomNettyWebServerFactory.java
index 8a1cdbba97..f9de3b4006 100644
--- a/spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/CustomNettyWebServerFactory.java
+++ b/spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/CustomNettyWebServerFactory.java
@@ -1,4 +1,4 @@
-package com.baeldung.serverconfig;
+package com.baeldung.spring.serverconfig;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
diff --git a/spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/GreetingController.java b/spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/GreetingController.java
similarity index 94%
rename from spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/GreetingController.java
rename to spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/GreetingController.java
index 9cb5b27ac5..990ea5cf83 100644
--- a/spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/GreetingController.java
+++ b/spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/GreetingController.java
@@ -1,4 +1,4 @@
-package com.baeldung.serverconfig;
+package com.baeldung.spring.serverconfig;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
diff --git a/spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/GreetingService.java b/spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/GreetingService.java
similarity index 84%
rename from spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/GreetingService.java
rename to spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/GreetingService.java
index 5440f526aa..a6243b2bd0 100644
--- a/spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/GreetingService.java
+++ b/spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/GreetingService.java
@@ -1,4 +1,4 @@
-package com.baeldung.serverconfig;
+package com.baeldung.spring.serverconfig;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Mono;
diff --git a/spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/NettyWebServerFactoryPortCustomizer.java b/spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/NettyWebServerFactoryPortCustomizer.java
similarity index 95%
rename from spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/NettyWebServerFactoryPortCustomizer.java
rename to spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/NettyWebServerFactoryPortCustomizer.java
index 152e1285aa..fdde130286 100644
--- a/spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/NettyWebServerFactoryPortCustomizer.java
+++ b/spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/NettyWebServerFactoryPortCustomizer.java
@@ -1,4 +1,4 @@
-package com.baeldung.serverconfig;
+package com.baeldung.spring.serverconfig;
import org.springframework.boot.web.embedded.netty.NettyReactiveWebServerFactory;
import org.springframework.boot.web.embedded.netty.NettyServerCustomizer;
diff --git a/spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/NettyWebServerFactorySslCustomizer.java b/spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/NettyWebServerFactorySslCustomizer.java
similarity index 96%
rename from spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/NettyWebServerFactorySslCustomizer.java
rename to spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/NettyWebServerFactorySslCustomizer.java
index d0ad0dcac5..cf4e5ac8ea 100644
--- a/spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/NettyWebServerFactorySslCustomizer.java
+++ b/spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/NettyWebServerFactorySslCustomizer.java
@@ -1,4 +1,4 @@
-package com.baeldung.serverconfig;
+package com.baeldung.spring.serverconfig;
import org.springframework.boot.web.embedded.netty.NettyReactiveWebServerFactory;
import org.springframework.boot.web.embedded.netty.SslServerCustomizer;
diff --git a/spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/ServerConfigApplication.java b/spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/ServerConfigApplication.java
similarity index 87%
rename from spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/ServerConfigApplication.java
rename to spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/ServerConfigApplication.java
index 9d420cc7da..b4f6006be3 100644
--- a/spring-5-reactive-netty/src/main/java/com/baeldung/serverconfig/ServerConfigApplication.java
+++ b/spring-5-webflux/src/main/java/com/baeldung/spring/serverconfig/ServerConfigApplication.java
@@ -1,4 +1,4 @@
-package com.baeldung.serverconfig;
+package com.baeldung.spring.serverconfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
diff --git a/spring-5-reactive-netty/src/main/resources/logback.xml b/spring-5-webflux/src/main/resources/logback.xml
similarity index 100%
rename from spring-5-reactive-netty/src/main/resources/logback.xml
rename to spring-5-webflux/src/main/resources/logback.xml
diff --git a/spring-5-reactive-netty/src/main/resources/sample.jks b/spring-5-webflux/src/main/resources/sample.jks
similarity index 100%
rename from spring-5-reactive-netty/src/main/resources/sample.jks
rename to spring-5-webflux/src/main/resources/sample.jks
diff --git a/spring-5-webflux/src/test/java/com/baeldung/spring/responsestatus/ResponseStatusControllerTests.java b/spring-5-webflux/src/test/java/com/baeldung/spring/responsestatus/ResponseStatusControllerLiveTest.java
similarity index 97%
rename from spring-5-webflux/src/test/java/com/baeldung/spring/responsestatus/ResponseStatusControllerTests.java
rename to spring-5-webflux/src/test/java/com/baeldung/spring/responsestatus/ResponseStatusControllerLiveTest.java
index 5112c8ceb2..4c6708e423 100644
--- a/spring-5-webflux/src/test/java/com/baeldung/spring/responsestatus/ResponseStatusControllerTests.java
+++ b/spring-5-webflux/src/test/java/com/baeldung/spring/responsestatus/ResponseStatusControllerLiveTest.java
@@ -9,7 +9,7 @@ import org.springframework.test.web.reactive.server.WebTestClient;
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
-public class ResponseStatusControllerTests {
+public class ResponseStatusControllerLiveTest {
@Autowired
private WebTestClient testClient;
diff --git a/spring-5-reactive-netty/src/test/java/com/baeldung/serverconfig/GreetingControllerIntegrationTest.java b/spring-5-webflux/src/test/java/com/baeldung/spring/serverconfig/GreetingControllerIntegrationTest.java
similarity index 96%
rename from spring-5-reactive-netty/src/test/java/com/baeldung/serverconfig/GreetingControllerIntegrationTest.java
rename to spring-5-webflux/src/test/java/com/baeldung/spring/serverconfig/GreetingControllerIntegrationTest.java
index 3c2c08321a..ce156beb3f 100644
--- a/spring-5-reactive-netty/src/test/java/com/baeldung/serverconfig/GreetingControllerIntegrationTest.java
+++ b/spring-5-webflux/src/test/java/com/baeldung/spring/serverconfig/GreetingControllerIntegrationTest.java
@@ -1,4 +1,4 @@
-package com.baeldung.serverconfig;
+package com.baeldung.spring.serverconfig;
import static org.mockito.Mockito.when;
diff --git a/spring-5-reactive-netty/src/test/java/com/baeldung/serverconfig/GreetingLiveTest.java b/spring-5-webflux/src/test/java/com/baeldung/spring/serverconfig/GreetingLiveTest.java
similarity index 94%
rename from spring-5-reactive-netty/src/test/java/com/baeldung/serverconfig/GreetingLiveTest.java
rename to spring-5-webflux/src/test/java/com/baeldung/spring/serverconfig/GreetingLiveTest.java
index 7c4a37c890..2400272c6e 100644
--- a/spring-5-reactive-netty/src/test/java/com/baeldung/serverconfig/GreetingLiveTest.java
+++ b/spring-5-webflux/src/test/java/com/baeldung/spring/serverconfig/GreetingLiveTest.java
@@ -1,4 +1,4 @@
-package com.baeldung.serverconfig;
+package com.baeldung.spring.serverconfig;
import io.netty.handler.ssl.SslContext;
import io.netty.handler.ssl.SslContextBuilder;
@@ -10,7 +10,7 @@ import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.http.client.reactive.ReactorClientHttpConnector;
-import org.springframework.test.context.ActiveProfiles;
+import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.reactive.server.WebTestClient;
import org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec;
@@ -18,6 +18,7 @@ import reactor.netty.http.client.HttpClient;
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.DEFINED_PORT)
+@DirtiesContext
public class GreetingLiveTest {
private static final String BASE_URL = "https://localhost:8443";
diff --git a/spring-5-reactive-netty/src/test/java/com/baeldung/serverconfig/GreetingSkipAutoConfigLiveTest.java b/spring-5-webflux/src/test/java/com/baeldung/spring/serverconfig/GreetingSkipAutoConfigLiveTest.java
similarity index 79%
rename from spring-5-reactive-netty/src/test/java/com/baeldung/serverconfig/GreetingSkipAutoConfigLiveTest.java
rename to spring-5-webflux/src/test/java/com/baeldung/spring/serverconfig/GreetingSkipAutoConfigLiveTest.java
index 646742b3d7..45918dfd70 100644
--- a/spring-5-reactive-netty/src/test/java/com/baeldung/serverconfig/GreetingSkipAutoConfigLiveTest.java
+++ b/spring-5-webflux/src/test/java/com/baeldung/spring/serverconfig/GreetingSkipAutoConfigLiveTest.java
@@ -1,4 +1,4 @@
-package com.baeldung.serverconfig;
+package com.baeldung.spring.serverconfig;
import org.springframework.test.context.ActiveProfiles;
diff --git a/spring-5-reactive-netty/src/test/resources/logback-test.xml b/spring-5-webflux/src/test/resources/logback-test.xml
similarity index 100%
rename from spring-5-reactive-netty/src/test/resources/logback-test.xml
rename to spring-5-webflux/src/test/resources/logback-test.xml