Skip to content

Commit f882712

Browse files
authored
Merge pull request eugenp#4800 from eugenp/BAEL-1447-v2
remove reactive ex
2 parents 189e626 + 9101461 commit f882712

55 files changed

Lines changed: 322 additions & 182 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎spring-5-reactive/README.md‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,11 @@ The "REST With Spring" Classes: http://bit.ly/restwithspring
55

66
### Relevant Articles
77

8-
- [Concurrent Test Execution in Spring 5](http://www.baeldung.com/spring-5-concurrent-tests)
98
- [Introduction to the Functional Web Framework in Spring 5](http://www.baeldung.com/spring-5-functional-web)
10-
- [Exploring the Spring 5 MVC URL Matching Improvements](http://www.baeldung.com/spring-5-mvc-url-matching)
119
- [Spring 5 WebClient](http://www.baeldung.com/spring-5-webclient)
12-
- [Spring 5 Functional Bean Registration](http://www.baeldung.com/spring-5-functional-beans)
13-
- [The SpringJUnitConfig and SpringJUnitWebConfig Annotations in Spring 5](http://www.baeldung.com/spring-5-junit-config)
10+
- [Spring Boot Actuator](http://www.baeldung.com/spring-boot-actuators)
11+
- [Exploring the Spring 5 MVC URL Matching Improvements](http://www.baeldung.com/spring-5-mvc-url-matching)
1412
- [Spring Security 5 for Reactive Applications](http://www.baeldung.com/spring-security-5-reactive)
15-
- [Spring 5 Testing with @EnabledIf Annotation](https://github.com/eugenp/tutorials/tree/master/spring-5)
1613
- [Reactive WebSockets with Spring 5](http://www.baeldung.com/spring-5-reactive-websockets)
17-
- [Spring Boot Actuator](http://www.baeldung.com/spring-boot-actuators)
1814
- [Spring Webflux Filters](http://www.baeldung.com/spring-webflux-filters)
19-
- [Reactive Flow with MongoDB, Kotlin, and Spring WebFlux](http://www.baeldung.com/kotlin-mongodb-spring-webflux)
20-
- [Spring Data Reactive Repositories with MongoDB](http://www.baeldung.com/spring-data-mongodb-reactive)
2115
- [How to Set a Header on a Response with Spring 5](http://www.baeldung.com/spring-response-header)

‎spring-5-reactive/pom.xml‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,6 @@
127127
<artifactId>commons-lang3</artifactId>
128128
</dependency>
129129

130-
<dependency>
131-
<groupId>org.springframework.boot</groupId>
132-
<artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
133-
</dependency>
134-
<dependency>
135-
<groupId>de.flapdoodle.embed</groupId>
136-
<artifactId>de.flapdoodle.embed.mongo</artifactId>
137-
<scope>test</scope>
138-
</dependency>
139130
<dependency>
140131
<groupId>io.reactivex.rxjava2</groupId>
141132
<artifactId>rxjava</artifactId>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.baeldung.functional;
2+
3+
class Actor {
4+
private String firstname;
5+
private String lastname;
6+
7+
public Actor() {
8+
}
9+
10+
public Actor(String firstname, String lastname) {
11+
this.firstname = firstname;
12+
this.lastname = lastname;
13+
}
14+
15+
public String getFirstname() {
16+
return firstname;
17+
}
18+
19+
public String getLastname() {
20+
return lastname;
21+
}
22+
23+
}

spring-5/src/main/java/com/baeldung/functional/FormHandler.java renamed to spring-5-reactive/src/main/java/com/baeldung/functional/FormHandler.java

File renamed without changes.

spring-5/src/main/java/com/baeldung/functional/FunctionalSpringBootApplication.java renamed to spring-5-reactive/src/main/java/com/baeldung/functional/FunctionalSpringBootApplication.java

File renamed without changes.

spring-5/src/main/java/com/baeldung/functional/FunctionalWebApplication.java renamed to spring-5-reactive/src/main/java/com/baeldung/functional/FunctionalWebApplication.java

File renamed without changes.

spring-5/src/main/java/com/baeldung/functional/IndexRewriteFilter.java renamed to spring-5-reactive/src/main/java/com/baeldung/functional/IndexRewriteFilter.java

File renamed without changes.

spring-5/src/main/java/com/baeldung/functional/RootServlet.java renamed to spring-5-reactive/src/main/java/com/baeldung/functional/RootServlet.java

File renamed without changes.
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
package com.baeldung.reactive;
22

3-
import com.mongodb.reactivestreams.client.MongoClient;
43
import org.springframework.beans.factory.annotation.Autowired;
54
import org.springframework.boot.SpringApplication;
65
import org.springframework.boot.autoconfigure.SpringBootApplication;
76
import org.springframework.context.annotation.Bean;
8-
import org.springframework.data.mongodb.core.ReactiveMongoTemplate;
97

108
@SpringBootApplication
119
public class Spring5ReactiveApplication{
@@ -14,12 +12,4 @@ public static void main(String[] args) {
1412
SpringApplication.run(Spring5ReactiveApplication.class, args);
1513
}
1614

17-
@Autowired
18-
MongoClient mongoClient;
19-
20-
@Bean
21-
public ReactiveMongoTemplate reactiveMongoTemplate() {
22-
return new ReactiveMongoTemplate(mongoClient, "test");
23-
}
24-
2515
}

spring-5/src/main/java/com/baeldung/SpringSecurity5Application.java renamed to spring-5-reactive/src/main/java/com/baeldung/reactive/SpringSecurity5Application.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung;
1+
package com.baeldung.reactive;
22

33
import org.springframework.context.ApplicationContext;
44
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

0 commit comments

Comments
 (0)