Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
2
20240528-BJava
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
20240528-BJava
Commits
a5d8e543
Commit
a5d8e543
authored
Jun 27, 2024
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
przeniesienie plików JSP do WEB-INF/templates
parent
5885d25e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
RootController.java
...Spring/src/main/java/sklep/controller/RootController.java
+2
-2
index.jsp
PC33-SklepSpring/src/main/webapp/WEB-INF/templates/index.jsp
+0
-0
wyswietl_czas.jsp
...pring/src/main/webapp/WEB-INF/templates/wyswietl_czas.jsp
+0
-0
No files found.
PC33-SklepSpring/src/main/java/sklep/controller/RootController.java
View file @
a5d8e543
...
@@ -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"
;
}
}
}
}
PC33-SklepSpring/src/main/webapp/index.jsp
→
PC33-SklepSpring/src/main/webapp/
WEB-INF/templates/
index.jsp
View file @
a5d8e543
File moved
PC33-SklepSpring/src/main/webapp/wyswietl_czas.jsp
→
PC33-SklepSpring/src/main/webapp/
WEB-INF/templates/
wyswietl_czas.jsp
View file @
a5d8e543
File moved
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