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
05271246
Commit
05271246
authored
Jun 28, 2024
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Próba naprawienia apki
parent
5876ea70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
HelloController.java
...cznie/src/main/java/com/example/demo/HelloController.java
+2
-1
application.properties
...ringTechnicznie/src/main/resources/application.properties
+3
-1
No files found.
PC36-SpringTechnicznie/src/main/java/com/example/demo/HelloController.java
View file @
05271246
...
@@ -8,6 +8,7 @@ import jakarta.servlet.http.HttpServletRequest;
...
@@ -8,6 +8,7 @@ import jakarta.servlet.http.HttpServletRequest;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.ui.Model
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
@Controller
@Controller
...
@@ -18,7 +19,7 @@ public class HelloController {
...
@@ -18,7 +19,7 @@ public class HelloController {
return
"index.html"
;
return
"index.html"
;
}
}
@
Reques
tMapping
(
"/hello"
)
@
Ge
tMapping
(
"/hello"
)
public
String
hello
(
Model
model
)
{
public
String
hello
(
Model
model
)
{
model
.
addAttribute
(
"txt"
,
"Hello world!"
);
model
.
addAttribute
(
"txt"
,
"Hello world!"
);
model
.
addAttribute
(
"time"
,
LocalTime
.
now
());
model
.
addAttribute
(
"time"
,
LocalTime
.
now
());
...
...
PC36-SpringTechnicznie/src/main/resources/application.properties
View file @
05271246
spring.application.name
=
PC36-SpringTechnicznie
spring.datasource.url
=
jdbc:postgresql://localhost:5432/hr
spring.datasource.url
=
jdbc:postgresql://localhost:5432/hr
spring.datasource.username
=
kurs
spring.datasource.username
=
alx
spring.datasource.password
=
abc123
spring.datasource.password
=
abc123
spring.jpa.show-sql
=
true
spring.jpa.show-sql
=
true
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