BAEL-19928: Further minor improvements
This commit is contained in:
parent
7434ce7775
commit
dee493a6eb
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -26,5 +26,4 @@ public class NotificationApplication implements CommandLineRunner {
|
|||
public static void main(String[] args) {
|
||||
SpringApplication.run(NotificationApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -19,6 +19,4 @@ public class NotificationApplicationIntegrationTest {
|
|||
RestTemplate restTemplate = new RestTemplate();
|
||||
restTemplate.getForObject("http://localhost:" + port + "/startNotification/10", String.class);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue