Commit 13a94e73 by Patryk Czarnik

preix i suffix dla plików JSP

parent 26143816
......@@ -12,7 +12,7 @@ public class RootController {
@GetMapping("/")
public String index() {
return "/WEB-INF/templates/index.jsp";
return "index";
}
@GetMapping("/hello")
......@@ -25,7 +25,7 @@ public class RootController {
public String ktoraGodzina(Model model) {
LocalDateTime dt = LocalDateTime.now();
model.addAttribute("dt", dt);
return "/WEB-INF/templates/wyswietl_czas.jsp";
return "wyswietl_czas";
}
}
spring.datasource.url=jdbc:postgresql://localhost:5432/sklep
spring.datasource.username=kurs
spring.datasource.password=abc123
spring.mvc.view.prefix=/WEB-INF/templates/
spring.mvc.view.suffix=.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