Mastering Spring 5.0
上QQ阅读APP看书,第一时间看更新

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.