package de.juplo.demo;
+import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
}
- @GetMapping({ "", "/" })
+ @GetMapping(path = { "", "/" }, produces = MediaType.TEXT_HTML_VALUE)
public String fetch(Model model, @RequestParam(required = false) String path)
{
model.addAttribute("path", path);