Spring Boot Bootcamp – Workbooks and Challenges
)}

Workbook 2.1

Create a Spring Boot project.

Group IdArtifact IdDependencies
com.ltpworkbookSpring Web, Spring Boot DevTools

Task 1

Create a method that can handle GET requests on path /, and returns a view called shows.

Task 2

Create an HTML file under the templates folder called shows.html. It will display the following header:

 <h2>IMDB: Top 5 Episodes</h2>

Task 3

Run the application and make a request.

Screen Shot 2022-06-17 at 6.43.39 PM.png

The Thymeleaf dependency is needed to work with templates. Add it to your POM file.

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>

Task 4

Using the cheat sheet, create a table that displays the following data

TitleEpisodeRating
Breaking BadOzymandias10.0
Attack on TitanHero9.9
Attack on TitanPerfect Game9.9
Star Wars: The Clone WarsVictory and Death9.9
Mr. Robot407 Proxy Authentication Required9.9

Give your table a width of 100% and a solid border.

Screen Shot 2022-05-21 at 1.16.16 AM.png

Good Luck!

Feedback Summary
5.0
3 students
5

100%
4

0%
3

0%
2

0%
1

0%
Written Reviews
There are no written reviews yet.