diff --git a/spring-5-reactive/src/main/java/com/baeldung/reactive/controller/ReactiveEventServer.java b/spring-5-reactive/src/main/java/com/baeldung/reactive/controller/ReactiveEventServer.java deleted file mode 100644 index 2efde58c80..0000000000 --- a/spring-5-reactive/src/main/java/com/baeldung/reactive/controller/ReactiveEventServer.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.baeldung.reactive.controller; - - -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; -import reactor.core.publisher.Flux; - -import java.time.Duration; - - -@RestController -@RequestMapping("/events") -public class ReactiveEventServer { - - @GetMapping(path = "/stream/" , produces=MediaType.TEXT_EVENT_STREAM_VALUE) - public Flux eventStream() { - return Flux.interval(Duration.ofSeconds(1)).map(tick -> {return "Event:" + tick;}); - } -} \ No newline at end of file