mirror of
https://github.com/OtusTeam/Spring.git
synced 2026-05-30 10:50:42 +00:00
A bit of reactor updates
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>2.5.6</version>
|
||||
<version>2.6.3</version>
|
||||
<relativePath/>
|
||||
</parent>
|
||||
|
||||
|
||||
+2
-2
@@ -13,8 +13,8 @@ public class NonFluxService {
|
||||
public Message nonFluxSayHello(Message message) {
|
||||
logger.info("Message received in non-flux service: {}", message.getValue());
|
||||
|
||||
final String name = message.getValue();
|
||||
final String withHello = "Hello, " + name + "!";
|
||||
String name = message.getValue();
|
||||
String withHello = "Hello, " + name + "!";
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
return new Message(withHello);
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>2.2.6.RELEASE</version>
|
||||
<version>2.6.3</version>
|
||||
<relativePath/>
|
||||
</parent>
|
||||
|
||||
@@ -25,7 +25,9 @@
|
||||
<artifactId>spring-boot-starter-webflux</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- работает и без неё, но нужна для RxJava контроллера -->
|
||||
<!--
|
||||
работает и без этой зависимости на Project Reactor,
|
||||
но она нужна для демонстрации RxJava2 контроллера -->
|
||||
<dependency>
|
||||
<groupId>io.reactivex.rxjava2</groupId>
|
||||
<artifactId>rxjava</artifactId>
|
||||
|
||||
Reference in New Issue
Block a user