From the course: Spring: Design Patterns

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The MVC and Template patterns in action

The MVC and Template patterns in action

From the course: Spring: Design Patterns

Start my 1-month free trial

The MVC and Template patterns in action

- [Instructor] So now we're going to briefly talk about the MVC and template patterns and how you would go about using them in the Spring framework. Like you to jump over to the ID and before I get too deep into this I do want to say that I'm going to be very simplistic on the surface, and I highly encourage you to take a look at my course: Learning Spring with Spring Boot if you want more details on how the MVC pattern works. But for now, we'll go ahead and jump into our base class. We're going to start our design patterns app application. We're going to add a new bean and our bean is going to be of type rest template which is going to be the template pattern that we will use for this video. And it will simply return a new rest template. Simple enough. Let's go ahead and open up our controller. We're going to add a couple methods here. Now the first one that we're going to do is our example of an MVC. We've actually done this a couple of times but before we get into that, we need to…

Contents