BAEL-19928: Further minor improvements

This commit is contained in:
Krzysztof Woyke 2019-12-19 08:28:26 +01:00
parent 7434ce7775
commit dee493a6eb
3 changed files with 2 additions and 7 deletions

View File

@ -2,7 +2,6 @@ package com.baeldung;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import reactor.Environment;
import reactor.bus.EventBus;
@ -10,13 +9,12 @@ import reactor.bus.EventBus;
public class Config {
@Bean
Environment env() {
public Environment env() {
return Environment.initializeIfEmpty().assignErrorJournal();
}
@Bean
EventBus createEventBus(Environment env) {
public EventBus createEventBus(Environment env) {
return EventBus.create(env, Environment.THREAD_POOL);
}
}

View File

@ -26,5 +26,4 @@ public class NotificationApplication implements CommandLineRunner {
public static void main(String[] args) {
SpringApplication.run(NotificationApplication.class, args);
}
}

View File

@ -19,6 +19,4 @@ public class NotificationApplicationIntegrationTest {
RestTemplate restTemplate = new RestTemplate();
restTemplate.getForObject("http://localhost:" + port + "/startNotification/10", String.class);
}
}