Flow 5 - Controller redirecting to a View with a form

Now let's shift our attention to creating a simple form to capture input from the user.

The following steps will be needed:

  • Create a simple POJO. We want to create a user. We will create a POJO User.
  • Create a couple of Controller methods--one to display the form, and the other to capture the details entered in the form.
  • Create a simple View with the form.

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.