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 - 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
-
-
-
-
-
-
Configuring embedded Tomcat5m 26s
-
(Locked)
Employing MVC in Spring Boot2m 25s
-
(Locked)
Thymeleaf templates4m 37s
-
(Locked)
Web application with Spring Boot5m 40s
-
(Locked)
Challenge: Generate an MVC webpage55s
-
(Locked)
Solution: Generate an MVC webpage2m 24s
-
(Locked)
Web services with Spring Boot1m 4s
-
(Locked)
Extracting a service layer6m 42s
-
(Locked)
Building the web service4m 40s
-
(Locked)
Challenge: Build a web service43s
-
(Locked)
Solution: Build a web service1m 51s
-
(Locked)
Calling a web service4m 35s
-
-
-