Skip to content

Commit e6685e5

Browse files
Fix The PR that is merged here is causing some other integration tests to fail in the same module (#13331)
* JAVA-14459, GitHub Issue: Reactive WebSocket App example no longer works. * JAVA-14459, Move spring5 reactive webflux filters to its own module. Co-authored-by: jogra <joseph.sterling.grah@miles.no>
1 parent 94277d2 commit e6685e5

15 files changed

Lines changed: 140 additions & 0 deletions

File tree

spring-reactive-modules/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<module>spring-5-reactive-3</module>
2424
<module>spring-5-reactive-client</module>
2525
<module>spring-5-reactive-client-2</module>
26+
<module>spring-5-reactive-filters</module>
2627
<module>spring-5-reactive-oauth</module>
2728
<module>spring-5-reactive-security</module>
2829
<module>spring-reactive</module>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#folders#
2+
.idea
3+
/target
4+
/neoDb*
5+
/data
6+
/src/main/webapp/WEB-INF/classes
7+
*/META-INF/*
8+
9+
# Packaged files #
10+
*.jar
11+
*.war
12+
*.ear
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Spring 5 Reactive Project
2+
3+
This module contains articles about reactive Spring 5
4+
5+
### The Course
6+
The "REST With Spring" Classes: https://bit.ly/restwithspring
7+
8+
### Relevant Articles
9+
10+
- [Exploring the Spring 5 WebFlux URL Matching](https://www.baeldung.com/spring-5-mvc-url-matching)
11+
- [Reactive WebSockets with Spring 5](https://www.baeldung.com/spring-5-reactive-websockets)
12+
- [Spring WebFlux Filters](https://www.baeldung.com/spring-webflux-filters)
13+
- [How to Set a Header on a Response with Spring 5](https://www.baeldung.com/spring-response-header)
14+
- [A Guide to Spring Session Reactive Support: WebSession](https://www.baeldung.com/spring-session-reactive)
15+
- More articles: [[next -->]](../spring-5-reactive-2)
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<artifactId>spring-5-reactive-filters</artifactId>
7+
<version>0.0.1-SNAPSHOT</version>
8+
<name>spring-5-reactive-filters</name>
9+
<packaging>jar</packaging>
10+
<description>spring 5 sample project about new features</description>
11+
12+
<parent>
13+
<groupId>com.baeldung.spring.reactive</groupId>
14+
<artifactId>spring-reactive-modules</artifactId>
15+
<version>1.0.0-SNAPSHOT</version>
16+
</parent>
17+
18+
<dependencies>
19+
<dependency>
20+
<groupId>org.springframework.boot</groupId>
21+
<artifactId>spring-boot-starter-webflux</artifactId>
22+
</dependency>
23+
24+
<!-- runtime and test scoped -->
25+
<dependency>
26+
<groupId>org.springframework.boot</groupId>
27+
<artifactId>spring-boot-devtools</artifactId>
28+
<scope>runtime</scope>
29+
</dependency>
30+
<dependency>
31+
<groupId>org.springframework.boot</groupId>
32+
<artifactId>spring-boot-starter-test</artifactId>
33+
<scope>test</scope>
34+
</dependency>
35+
<dependency>
36+
<groupId>org.springframework.security</groupId>
37+
<artifactId>spring-security-test</artifactId>
38+
<scope>test</scope>
39+
</dependency>
40+
<dependency>
41+
<groupId>io.projectreactor</groupId>
42+
<artifactId>reactor-test</artifactId>
43+
<scope>test</scope>
44+
</dependency>
45+
46+
<!-- Fix ERROR i.n.r.d.DnsServerAddressStreamProviders - Unable to load io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider -->
47+
<dependency>
48+
<groupId>io.netty</groupId>
49+
<artifactId>netty-all</artifactId>
50+
<scope>test</scope>
51+
</dependency>
52+
53+
</dependencies>
54+
55+
<build>
56+
<plugins>
57+
<plugin>
58+
<groupId>org.springframework.boot</groupId>
59+
<artifactId>spring-boot-maven-plugin</artifactId>
60+
<configuration>
61+
<mainClass>com.baeldung.reactive.Spring5ReactiveFiltersApplication</mainClass>
62+
<layout>JAR</layout>
63+
</configuration>
64+
</plugin>
65+
</plugins>
66+
</build>
67+
68+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.baeldung.reactive;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class Spring5ReactiveFiltersApplication{
8+
9+
public static void main(String[] args) {
10+
SpringApplication.run(Spring5ReactiveFiltersApplication.class, args);
11+
}
12+
13+
}

spring-reactive-modules/spring-5-reactive/src/main/java/com/baeldung/reactive/filters/ExampleHandlerFilterFunction.java renamed to spring-reactive-modules/spring-5-reactive-filters/src/main/java/com/baeldung/reactive/filters/ExampleHandlerFilterFunction.java

File renamed without changes.

spring-reactive-modules/spring-5-reactive/src/main/java/com/baeldung/reactive/filters/ExampleWebFilter.java renamed to spring-reactive-modules/spring-5-reactive-filters/src/main/java/com/baeldung/reactive/filters/ExampleWebFilter.java

File renamed without changes.

spring-reactive-modules/spring-5-reactive/src/main/java/com/baeldung/reactive/filters/PlayerHandler.java renamed to spring-reactive-modules/spring-5-reactive-filters/src/main/java/com/baeldung/reactive/filters/PlayerHandler.java

File renamed without changes.

spring-reactive-modules/spring-5-reactive/src/main/java/com/baeldung/reactive/filters/PlayerRouter.java renamed to spring-reactive-modules/spring-5-reactive-filters/src/main/java/com/baeldung/reactive/filters/PlayerRouter.java

File renamed without changes.

spring-reactive-modules/spring-5-reactive/src/main/java/com/baeldung/reactive/filters/UserController.java renamed to spring-reactive-modules/spring-5-reactive-filters/src/main/java/com/baeldung/reactive/filters/UserController.java

File renamed without changes.

0 commit comments

Comments
 (0)