Refactor Spring-Reactor samples
This commit is contained in:
parent
06f10646b1
commit
c5b67b5620
@ -1,13 +1,10 @@
|
|||||||
package com.baeldung.controller;
|
package com.baeldung.controller;
|
||||||
|
|
||||||
|
import com.baeldung.doman.NotificationData;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMethod;
|
|
||||||
|
|
||||||
import com.baeldung.doman.NotificationData;
|
|
||||||
|
|
||||||
import reactor.bus.Event;
|
import reactor.bus.Event;
|
||||||
import reactor.bus.EventBus;
|
import reactor.bus.EventBus;
|
||||||
|
|
||||||
@ -17,7 +14,7 @@ public class NotificationController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private EventBus eventBus;
|
private EventBus eventBus;
|
||||||
|
|
||||||
@RequestMapping(value = "/startNotification/{param}", method = RequestMethod.GET)
|
@GetMapping("/startNotification/{param}")
|
||||||
public void startNotification(@PathVariable("param") String param) {
|
public void startNotification(@PathVariable("param") String param) {
|
||||||
|
|
||||||
int notificationSize = Integer.parseInt(param);
|
int notificationSize = Integer.parseInt(param);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user