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
019a342f
Commit
019a342f
authored
Jun 27, 2024
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prefix i suffix
parent
a5d8e543
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
RootController.java
...Spring/src/main/java/sklep/controller/RootController.java
+2
-2
application.properties
PC33-SklepSpring/src/main/resources/application.properties
+2
-0
No files found.
PC33-SklepSpring/src/main/java/sklep/controller/RootController.java
View file @
019a342f
...
@@ -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
"
/WEB-INF/templates/index.jsp
"
;
return
"
index
"
;
}
}
@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
"
/WEB-INF/templates/wyswietl_czas.jsp
"
;
return
"
wyswietl_czas
"
;
}
}
}
}
PC33-SklepSpring/src/main/resources/application.properties
View file @
019a342f
spring.application.name
=
PC33-SklepSpring
spring.application.name
=
PC33-SklepSpring
spring.mvc.view.prefix
=
/WEB-INF/templates/
spring.mvc.view.suffix
=
.jsp
spring.datasource.url
=
jdbc:postgresql://localhost/sklep
spring.datasource.url
=
jdbc:postgresql://localhost/sklep
spring.datasource.username
=
alx
spring.datasource.username
=
alx
...
...
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