Flow 2 - Simple controller flow with a View

In the previous flow, the text to show on the browser was hardcoded in the Controller. That is not a good practice. The content to be shown on the browser is typically generated from a View. The most frequently used option is a JSP.

In this flow, let's redirect from the Controller to a View.

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.