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.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
import reactor.Environment;
|
import reactor.Environment;
|
||||||
import reactor.bus.EventBus;
|
import reactor.bus.EventBus;
|
||||||
|
|
||||||
@ -10,13 +9,12 @@ import reactor.bus.EventBus;
|
|||||||
public class Config {
|
public class Config {
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
Environment env() {
|
public Environment env() {
|
||||||
return Environment.initializeIfEmpty().assignErrorJournal();
|
return Environment.initializeIfEmpty().assignErrorJournal();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
EventBus createEventBus(Environment env) {
|
public EventBus createEventBus(Environment env) {
|
||||||
return EventBus.create(env, Environment.THREAD_POOL);
|
return EventBus.create(env, Environment.THREAD_POOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -26,5 +26,4 @@ public class NotificationApplication implements CommandLineRunner {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SpringApplication.run(NotificationApplication.class, args);
|
SpringApplication.run(NotificationApplication.class, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,4 @@ public class NotificationApplicationIntegrationTest {
|
|||||||
RestTemplate restTemplate = new RestTemplate();
|
RestTemplate restTemplate = new RestTemplate();
|
||||||
restTemplate.getForObject("http://localhost:" + port + "/startNotification/10", String.class);
|
restTemplate.getForObject("http://localhost:" + port + "/startNotification/10", String.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user