Commit a5d8e543 by Patryk Czarnik

przeniesienie plików JSP do WEB-INF/templates

parent 5885d25e
...@@ -11,7 +11,7 @@ import java.time.LocalDateTime; ...@@ -11,7 +11,7 @@ import java.time.LocalDateTime;
public class RootController { public class RootController {
@GetMapping("/") @GetMapping("/")
public String index() { public String index() {
return "index.jsp"; return "/WEB-INF/templates/index.jsp";
} }
@GetMapping(path="/hello", produces="text/plain") @GetMapping(path="/hello", produces="text/plain")
...@@ -23,6 +23,6 @@ public class RootController { ...@@ -23,6 +23,6 @@ public class RootController {
@GetMapping("/czas") @GetMapping("/czas")
public String odczytajCzasJsp(Model model) { public String odczytajCzasJsp(Model model) {
model.addAttribute("dt", LocalDateTime.now()); model.addAttribute("dt", LocalDateTime.now());
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