Commit 01ed2daf by Patryk Czarnik

Popraweczki

parent 89061dae
......@@ -66,7 +66,7 @@ public class TimeController {
// Gdy do szablonu chcemy przekazać jakieś dane, to dodajemy je jako atrybuty do modelu.
// Najprościej zrobić to poprzez parametr model.
@RequestMapping("/time5")
public String time5(Model model) { // IoC inversion of control
public String time5(Model model) {
LocalDateTime dateTime = LocalDateTime.now();
model.addAttribute("dt", dateTime);
return "wyswietl_czas5.html";
......@@ -83,7 +83,6 @@ public class TimeController {
dates.add(date.plusWeeks(i));
}
model.addAttribute("futureWeeks", dates);
return "szablon6.html";
}
......
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