In this video, learn how to create a controller method that builds a model for your new view and wire them together to respond to a URL request showing the presentation layer with a merged model and view.
- [Instructor] So now it's time to actually…take our data, apply it to the model,…and then have it sent to the view so we can…actually get a full picture of what our webpage…is going to look like.…But before we can get to that,…I want you to reach back into those exercise files.…I've updated our template a little bit…to make it a little bit more stylish.…Now I do want to make it clear that I am not…a front end web developer by any way, shape, or form.…So I'm using Bootstrap to basically…do a lot of the styling for me.…
So let's go ahead and run our application…just so you can see what it looks like now…that we've done some styling to it.…Run back over to our browser here.…And you'll see that I've just kind of…cleaned up the styling a little bit.…I still have the date control element.…And again, our model has not been populated…into this yet.…Okay, so let's jump back into our source code here.…And we're actually going to go open up that controller.…In order to make this work,…we're first of all going to have to pass in a date…
- Creating a project with Spring Initializr
- Examining the Spring Boot skeleton project with Spring Data JPA
- Creating an embedded database for Spring Boot development and testing
- Building a service abstraction
- Using the IoC paradigm in Spring to develop a service layer
- Building a controller
- Testing a controller MockMvc
- Exposing a service layer through REST
Skill Level Intermediate
Q: This course was updated on 09/06/2018. What changed?
A: The following topics were updated: creating a project with Spring Initializr, examining the Spring Boot skeleton project, developing a service object with Spring, and testing a controller MockMvc.