From the course: Spring Boot 2.0 Essential Training

Unlock the full course today

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

Web application with Spring Boot

Web application with Spring Boot

From the course: Spring Boot 2.0 Essential Training

Start my 1-month free trial

Web application with Spring Boot

- [Narrator] So now that we've built our view in our module, it's time to walk through finishing our web application by building the controller in the model and serving it to the view so that we can see it in a web browser. So, back in our IDE, in our room web app, let's open it up, and source main Java in our base package, we want to create a new package and we will call it models. Now in models, we're going to create a new class called room. Now, room is going to have a few values here. So private long ID, and this will be used later on with our database, private string number, private string name and private string info. Now, I'm going to use a tool built into MyIE, to generate a bunch of stuff. Every IE can do this, it's just a little bit different options. So for me, it's Control+Enter, I'm going to do a constructor with no ads. I'm going to do a constructor with all ads, and I'm going to do getters and setters for…

Contents