I have created a spring boot application by using a Dynamic Web Project in eclipse with the following file setup:

My spring boot configuration was not configured using maven and thus without a pom.xml file(I instead imported all dependencies needed). My App file contains the running of spring boot:
package Main;
import java.util.Collections;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class App
{
public static void main(String[] args)
{
SpringApplication app = new SpringApplication(App.class);
app.setDefaultProperties(Collections
.singletonMap("server.port", "9004"));
app.run(args);
}
}
I am also attempting to render a html page called test.html:
<html xmlns:th="http://www.thymeleaf.org"
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<p>Number: <span th:text="${number}"></span></p>
<p>Name: <span th:text="${firstName}"></span></p>
</body>
Render it via springboot as so:
package Main;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping("/")
public class MainController
{
@GetMapping("testing")
@ResponseBody
public String testPage(Model model)
{
String name = "John";
model.addAttribute("number", 42);
model.addAttribute("firstName", name);
return "test";
}
}
The issue I am having is that it is returning the string test, rather then test.html. I have attempted using @RestController instead(removing @ResponseBody) with no luck. I am pretty sure it has to do with the URL to test.html but I am not sure. Any help would be appreciated.