Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions