Add ResponseBody annotation

add ResponseBody annotation to TestController root method to successfully returns hard-coded html page.
This commit is contained in:
Maksim Skobaro 2024-07-22 22:14:26 +03:00
parent f52378a1c7
commit c106137bdc

View File

@ -4,12 +4,14 @@ package ru.tubryansk.tdms.controller;
import org.springframework.stereotype.Controller;
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 TestController {
@GetMapping
@ResponseBody
public String root() {
return """
<!DOCTYPE html>