Commit 26143816 by Patryk Czarnik

Przeniesienie plików JSP do WEB-INF/templates

parent 485bee9e
...@@ -12,7 +12,7 @@ public class RootController { ...@@ -12,7 +12,7 @@ public class RootController {
@GetMapping("/") @GetMapping("/")
public String index() { public String index() {
return "index.jsp"; return "/WEB-INF/templates/index.jsp";
} }
@GetMapping("/hello") @GetMapping("/hello")
...@@ -25,7 +25,7 @@ public class RootController { ...@@ -25,7 +25,7 @@ public class RootController {
public String ktoraGodzina(Model model) { public String ktoraGodzina(Model model) {
LocalDateTime dt = LocalDateTime.now(); LocalDateTime dt = LocalDateTime.now();
model.addAttribute("dt", dt); model.addAttribute("dt", dt);
return "wyswietl_czas.jsp"; return "/WEB-INF/templates/wyswietl_czas.jsp";
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment