Answered step by step
Verified Expert Solution
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 H tag use thymeleaf xmlns
Create a JUnit Test case for your Endpoint which will test the happy path scenario. ie expecting your name and student number
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started