Question: Create a SpringBoot application using Spring Initializer and include all the required dependencies to achieve the below task. Create a HomeController. Create an Endpoint (

Create a SpringBoot application using Spring Initializer and include all the required dependencies to achieve the below task.
Create a HomeController.
Create an Endpoint (API) that returns the String to render index.html (HINT: use thymeleaf dependency)
Add your name and student number as Model attributes in the above endpoint.
While rendering your index.html, display your Name and Student number in H1 tag (use thymeleaf xmlns).
Create a JUnit Test case for your Endpoint which will test the happy path scenario. i.e. expecting your name and student number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!