Launching SpringReactiveExampleApplication

Launch the application class SpringReactiveExampleApplication as a Java application. One of the last messages you would see in the startup log is Netty started on port(s): 8080. Netty is the default embedded server for Spring Reactive.

The following screenshot shows the browser when you navigate to the localhost:8080/static/stock-price.html URL:

When the Get Latest IBM Price button is clicked, EventSource kicks in and registers for events from "/stocks/price/IBM". As soon as an element is received, it is shown on the screen.

The following screenshot shows the screen after a few events are received. ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.