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
From the course: Spring Boot 2.0 Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Understanding Spring Boot dependencies6m
-
(Locked)
Configuring embedded Tomcat5m 6s
-
(Locked)
Employing MVC in Spring Boot2m 1s
-
(Locked)
Thymeleaf templates4m 42s
-
(Locked)
Web application with Spring Boot4m 25s
-
(Locked)
Challenge: Generate an MVC webpage1m
-
(Locked)
Solution: Generate an MVC webpage2m 20s
-
(Locked)
Web services with Spring Boot3m 13s
-
(Locked)
Challenge: Build a web service38s
-
(Locked)
Solution: Build a web service1m 55s
-
-
-
-