From the course: Spring Boot 3 Essential Training

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Web application with Spring Boot

Web application with Spring Boot - Spring Boot Tutorial

From the course: Spring Boot 3 Essential Training

Web application with Spring Boot

- [Instructor] Now that we have our view, it's time to walk through finishing our web application by building the controller and the model in order to show data in the actual website. So the first thing I want you to do is to open up the room-web-app, go to src main java, and we're going to create a new package underneath the root package called web model. And in the web model directory, we will create a new Java class called Room. Now this is a standard practice that I do. I don't like to actually expose my entities out to the world. Granted, you could do that, it's just not what I prefer to do. We're going to create this new one and it's a very simple model. We're going to add our @Getter, our @Setter. We're going to add an @AllArgsConstructor, and a @NoArgsConstructor. Now, the fields that we need to use are going to have a little bit different names, because they're going to match our view and not our database. So, private UUID for our id, a private String called name, a private…

Contents