Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
alx_mszczonow_3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
alx_mszczonow_3
Commits
01ed2daf
Commit
01ed2daf
authored
Jul 25, 2023
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Popraweczki
parent
89061dae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
TimeController.java
src/main/java/alx/TimeController.java
+1
-2
No files found.
src/main/java/alx/TimeController.java
View file @
01ed2daf
...
@@ -66,7 +66,7 @@ public class TimeController {
...
@@ -66,7 +66,7 @@ public class TimeController {
// Gdy do szablonu chcemy przekazać jakieś dane, to dodajemy je jako atrybuty do modelu.
// Gdy do szablonu chcemy przekazać jakieś dane, to dodajemy je jako atrybuty do modelu.
// Najprościej zrobić to poprzez parametr model.
// Najprościej zrobić to poprzez parametr model.
@RequestMapping
(
"/time5"
)
@RequestMapping
(
"/time5"
)
public
String
time5
(
Model
model
)
{
// IoC inversion of control
public
String
time5
(
Model
model
)
{
LocalDateTime
dateTime
=
LocalDateTime
.
now
();
LocalDateTime
dateTime
=
LocalDateTime
.
now
();
model
.
addAttribute
(
"dt"
,
dateTime
);
model
.
addAttribute
(
"dt"
,
dateTime
);
return
"wyswietl_czas5.html"
;
return
"wyswietl_czas5.html"
;
...
@@ -83,7 +83,6 @@ public class TimeController {
...
@@ -83,7 +83,6 @@ public class TimeController {
dates
.
add
(
date
.
plusWeeks
(
i
));
dates
.
add
(
date
.
plusWeeks
(
i
));
}
}
model
.
addAttribute
(
"futureWeeks"
,
dates
);
model
.
addAttribute
(
"futureWeeks"
,
dates
);
return
"szablon6.html"
;
return
"szablon6.html"
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment